iedc-go/tpt/js/chunk-ec689970.aa3c9ffb.js

1 line
28 KiB
JavaScript
Raw Normal View History

2022-10-30 19:27:23 +00:00
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-ec689970"],{"0748":function(e,t,a){"use strict";a.r(t);a("b0c0"),a("ac1f"),a("841c"),a("9911");var L=a("f2bf"),_={class:"hotime-table",style:{width:"100%",display:"contents"}},S={style:{padding:"10px"}},z=Object(L.r)("添加 "),U=Object(L.r)("批量删除 "),$=Object(L.r)("上传 "),A=Object(L.r)("全部导出 "),P=Object(L.r)("搜索:"),V={class:"daterange-box"},N=Object(L.r)("重置"),I=Object(L.r)(" 展示相关 "),M=Object(L.r)("查看 "),H={key:0,style:{}},Y=Object(L.r)("选择 "),F=Object(L.r)("详情 "),Q=Object(L.r)("操作 "),E=Object(L.r)("删除 ");var n,l,i,b=a("b85c"),o=(a("a9e3"),a("4e82"),a("4de4"),a("2934")),r=a("c1df"),c=a.n(r),s=a("83c5"),r={props:{routerPath:String,routerQuery:Object,routerId:Number,editDialogPath:String},components:{},data:function(){return{isCollapse:!0,formInfo:"",showCheckForm:!1,skeleton:!0,templateData:{},nowSearchTree:null,treeConfig:{},removeList:[],showTreeTabName:null,showTreeAll:!1,declareDialog:{show:!1,userId:0,articleId:0},showTabLabel:!0,formAddTree:{},form:{pageSize:window.Hotime.pageRow,page:1,showself:0,showall:0},tableTotalWidth:0,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:{},isLoading:!0,initFlag:!1};var e,t},methods:{checkColumn:function(e){s.a.$emit("table:"+this.editDialogPath,e),s.a.$emit("tabs-edit-close",{name:"Table",path:this.templateData.path,routerId:this.routerId})},sortAble:function(e){return("number"==e.type||"time"==e.type)&&"custom"},setCollapse:function(){this.isCollapse=!this.isCollapse},getTableMinWidth:function(e,t,a,n){function l(e){for(var t=0,a=0;a<e.length;a++){var n=e.charCodeAt(a);1<=n&&n<=126||65376<=n&&n<=65439?t++:t+=2}return t}var i,o=l(n+2),r=Object(b.a)(e);try{for(r.s();!(i=r.n()).done;){var c,s=i.value;null==s[t]||o<(c=l(s[t]+""))&&(o=c)}}catch(e){r.e(e)}finally{r.f()}return o=250<(o=9*(o+a))?250:o},checkForm:function(e){this.showCheckForm=!0,this.formInfo=e||JSON.stringify({form:[],files:[]})},clickInfo:function(e,t){null!=this.routerPath&&0<this.routerPath.length?s.a.$emit("tabs",{name:"Info",path:e+"/info",id:t}):null!=this.editDialogPath?s.a.$emit("tabs-edit",{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?s.a.$emit("tabs",{name:"Edit",path:e+"/edit",id:t}):null!=this.editDialogPath?s.a.$emit("tabs-edit",{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?s.a.$emit("tabs",{name:"Add",path:e+"/add",query:t}):null!=this.editDialogPath?s.a.$emit("tabs-edit",{name:"Add",path:e+"/add",query:t}):this.$router.push({path:e+"/add",query:t})},clickDownload:function(){var e=JSON.parse(JSON.stringify(this.form));e.download=1,Object(o.g)(window.Hotime.name+"/"+this.templateData.name,e).then(function(e){0==e.status&&window.open(e.result,"_blank")})},clickUpload:function(){var a=this,e={name:"Table",path:window.Hotime.tableMapData.org.path,title:window.Hotime.tableMapData.org.parent.label+"-"+window.Hotime.tableMapData.org.label};s.a.$emit("dialog-edit",e),s.a.$off("table:"+window.Hotime.tableMapData.org.path),s.a.$on("table:"+window.Hotime.tableMapData.org.path,function(e){Object(o.i)({org_id:e.id},function(e,t){null!=e&&(0!=e.status?a.$message({type:"success",message:e.error.msg}):a.$message({type:"success",message:e.result}),a.formDebounce(a))})})},clickLink:function(e,t){t={name:"Info",path:window.Hotime.tableMapData[e].path+"/info",id:t,routerId:this.routerId,title:window.Hotime.tableMapData[e].parent.label+"-"+win