forked from golang/hotime
1 line
19 KiB
JavaScript
1 line
19 KiB
JavaScript
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1dd2a8d0"],{"0748":function(e,t,a){"use strict";a.r(t);a("b0c0"),a("ac1f"),a("841c"),a("9911");var v=a("9f9f"),x={style:{width:"100%","min-width":"1300px!important",display:"contents"}},T={style:{padding:"10px"}},D=Object(v.r)("添加 "),C=Object(v.r)("删除 "),L=Object(v.r)("搜索:"),S={key:0,style:{}},z=Object(v.r)("办结 "),_=Object(v.r)("详情 "),U=Object(v.r)("操作 "),$=Object(v.r)("删除 ");var n,l,r,u=a("b85c"),c=(a("4e82"),a("4de4"),a("2934")),s=a("c1df"),i=a.n(s),o=a("83c5"),s={props:{routerPath:String,routerQuery:Object},data:function(){return{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:{clickInfo:function(e,t){null!=this.routerPath&&0<this.routerPath.length?o.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?o.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?o.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?o.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}):o.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(c.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?"":i()(1e3*t).format("YYYY-MM-DD HH:mm:ss")},removeListClick:function(){var n=this,l=this,r=this.removeList.length;0!=r?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(c.b)(window.Hotime.data.name+"/"+n.templateData.name+"/"+a.id).then(function(){0==--r&&(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(c.b)(window.Hotime.data.name+"/"+t.templateData.name+"/"+e).then(function(e){0==e.status?(a.$message({type:"success",message:"删除成功!"}),a.formDebounce(a)):a.$message({type:"warn",message:e.error.msg})})})},treeNodeClick:function(e,t){null!=this.nowSearchTree&&(this.form[this.nowSearchTree.name]=e.id)},tabClick:function
|