1 line
24 KiB
JavaScript
1 line
24 KiB
JavaScript
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-5c99f384"],{"0748":function(e,t,a){"use strict";a.r(t);a("b0c0"),a("ac1f"),a("841c"),a("9911");var L=a("9f9f"),T={style:{width:"100%","min-width":"1300px!important",display:"contents"}},D={style:{padding:"10px"}},C=Object(L.r)("添加 "),S=Object(L.r)("删除 "),z=Object(L.r)("搜索:"),_=Object(L.r)("查看 "),U={key:0,style:{}},$=Object(L.r)("办结 "),V=Object(L.r)("详情 "),F=Object(L.r)("操作 "),N=Object(L.r)("删除 ");var n,l,c,u=a("b85c"),r=(a("4e82"),a("4de4"),a("8e1d")),o=a("2934"),i=a("c1df"),s=a.n(i),b=a("83c5"),r={props:{routerPath:String,routerQuery:Object},components:{BasicFormInfo:r.a},data:function(){return{formInfo:"",showCheckForm:!1,skeleton:!0,templateData:{},nowSearchTree:null,treeConfig:{},removeList:[],showTreeTabName:null,showTabLabel:!0,formAddTree:{},form:{pageSize:10,page:1},total:20,cellStyle:{padding:"2px 0px","text-align":"center",height:"40px"},headerCellStyle:{padding:"5px 0px","text-align":"center",color:"#000000",background:"darkgray",height:"40px"},shortcuts:[{text:"最近一周",value:(e=new Date,(t=new Date).setTime(t.getTime()-6048e5),[t,e])},{text:"最近一个月",value:(t=new Date,(e=new Date).setTime(e.getTime()-2592e6),[e,t])},{text:"最近三个月",value:(e=new Date,(t=new Date).setTime(t.getTime()-7776e6),[t,e])}],tableData:[],filterText:"",defaultProps:{}};var e,t},methods:{checkForm:function(e){this.showCheckForm=!0,this.formInfo=e||JSON.stringify({form:[],files:[]})},clickInfo:function(e,t){null!=this.routerPath&&0<this.routerPath.length?b.a.$emit("tabs",{name:"Info",path:e+"/info",id:t}):this.$router.push({path:e+"/info",query:{id:t}})},clickEdit:function(e,t){null!=this.routerPath&&0<this.routerPath.length?b.a.$emit("tabs",{name:"Edit",path:e+"/edit",id:t}):this.$router.push({path:e+"/edit",query:{id:t}})},clickAdd:function(e,t){null!=this.routerPath&&0<this.routerPath.length?b.a.$emit("tabs",{name:"Add",path:e+"/add",query:t}):this.$router.push({path:e+"/add",query:t})},clickLink:function(e,t){null!=this.routerPath&&0<this.routerPath.length?b.a.$emit("tabs",{name:"Info",path:window.Hotime.tableMapData[e].path+"/info",id:t,title:window.Hotime.tableMapData[e].parent.label+"-"+window.Hotime.tableMapData[e].label}):b.a.$emit("dialog",{name:"Info",path:window.Hotime.tableMapData[e].path+"/info",id:t,title:window.Hotime.tableMapData[e].parent.label+"-"+window.Hotime.tableMapData[e].label})},finishOrder:function(e){var t=this,a=this;this.$confirm("是否办结","办结提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.c)(window.Hotime.data.name+"/"+t.templateData.name+"/"+e,{status:2}).then(function(e){0==e.status?(a.$message({type:"success",message:"办结成功!"}),a.formDebounce(a)):a.$message({type:"error",message:"办结失败!"})})}).catch(function(){t.$message({type:"info",message:"已取消办结"})})},formatter:function(e,t){if(null==this.tempMapItems[t.property]||"time"!=this.tempMapItems[t.property].type)return e[t.property];t=e[t.property];return null==t?"":s()(1e3*t).format("YYYY-MM-DD HH:mm:ss")},removeListClick:function(){var n=this,l=this,c=this.removeList.length;0!=c?this.$confirm("此操作将删除"+this.removeList.length+"条数据,是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var e,t=Object(u.a)(n.removeList);try{for(t.s();!(e=t.n()).done;){var a=e.value;Object(o.b)(window.Hotime.data.name+"/"+n.templateData.name+"/"+a.id).then(function(){0==--c&&(l.$message({type:"success",message:"删除成功!"}),l.removeList=[],l.formDebounce(l))})}}catch(e){t.e(e)}finally{t.f()}}):l.$message({type:"warning",message:"没有选择要删除的数据!"})},removeRow:function(e){var t=this,a=this;this.$confirm("此操作将进行删除操作,是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.b)(window.Hotime.data.name+"/"+t.templateData.name+"/"+e).then(function(e){0==e.status?(a.$message({type:"success",message:"删除<EFBFBD>
|