hotime/example/tpt/js/chunk-1afce11c.fbe5a1b4.js
2021-12-16 13:24:31 +08:00

1 line
34 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1afce11c","chunk-2f62f180"],{"0cb2":function(e,t,a){var n=a("7b0b"),d=Math.floor,l="".replace,f=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,j=/\$([$&'`]|\d{1,2})/g;e.exports=function(o,c,r,i,u,e){var b=r+o.length,s=i.length,t=j;return void 0!==u&&(u=n(u),t=f),l.call(e,t,function(e,t){var a;switch(t.charAt(0)){case"$":return"$";case"&":return o;case"`":return c.slice(0,r);case"'":return c.slice(b);case"<":a=u[t.slice(1,-1)];break;default:var n=+t;if(0==n)return e;if(s<n){var l=d(n/10);return 0===l?e:l<=s?void 0===i[l-1]?t.charAt(1):i[l-1]+t.charAt(1):e}a=i[n-1]}return void 0===a?"":a})}},1876:function(e,t,a){},"35fc":function(e,t,a){"use strict";a("7085")},5319:function(e,t,a){"use strict";var n=a("d784"),l=a("d039"),w=a("825a"),k=a("a691"),g=a("50c4"),D=a("577e"),o=a("1d80"),L=a("8aa5"),U=a("0cb2"),E=a("14c3"),c=a("b622")("replace"),I=Math.max,x=Math.min,a="$0"==="a".replace(/./,"$0"),r=!!/./[c]&&""===/./[c]("a","$0");n("replace",function(e,h,v){var y=r?"$":"$0";return[function(e,t){var a=o(this),n=null==e?void 0:e[c];return void 0!==n?n.call(e,a,t):h.call(D(a),e,t)},function(e,t){var a=w(this),n=D(e);if("string"==typeof t&&-1===t.indexOf(y)&&-1===t.indexOf("$<")){e=v(h,a,n,t);if(e.done)return e.value}var l="function"==typeof t;l||(t=D(t));var o,c=a.global;c&&(o=a.unicode,a.lastIndex=0);for(var r=[];;){if(null===(d=E(a,n)))break;if(r.push(d),!c)break;""===D(d[0])&&(a.lastIndex=L(n,g(a.lastIndex),o))}for(var i,u="",b=0,s=0;s<r.length;s++){for(var d=r[s],f=D(d[0]),j=I(x(k(d.index),n.length),0),O=[],m=1;m<d.length;m++)O.push(void 0===(i=d[m])?i:String(i));var _,p=d.groups,p=l?(_=[f].concat(O,j,n),void 0!==p&&_.push(p),D(t.apply(void 0,_))):U(f,n,j,O,p,t);b<=j&&(u+=n.slice(b,j)+p,b=j+f.length)}return u+n.slice(b)}]},!!l(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!a||r)},5899:function(e,t){e.exports="\t\n\v\f\r    \u2028\u2029\ufeff"},"58a8":function(e,t,a){var n=a("1d80"),l=a("577e"),a="["+a("5899")+"]",o=RegExp("^"+a+a+"*"),c=RegExp(a+a+"*$"),a=function(t){return function(e){e=l(n(e));return 1&t&&(e=e.replace(o,"")),e=2&t?e.replace(c,""):e}};e.exports={start:a(1),end:a(2),trim:a(3)}},7085:function(e,t,a){},7087:function(e,t,a){},7156:function(e,t,a){var o=a("861d"),c=a("d2bb");e.exports=function(e,t,a){var n,l;return c&&"function"==typeof(n=t.constructor)&&n!==a&&o(l=n.prototype)&&l!==a.prototype&&c(e,l),e}},"7b01":function(e,t,a){"use strict";a("aa38")},"8aa5":function(e,t,a){"use strict";var n=a("6547").charAt;e.exports=function(e,t,a){return t+(a?n(e,t).length:1)}},"8e1d":function(e,t,a){"use strict";a("b0c0");var r=a("9f9f"),i={class:"basic-form-info"},u={key:0,class:"form-list-common form-list"},b=["title"],s=Object(r.r)(" "),d=["title"],f=Object(r.r)(": "),j=["title"],O=Object(r.r)(": "),m=["title"],_={key:1,class:"form-list-file form-list"},p={key:0,class:"img-item"},h=["title"],v={key:1,class:"file-item"},y=["title"],w=["onClick"];var n={props:{basicForm:{type:String,default:JSON.stringify({form:[],files:[]})},inline:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data:function(){return{form:""}},created:function(){this.form=JSON.parse(this.basicForm)},mounted:function(){},computed:{},methods:{downLoadFile:function(e){e&&e.url&&window.open(e.url)}},watch:{}};a("35fc");n.render=function(a,e,t,n,l,o){var c=Object(r.U)("el-image");return Object(r.L)(),Object(r.n)("div",i,[l.form.form&&0<l.form.form.length?(Object(r.L)(),Object(r.n)("div",u,[(Object(r.L)(!0),Object(r.n)(r.b,null,Object(r.S)(l.form.form,function(e,t){return Object(r.L)(),Object(r.n)("div",{class:"form-common-item",style:{display:"flex"},key:t},[Object(r.o)("div",{class:"name",title:e.label},Object(r.Y)(e.label),9,b),s,Object(r.o)("div",{class:"value",title:e.value},Object(r.Y)(e.value),9,d),f,Object(r.o)("div",{class:"value",title:e.style},Object(r.Y)(e.style),9,j),O,null!=e.style?(Object(r.L)(),Object(r.n)("div",{key:0,class:"name",title:e.result?"正常":"异常"},Object(r.Y)(e.result?"正常":"异常"),9,m)):Object(r.m)("",!0)])}),128))])):Object(r.m)("",!0),l.form.files&&0<l.form.files.length?(Object(r.L)(),Object(r.n)("div",_,[(Object(r.L)(!0),Object(r.n)(r.b,null,Object(r.S)(l.form.files,function(e,t){return Object(r.L)(),Object(r.n)("div",{class:"form-file-item",key:t},["img"==e.t?(Object(r.L)(),Object(r.n)("div",p,[Object(r.o)("div",{class:"name",title:e.label},Object(r.Y)(e.label)+"",9,h),(Object(r.L)(!0),Object(r.n)(r.b,null,Object(r.S)(e.value,function(e){return Object(r.L)(),Object(r.l)(c,{key:e.url,style:{width:"60px",height:"60px"},src:e.url,fit:a.contain},null,8,["src","fit"])}),128))])):Object(r.m)("",!0),"file"==e.type?(Object(r.L)(),Object(r.n)("div",v,[Object(r.o)("div",{class:"name",title:e.label},Object(r.Y)(e.label)+"",9,y),(Object(r.L)(!0),Object(r.n)(r.b,null,Object(r.S)(e.value,function(t){return Object(r.L)(),Object(r.n)("div",{class:"file-wrap",key:t.url},[Object(r.o)("div",{class:"file-name",style:{cursor:"pointer"},onClick:function(e){return o.downLoadFile(t)}},Object(r.Y)(t.name),9,w)])}),128))])):Object(r.m)("",!0)])}),128))])):Object(r.m)("",!0)])};t.a=n},a9e3:function(e,t,a){"use strict";function n(e){if(s(e))throw TypeError("Cannot convert a Symbol value to a number");var t,a,n,l,o,c,r,i=d(e,"number");if("string"==typeof i&&2<i.length)if(43===(t=(i=p(i)).charCodeAt(0))||45===t){if(88===(e=i.charCodeAt(2))||120===e)return NaN}else if(48===t){switch(i.charCodeAt(1)){case 66:case 98:a=2,n=49;break;case 79:case 111:a=8,n=55;break;default:return+i}for(o=(l=i.slice(2)).length,c=0;c<o;c++)if((r=l.charCodeAt(c))<48||n<r)return NaN;return parseInt(l,a)}return+i}var l=a("83ab"),o=a("da84"),c=a("94ca"),r=a("6eeb"),i=a("5135"),u=a("c6b6"),b=a("7156"),s=a("d9b5"),d=a("c04e"),f=a("d039"),j=a("7c73"),O=a("241c").f,m=a("06cf").f,_=a("9bf2").f,p=a("58a8").trim,h="Number",v=o[h],y=v.prototype,w=u(j(y))==h;if(c(h,!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var k,g=function(e){var e=arguments.length<1?0:e,t=this;return t instanceof g&&(w?f(function(){y.valueOf.call(t)}):u(t)!=h)?b(new v(n(e)),t,g):n(e)},D=l?O(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),L=0;D.length>L;L++)i(v,k=D[L])&&!i(g,k)&&_(g,k,m(v,k));(g.prototype=y).constructor=g,r(o,h,g)}},aa38:function(e,t,a){},aab3:function(e,t,a){"use strict";a("e50e")},ae36:function(e,t,a){"use strict";a("1876")},b50c:function(e,t,a){"use strict";a.r(t);a("b0c0");var p=a("9f9f");var b=a("b85c");a("a9e3"),a("159b"),a("4de4"),a("fb6a"),a("ac1f"),a("5319"),a("9911");Object(p.O)("data-v-012633a9");var h=["src"],v={key:1,class:"el-icon-plus avatar-uploader-icon"},y=Object(p.r)("上传文件"),w=["title"],k={key:1,class:"radio-wrap"},g=Object(p.r)("立即修改"),D=Object(p.r)("取消");Object(p.M)();var n=a("acf7"),c=a("2934"),l=a("b775"),s=a("83c5"),o={props:{routerPath:String,routerId:Number},components:{BasicForm:n.a},data:function(){return{fileName:"",id:null,templateData:{},baseurl:l.a,formLink:{},form:{},shortcuts:[{text:"今天",value:new Date},{text:"昨天",value:((e=new Date).setTime(e.getTime()-864e5),e)},{text:"一周前",value:((e=new Date).setTime(e.getTime()-6048e5),e)}]};var e},methods:{beforeAvatarUpload:function(e,t){var a=this;return null==e||Object(c.f)(e).then(function(e){a.form[t]=e.result}),!1},close:function(){s.a.$emit("tabs-close",{name:"Edit",path:this.templateData.path,id:this.id})},onSubmit:function(){var a=this;this.$confirm("此操作将进行修改操作,是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var e=window.Hotime,t=a.$refs.form;a.form.rule=JSON.stringify(t),Object(c.c)(e.data.name+"/"+a.templateData.name+"/"+a.id,a.form).then(function(e){0==e.status?(a.$message({type:"success",message:"修改成功!"}),a.close()):a.$message({type:"warn",message:e.error.msg})})})},routeInit:function(){var l=this,o=window.Hotime;if(null!=o.mapData[this.routerPath]?(this.templateData=o.mapData[this.routerPath],this.id=this.routerId):(this.templateData=o.mapData[this.$route.path.substring(0,this.$route.path.lastIndexOf("/edit"))],this.id=this.$route.query.id),null!=this.templateData){if(null!=this.templateData.columns){var e,t=Object(b.a)(this.templateData.columns);try{for(t.s();!(e=t.n()).done;){var a=e.value;null==a.value&&(a.value=a.name)}}catch(e){t.e(e)}finally{t.f()}}Object(c.d)(o.data.name+"/"+this.templateData.name+"/"+this.id).then(function(a){if(null!=l.templateData.columns){var e,t=Object(b.a)(l.templateData.columns);try{for(t.s();!(e=t.n()).done;)!function(){var t=e.value;null!=t.link&&Object(c.e)(o.data.name+"/"+t.link,{pageSize:100}).then(function(e){0==e.status&&(l.formLink[t.link]=e.result.data,l.formLink[t.link].push(a.result[t.link]))})}()}catch(e){t.e(e)}finally{t.f()}}for(var n in a.result)l.form[n]=a.result[n]+""})}}},watch:{},mounted:function(){this.routeInit()}};a("ae36"),a("e8cd");o.render=function(e,t,a,n,l,o){var c=Object(p.U)("el-option"),r=Object(p.U)("el-select"),i=Object(p.U)("el-form-item"),u=Object(p.U)("el-input"),b=Object(p.U)("el-input-number"),s=Object(p.U)("el-date-picker"),d=Object(p.U)("el-upload"),f=Object(p.U)("el-button"),j=Object(p.U)("BasicForm"),O=Object(p.U)("el-radio"),m=Object(p.U)("el-affix"),_=Object(p.U)("el-form");return Object(p.L)(),Object(p.l)(_,{ref:"form",model:l.form,"label-width":"180px",style:{"padding-top":"10px","overflow-y":"auto",width:"90%","padding-right":"30px",background:"white",display:"block","flex-direction":"row","flex-wrap":"wrap","align-content":"flex-start","justify-content":"flex-start"}},{default:Object(p.jb)(function(){return[(Object(p.L)(!0),Object(p.n)(p.b,null,Object(p.S)(l.templateData.columns,function(t){return Object(p.L)(),Object(p.n)("div",{key:t.type},[null!=t.link?(Object(p.L)(),Object(p.n)(p.b,{key:0},[0!=t.edit?(Object(p.L)(),Object(p.l)(i,{key:0,label:t.label+":"},{default:Object(p.jb)(function(){return[Object(p.s)(r,{modelValue:l.form[t.name],"onUpdate:modelValue":function(e){return l.form[t.name]=e},placeholder:"请选择",style:{width:"400px"}},{default:Object(p.jb)(function(){return[Object(p.s)(c,{label:"请选择",value:"null"}),null!=l.formLink[t.link]?(Object(p.L)(!0),Object(p.n)(p.b,{key:0},Object(p.S)(l.formLink[t.link],function(e){return Object(p.L)(),Object(p.l)(c,{key:e.id,label:e[t.value],value:e.id+""},null,8,["label","value"])}),128)):Object(p.m)("",!0)]}),_:2},1032,["modelValue","onUpdate:modelValue"])]}),_:2},1032,["label"])):Object(p.m)("",!0)],64)):Object(p.m)("",!0),null==t.link?(Object(p.L)(),Object(p.n)(p.b,{key:1},[0!=t.edit?(Object(p.L)(),Object(p.l)(i,{key:0,label:t.label+":"},{default:Object(p.jb)(function(){return[null==t.options?(Object(p.L)(),Object(p.n)(p.b,{key:0},["password"==t.type?(Object(p.L)(),Object(p.l)(u,{key:0,modelValue:l.form[t.value],"onUpdate:modelValue":function(e){return l.form[t.value]=e},"show-password":"",style:{width:"400px"}},null,8,["modelValue","onUpdate:modelValue"])):Object(p.m)("",!0),"text"==t.type?(Object(p.L)(),Object(p.l)(u,{key:1,modelValue:l.form[t.value],"onUpdate:modelValue":function(e){return l.form[t.value]=e},style:{width:"400px"}},null,8,["modelValue","onUpdate:modelValue"])):Object(p.m)("",!0),"number"==t.type?(Object(p.L)(),Object(p.l)(b,{key:2,modelValue:l.form[t.value],"onUpdate:modelValue":function(e){return l.form[t.value]=e},style:{width:"400px"}},null,8,["modelValue","onUpdate:modelValue"])):Object(p.m)("",!0),"time"==t.type?(Object(p.L)(),Object(p.l)(s,{key:3,modelValue:l.form[t.value],"onUpdate:modelValue":function(e){return l.form[t.value]=e},align:"right",type:"datetime",placeholder:"选择日期","value-format":"X",shortcuts:l.shortcuts,style:{width:"400px"}},null,8,["modelValue","onUpdate:modelValue","shortcuts"])):Object(p.m)("",!0),"image"==t.type?(Object(p.L)(),Object(p.l)(d,{key:4,action:"#","show-file-list":!1,"before-upload":function(e){return o.beforeAvatarUpload(e,t.value)}},{default:Object(p.jb)(function(){return[l.form[t.value]?(Object(p.L)(),Object(p.n)("img",{key:0,src:l.baseurl+l.form[t.value]},null,8,h)):(Object(p.L)(),Object(p.n)("i",v))]}),_:2},1032,["before-upload"])):Object(p.m)("",!0),"file"==t.type?(Object(p.L)(),Object(p.l)(d,{key:5,class:"file-upload",action:"#","show-file-list":!1,style:{width:"400px"},"before-upload":function(e){return o.beforeAvatarUpload(e,t.value)}},{default:Object(p.jb)(function(){return[Object(p.s)(f,{size:"small",type:"primary"},{default:Object(p.jb)(function(){return[y]}),_:1}),Object(p.o)("span",{class:"file-name",title:l.fileName},Object(p.Y)(l.fileName),9,w)]}),_:2},1032,["before-upload"])):Object(p.m)("",!0),"form"==t.type&&null!=l.form[t.value]?(Object(p.L)(),Object(p.l)(j,{key:6,ref:"basicForm",basicForm:l.form[t.value]},null,8,["basicForm"])):Object(p.m)("",!0)],64)):Object(p.m)("",!0),null!=t.options?(Object(p.L)(),Object(p.n)(p.b,{key:1},[2!==t.options.length?(Object(p.L)(),Object(p.l)(r,{key:0,modelValue:l.form[t.value],"onUpdate:modelValue":function(e){return l.form[t.value]=e},placeholder:"请选择",style:{width:"400px"}},{default:Object(p.jb)(function(){return[(Object(p.L)(!0),Object(p.n)(p.b,null,Object(p.S)(t.options,function(e){return Object(p.L)(),Object(p.l)(c,{key:e.value,label:e.name,value:e.value},null,8,["label","value"])}),128))]}),_:2},1032,["modelValue","onUpdate:modelValue"])):Object(p.m)("",!0),2===t.options.length?(Object(p.L)(),Object(p.n)("div",k,[Object(p.s)(O,{modelValue:l.form[t.value],"onUpdate:modelValue":function(e){return l.form[t.value]=e},label:t.options[0].value},{default:Object(p.jb)(function(){return[Object(p.r)(Object(p.Y)(t.options[0].name),1)]}),_:2},1032,["modelValue","onUpdate:modelValue","label"]),Object(p.s)(O,{modelValue:l.form[t.value],"onUpdate:modelValue":function(e){return l.form[t.value]=e},label:t.options[1].value},{default:Object(p.jb)(function(){return[Object(p.r)(Object(p.Y)(t.options[1].name),1)]}),_:2},1032,["modelValue","onUpdate:modelValue","label"])])):Object(p.m)("",!0)],64)):Object(p.m)("",!0)]}),_:2},1032,["label"])):Object(p.m)("",!0)],64)):Object(p.m)("",!0)])}),128)),Object(p.s)(m,{position:"bottom",offset:0,style:{width:"100%"}},{default:Object(p.jb)(function(){return[Object(p.s)(i,{style:{background:"white","padding-bottom":"10px"}},{default:Object(p.jb)(function(){return[Object(p.s)(f,{type:"primary",onClick:o.onSubmit},{default:Object(p.jb)(function(){return[g]}),_:1},8,["onClick"]),Object(p.s)(f,{onClick:o.close},{default:Object(p.jb)(function(){return[D]}),_:1},8,["onClick"])]}),_:1})]}),_:1})]}),_:1},8,["model"])},o.__scopeId="data-v-012633a9";var r=o,d={style:{display:"flex","flex-direction":"column",width:"100%"}},f={key:0,style:{}};n=a("c678");n.a.render=function(a,e,t,n,l,o){var c=Object(p.U)("el-link"),r=Object(p.U)("el-descriptions-item"),i=Object(p.U)("el-image"),u=Object(p.U)("BasicFormInfo"),b=Object(p.U)("el-descriptions");return Object(p.L)(),Object(p.n)("div",d,[Object(p.s)(b,{style:{width:"100%",background:"white",padding:"10px"}},{default:Object(p.jb)(function(){return[(Object(p.L)(!0),Object(p.n)(p.b,null,Object(p.S)(l.templateData.columns,function(t){return Object(p.L)(),Object(p.n)("div",{key:t.type},[null!=t.link?(Object(p.L)(),Object(p.n)(p.b,{key:0},[0!=t.info?(Object(p.L)(),Object(p.l)(r,{key:0,label:t.label+":"},{default:Object(p.jb)(function(){return[""!=l.form[t.link]&&null!=l.form[t.link]?(Object(p.L)(),Object(p.l)(c,{key:0,icon:"el-icon-link",href:"javascript:;",onClick:function(e){return o.clickLink(t.link,l.form[t.name])}},{default:Object(p.jb)(function(){return[Object(p.r)(Object(p.Y)(l.form[t.link]?l.form[t.link][t.value]:"无"),1)]}),_:2},1032,["onClick"])):Object(p.m)("",!0)]}),_:2},1032,["label"])):Object(p.m)("",!0)],64)):Object(p.m)("",!0),null==t.link?(Object(p.L)(),Object(p.n)(p.b,{key:1},[null==t.options&&0!=t.info?(Object(p.L)(),Object(p.l)(r,{key:0,label:t.label+":"},{default:Object(p.jb)(function(){return["image"==t.type?(Object(p.L)(),Object(p.l)(i,{key:0,style:{width:"50px",height:"50px"},src:l.baseurl+l.form[t.value],"preview-src-list":[l.baseurl+l.form[t.value]]},null,8,["src","preview-src-list"])):Object(p.m)("",!0),"image"!=t.type&&"form"!==t.type?(Object(p.L)(),Object(p.n)(p.b,{key:1},[Object(p.r)(Object(p.Y)(l.form[t.value]),1)],64)):Object(p.m)("",!0),"form"===t.type?(Object(p.L)(),Object(p.n)(p.b,{key:2},["form"==t.type&&l.form[t.value]?(Object(p.L)(),Object(p.l)(u,{key:0,ref:"basicForm",basicForm:l.form[t.value]},null,8,["basicForm"])):Object(p.m)("",!0)],64)):Object(p.m)("",!0)]}),_:2},1032,["label"])):Object(p.m)("",!0),"state"==t.type&&0!=t.info?(Object(p.L)(),Object(p.l)(r,{key:1,label:t.label+":"},{default:Object(p.jb)(function(){return[(Object(p.L)(!0),Object(p.n)(p.b,null,Object(p.S)(t.option,function(e){return Object(p.L)(),Object(p.n)("div",{key:e.name},[a.scope.row[t.value]==e.value?(Object(p.L)(),Object(p.n)("span",f,Object(p.Y)(e.name),1)):Object(p.m)("",!0)])}),128))]}),_:2},1032,["label"])):Object(p.m)("",!0)],64)):Object(p.m)("",!0)])}),128))]}),_:1})])};o=n.a,n=a("0748"),a=a("d0c8"),r={props:{routerPath:String,routerId:Number,close:Function},name:"Tabs",components:{Add:a.default,Table:n.default,Info:o,Edit:r},data:function(){return{activeName:"",tabs:[]}},methods:{removeTab:function(a){var n=this.tabs,l=this.activeName;n.forEach(function(e,t){e.path+e.id!==a||(t=n[t+1]||n[t-1])&&(l=t.path+t.id)}),this.activeName=l,this.tabs=n.filter(function(e){return e.path+e.id!==a})}},mounted:function(){var e,t,a,n=window.Hotime,c=this,l=null!=n.mapData[this.routerPath]?(e=n.mapData[this.routerPath],this.routerId):(e=n.mapData[this.$route.path],this.$route.query.id);if(e.id=l,e.path.lastIndexOf("/info")==e.path.length-5?(e.tabType="info",this.tabs.push(e),this.activeName=e.path+l,(t=n.mapData[e.path.slice(0,e.path.lastIndexOf("/info"))+"/edit"]).tabType="edit",t.id=l,this.tabs.push(t)):e.path.lastIndexOf("/edit")==e.path.length-5?(e.tabType="edit",this.tabs.push(e),this.activeName=e.path+l,(a=n.mapData[e.path.slice(0,e.path.lastIndexOf("/edit"))+"/info"]).tabType="info",a.id=l,this.tabs.push(a)):(e.path.lastIndexOf("/add")==e.path.length-4?e.tabType="add":(e.tabType="table",a.id=l),this.tabs.push(e),this.activeName=e.path),null!=e.byLink&&null!=l){var o,r=Object(b.a)(e.byLink);try{for(r.s();!(o=r.n()).done;){var i=o.value,u=Object.assign({},n.tableMapData[i.table]);u.label="关联"+u.label.replace("管理","").replace("关联",""),u.tabType="table",u.query={},u.query[i.name]=l,this.tabs.push(u)}}catch(e){r.e(e)}finally{r.f()}}s.a.$off("tabs"),s.a.$on("tabs",function(e){var t=Object.assign({},n.mapData[e.path]);t.label="关联"+t.parent.label.replace("管理","").replace("关联","")+t.label.replace("管理","").replace("关联",""),t.tabType=t.path.slice(t.path.lastIndexOf("/")+1,t.path.length),t.id=e.id;var a=!1;c.tabs.forEach(function(e){e.path==t.path&&e.id==t.id&&(a=!0)}),a||(t.closable=!0,t.query=e.query,c.tabs.push(t)),c.activeName=t.path+t.id}),s.a.$off("tabs-close"),s.a.$on("tabs-close",function(a){var n=c.activeName,l=-1,o=c.tabs;o.forEach(function(e,t){e.path!=a.path||e.id!=a.id||(t=o[(l=t)-1]||o[t+1])&&(n=t.path+t.id)}),1==o[l].closable?(c.activeName=n,c.tabs=o.filter(function(e,t){return t!==l})):1==l?c.activeName=n:null!=c.close?c.close():c.$router.go(-1)})},render:function(e,t,a,n,l,o){var c=Object(p.U)("Edit"),r=Object(p.U)("Info"),i=Object(p.U)("Table"),u=Object(p.U)("Add"),b=Object(p.U)("el-tab-pane"),s=Object(p.U)("el-tabs");return Object(p.L)(),Object(p.l)(s,{modelValue:l.activeName,"onUpdate:modelValue":t[0]||(t[0]=function(e){return l.activeName=e}),type:"border-card",style:{width:"100%","overflow-y":"auto"},onTabRemove:o.removeTab},{default:Object(p.jb)(function(){return[(Object(p.L)(!0),Object(p.n)(p.b,null,Object(p.S)(l.tabs,function(e){return Object(p.L)(),Object(p.l)(b,{key:e.name,label:e.label,name:e.path+e.id,lazy:"",closable:1==e.closable},{default:Object(p.jb)(function(){return["edit"==e.tabType?(Object(p.L)(),Object(p.l)(c,{key:0,"router-path":e.path,"router-id":e.id},null,8,["router-path","router-id"])):Object(p.m)("",!0),"info"==e.tabType?(Object(p.L)(),Object(p.l)(r,{key:1,"router-path":e.path,"router-id":e.id},null,8,["router-path","router-id"])):Object(p.m)("",!0),"table"==e.tabType?(Object(p.L)(),Object(p.l)(i,{key:2,"router-query":e.query,"router-path":e.path},null,8,["router-query","router-path"])):Object(p.m)("",!0),"add"==e.tabType?(Object(p.L)(),Object(p.l)(u,{key:3,"router-query":e.query,"router-path":e.path},null,8,["router-query","router-path"])):Object(p.m)("",!0)]}),_:2},1032,["label","name","closable"])}),128))]}),_:1},8,["modelValue","onTabRemove"])}},t.default=r},c678:function(module,__webpack_exports__,__webpack_require__){"use strict";var D_work_hotimejs_node_modules_babel_runtime_helpers_esm_createForOfIteratorHelper__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("b85c"),core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("a9e3"),core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("b0c0"),core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es_string_link_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("9911"),core_js_modules_es_string_link_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es_string_link_js__WEBPACK_IMPORTED_MODULE_3__),_components_BasicFormInfo_vue__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("8e1d"),_api_common_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("2934"),moment__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("c1df"),moment__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_6__),_utils_request_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("b775"),_bus_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("83c5");__webpack_exports__.a={props:{routerPath:String,routerId:Number},components:{BasicFormInfo:_components_BasicFormInfo_vue__WEBPACK_IMPORTED_MODULE_4__.a},data:function(){return{baseurl:_utils_request_js__WEBPACK_IMPORTED_MODULE_7__.a,templateData:{},form:{}}},methods:{clickLink:function(e,t){_bus_js__WEBPACK_IMPORTED_MODULE_8__.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})},onSubmit:function(){},routeInit:function routeInit(){var that=this,Hotime=window.Hotime,templateData,id,id=null!=Hotime.mapData[this.routerPath]?(templateData=Hotime.mapData[this.routerPath],this.routerId):(templateData=Hotime.mapData[this.$route.path.substring(0,this.$route.path.lastIndexOf("/info"))],this.$route.query.id);if(null!=templateData){if(null!=templateData.columns){var _iterator=Object(D_work_hotimejs_node_modules_babel_runtime_helpers_esm_createForOfIteratorHelper__WEBPACK_IMPORTED_MODULE_0__.a)(templateData.columns),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var item=_step.value;null==item.value&&(item.value=item.name)}}catch(err){_iterator.e(err)}finally{_iterator.f()}}Object(_api_common_js__WEBPACK_IMPORTED_MODULE_5__.d)(Hotime.data.name+"/"+templateData.name+"/"+id).then(function(data){if(null!=templateData.columns){var _iterator2=Object(D_work_hotimejs_node_modules_babel_runtime_helpers_esm_createForOfIteratorHelper__WEBPACK_IMPORTED_MODULE_0__.a)(templateData.columns),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var _item=_step2.value;if(null==_item.link)"time"!=_item.type||(data.result[_item.value]=moment__WEBPACK_IMPORTED_MODULE_6___default()(1e3*data.result[_item.value]).utc().format("YYYY-MM-DD HH:mm:ss"));else try{data.result[_item.value]=eval("data.result."+_item.value)}catch(e){}}}catch(err){_iterator2.e(err)}finally{_iterator2.f()}}that.form=data.result,that.templateData=templateData})}}},watch:{},mounted:function(){this.routeInit()}}},e50e:function(e,t,a){},e8cd:function(e,t,a){"use strict";a("7087")},fe2e:function(e,t,a){"use strict";a.r(t);var v=a("9f9f"),y=Object(v.r)("返回"),w=Object(v.r)("Footer");a("a9e3"),a("b0c0");var d=Object(v.o)("i",{class:"el-icon-s-home"},null,-1),f=Object(v.r)("收起/展开");var n={data:function(){return window.Hotime.vueComponent.leftNav=this,{leftNavHomeBar:!1,isCollapse:!1,name:"HoTime DashBoard",menus:window.Hotime.data.menus}},methods:{hideLeftHomeBar:function(){this.leftNavHomeBar=!1,window.Hotime.vueComponent.APP.showHeader=!0},setCollapse:function(){this.isCollapse=!this.isCollapse},handleOpen:function(e,t){},handleClose:function(e,t){}},mounted:function(){this.name=window.Hotime.data.label}};a("aab3");n.render=function(e,t,a,n,l,o){var c=Object(v.U)("el-menu-item"),r=Object(v.U)("el-menu-item-group"),i=Object(v.U)("el-submenu"),u=Object(v.U)("el-menu"),b=Object(v.U)("el-col"),s=Object(v.U)("el-row");return Object(v.L)(),Object(v.l)(s,{class:"tac",style:{height:"100%"}},{default:Object(v.jb)(function(){return[Object(v.s)(b,{span:24},{default:Object(v.jb)(function(){return[Object(v.s)(u,{uniqueOpened:!0,"default-active":e.$route.path,class:"el-menu-vertical-demo",onOpen:o.handleOpen,onClose:o.handleClose,style:{height:"100%"},collapse:e.isCollapse,router:""},{default:Object(v.jb)(function(){return[Object(v.kb)(Object(v.s)(c,{onClick:o.hideLeftHomeBar,class:"left-nav-home-bar",index:""},{title:Object(v.jb)(function(){return[Object(v.r)(Object(v.Y)(e.name),1)]}),default:Object(v.jb)(function(){return[d]}),_:1},8,["onClick"]),[[v.gb,e.leftNavHomeBar]]),(Object(v.L)(!0),Object(v.n)(v.b,null,Object(v.S)(e.menus,function(e){return Object(v.L)(),Object(v.n)(v.b,null,[null!=e.menus?(Object(v.L)(),Object(v.l)(i,{key:e.label,index:e.path},{title:Object(v.jb)(function(){return[Object(v.o)("i",{class:Object(v.B)(e.icon)},null,2),Object(v.o)("span",null,Object(v.Y)(e.label),1)]}),default:Object(v.jb)(function(){return[Object(v.s)(r,null,{default:Object(v.jb)(function(){return[(Object(v.L)(!0),Object(v.n)(v.b,null,Object(v.S)(e.menus,function(e){return Object(v.L)(),Object(v.l)(c,{key:e.label,index:e.path},{default:Object(v.jb)(function(){return[Object(v.o)("i",{class:Object(v.B)(e.icon)},null,2),Object(v.r)(Object(v.Y)(e.label),1)]}),_:2},1032,["index"])}),128))]}),_:2},1024)]}),_:2},1032,["index"])):Object(v.m)("",!0),null==e.menus?(Object(v.L)(),Object(v.l)(c,{key:e.label,index:e.path},{title:Object(v.jb)(function(){return[Object(v.r)(Object(v.Y)(e.label),1)]}),default:Object(v.jb)(function(){return[Object(v.o)("i",{class:Object(v.B)(e.icon)},null,2)]}),_:2},1032,["index"])):Object(v.m)("",!0)],64)}),256)),Object(v.s)(c,{onClick:o.setCollapse,style:{position:"absolute",bottom:"1px",width:"100%"}},{title:Object(v.jb)(function(){return[f]}),default:Object(v.jb)(function(){return[Object(v.o)("i",{class:Object(v.B)({"el-icon-s-fold":!e.isCollapse,"el-icon-s-unfold":e.isCollapse})},null,2)]}),_:1},8,["onClick"])]}),_:1},8,["default-active","onOpen","onClose","collapse"])]}),_:1})]}),_:1})};var l=n;Object(v.O)("data-v-297b6686");var j=Object(v.o)("i",{class:"el-icon-s-home",style:{"font-size":"18px","margin-right":"4px"}},null,-1),O={style:{display:"flex","flex-direction":"row","align-items":"center"}},m={class:"el-dropdown-link",style:{"margin-left":"30px"}},_=Object(v.o)("i",{class:"el-icon-user"},null,-1),p=Object(v.r)("个人信息"),h=Object(v.o)("i",{class:"el-icon-edit"},null,-1),k=Object(v.r)("修改信息"),g=Object(v.o)("i",{class:"el-icon-switch-button"},null,-1),D=Object(v.r)("系统注销");Object(v.M)();var o=a("2934"),c=a("83c5"),n={data:function(){return window.Hotime.vueComponent.headerNav=this,{name:"HoTime DashBoard",isShowHeader:!0,activeIndex:"1",activeIndex2:"1",data:{}}},methods:{handleSelect:function(e,t){},hideHeader:function(){window.Hotime.vueComponent.APP.showHeader=!1,window.Hotime.vueComponent.leftNav.leftNavHomeBar=!0},clickLogout:function(){var e=this;Object(o.d)(window.Hotime.data.name+"/hotime/logout").then(function(){e.$router.push({path:"/login"})})},clickInfo:function(){c.a.$emit("dialog",{name:"Info",path:window.Hotime.tableMapData.admin.path+"/info",id:this.data.id,title:window.Hotime.tableMapData.admin.parent.label+"-"+window.Hotime.tableMapData.admin.label})},clickEdit:function(){c.a.$emit("dialog",{name:"Edit",path:window.Hotime.tableMapData.admin.path+"/edit",id:this.data.id,title:window.Hotime.tableMapData.admin.parent.label+"-"+window.Hotime.tableMapData.admin.label})}},mounted:function(){this.name=window.Hotime.data.label;var t=this;Object(o.d)(window.Hotime.data.name+"/hotime/info").then(function(e){0==e.status?t.data=e.result:t.$router.push({path:"/login"})})}};a("7b01");n.render=function(e,t,a,n,l,o){var c=Object(v.U)("el-col"),r=Object(v.U)("el-button"),i=Object(v.U)("el-dropdown-item"),u=Object(v.U)("el-dropdown-menu"),b=Object(v.U)("el-dropdown"),s=Object(v.U)("el-row");return Object(v.L)(),Object(v.l)(s,null,{default:Object(v.jb)(function(){return[Object(v.s)(c,{span:6,class:"head-left"},{default:Object(v.jb)(function(){return[Object(v.o)("div",{role:"button",onClick:t[0]||(t[0]=function(){return o.hideHeader&&o.hideHeader.apply(o,arguments)}),style:{cursor:"pointer","font-size":"14px","margin-left":"3px","margin-bottom":"5px"}},[j,Object(v.r)(" "+Object(v.Y)(l.name),1)])]}),_:1}),Object(v.s)(c,{span:12}),Object(v.s)(c,{span:6,class:"head-right"},{default:Object(v.jb)(function(){return[Object(v.o)("div",O,[Object(v.s)(b,{"hide-on-click":!1},{dropdown:Object(v.jb)(function(){return[Object(v.s)(u,null,{default:Object(v.jb)(function(){return[Object(v.s)(i,{onClick:o.clickInfo},{default:Object(v.jb)(function(){return[_,p]}),_:1},8,["onClick"]),Object(v.s)(i,{onClick:o.clickEdit},{default:Object(v.jb)(function(){return[h,k]}),_:1},8,["onClick"]),Object(v.s)(i,{divided:"",onClick:o.clickLogout},{default:Object(v.jb)(function(){return[g,D]}),_:1},8,["onClick"])]}),_:1})]}),default:Object(v.jb)(function(){return[Object(v.o)("span",m,[Object(v.s)(r,{icon:"el-icon-user",type:"text",style:{color:"white","font-size":"14px"}},{default:Object(v.jb)(function(){return[Object(v.r)(Object(v.Y)(l.data.name),1)]}),_:1})])]}),_:1})])]}),_:1})]}),_:1})},n.__scopeId="data-v-297b6686";a={data:function(){return window.Hotime.vueComponent.APP=this,{showHeader:!0,routerViewShow:!0,showDialog:!1,items:[],dialogTitle:null,dialogDataPath:null,dialogDataId:null,dialogDataQuery:{}}},components:{LeftNavMenu:l,HeaderNavMenu:n,Tabs:a("b50c").default},mounted:function(){var t=this;c.a.$off("dialog"),c.a.$on("dialog",function(e){t.closeDialog(),setTimeout(function(){t.showDialog=!0,t.dialogTitle=e.title,t.dialogDataPath=e.path,t.dialogDataId=Number(e.id),t.dialogDataQuery=e.query},150)}),this.routeInit()},methods:{goBack:function(){this.$router.back()},closeDialog:function(){this.showDialog=!1,this.dialogDataPath=null,this.dialogDataId=null,this.dialogDataQuery={}},createItems:function(e,t){return t.push({path:e.path,label:e.label,icon:e.icon,table:e.table}),t=null!=e.parent&&null!=e.parent.path?this.createItems(e.parent,t):t},routeInit:function(){var e=this;this.routerViewShow=!1,setTimeout(function(){e.routerViewShow=!0},50);var t=window.Hotime.mapData[this.$route.path],a=[];null!=t&&((a=this.createItems(t,a)).reverse(),0!=a.length&&null==a[0].table&&(a[0].path="/"),this.items=a)}},watch:{$route:function(e){this.routeInit(e)}},render:function(e,t,a,n,l,o){var c=Object(v.U)("header-nav-menu"),r=Object(v.U)("el-header"),i=Object(v.U)("left-nav-menu"),u=Object(v.U)("el-aside"),b=Object(v.U)("el-link"),s=Object(v.U)("el-divider"),d=Object(v.U)("el-breadcrumb-item"),f=Object(v.U)("el-breadcrumb"),j=Object(v.U)("router-view"),O=Object(v.U)("el-container"),m=Object(v.U)("el-main"),_=Object(v.U)("Tabs"),p=Object(v.U)("el-dialog"),h=Object(v.U)("el-footer");return Object(v.L)(),Object(v.l)(O,{style:{height:"100vh",background:"rgb(245,246,247)"}},{default:Object(v.jb)(function(){return[Object(v.kb)(Object(v.s)(r,{style:{"background-color":"rgb(44, 55, 89)",height:"56px"}},{default:Object(v.jb)(function(){return[Object(v.s)(c,{style:{color:"azure",height:"100%","text-align":"left",margin:"auto"}})]}),_:1},512),[[v.gb,l.showHeader]]),Object(v.s)(O,{style:{overflow:"hidden"}},{default:Object(v.jb)(function(){return[Object(v.s)(u,{width:"auto",style:{overflow:"hidden"}},{default:Object(v.jb)(function(){return[Object(v.s)(i)]}),_:1}),Object(v.s)(m,{style:{padding:"10px 10px 0 10px"}},{default:Object(v.jb)(function(){return[Object(v.s)(O,{style:{height:"100%"}},{default:Object(v.jb)(function(){return[Object(v.s)(r,{style:{height:"30px",padding:"0px",display:"flex"}},{default:Object(v.jb)(function(){return[Object(v.s)(b,{href:"javascript:void()",onClick:o.goBack,type:"primary",icon:"el-icon-back",underline:!1,style:{height:"13px",width:"60px"}},{default:Object(v.jb)(function(){return[y]}),_:1},8,["onClick"]),Object(v.s)(s,{direction:"vertical"}),Object(v.s)(f,{"separator-class":"el-icon-arrow-right",style:{"margin-bottom":"30px"}},{default:Object(v.jb)(function(){return[(Object(v.L)(!0),Object(v.n)(v.b,null,Object(v.S)(l.items,function(e){return Object(v.L)(),Object(v.l)(d,{key:e.path,to:{path:e.path}},{default:Object(v.jb)(function(){return[Object(v.o)("i",{class:Object(v.B)(e.icon),style:{"margin-right":"3px"}},null,2),Object(v.r)(Object(v.Y)(e.label),1)]}),_:2},1032,["to"])}),128))]}),_:1})]}),_:1}),Object(v.s)(O,{style:{"overflow-y":"auto"}},{default:Object(v.jb)(function(){return[l.routerViewShow?(Object(v.L)(),Object(v.l)(j,{key:0},{default:Object(v.jb)(function(e){var t=e.Component;return[Object(v.s)(v.f,{name:"el-zoom-in-center"},{default:Object(v.jb)(function(){return[(Object(v.L)(),Object(v.l)(v.c,null,[(Object(v.L)(),Object(v.l)(Object(v.W)(t)))],1024))]}),_:2},1024)]}),_:1})):Object(v.m)("",!0)]}),_:1})]}),_:1})]}),_:1})]}),_:1}),Object(v.s)(p,{title:l.dialogTitle,modelValue:l.showDialog,"onUpdate:modelValue":t[0]||(t[0]=function(e){return l.showDialog=e}),"destroy-on-close":"",onClose:o.closeDialog,width:"80%","lock-scroll":""},{default:Object(v.jb)(function(){return[l.showDialog?(Object(v.L)(),Object(v.l)(_,{key:0,"router-path":l.dialogDataPath,"router-id":l.dialogDataId,"router-query":l.dialogDataQuery,onClose:o.closeDialog},null,8,["router-path","router-id","router-query","onClose"])):Object(v.m)("",!0)]}),_:1},8,["title","modelValue","onClose"]),Object(v.s)(h,{style:{"background-color":"rgb(123, 08, 80)",height:"20px",color:"azure",display:"none"}},{default:Object(v.jb)(function(){return[w]}),_:1})]}),_:1})}},t.default=a}}]);