From 7a79aa5219d8b89f5eacb980246f8f0b4006652a Mon Sep 17 00:00:00 2001 From: zwq Date: Fri, 21 Apr 2023 15:50:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/index.html | 2 +- dist/static/js/app.aef54e7c.js | 1 + dist/static/js/app.dcda1c56.js | 1 - dist/static/js/chunk-12f3.66ed577f.js | 1 + dist/static/js/chunk-12f3.e7e107d9.js | 1 - dist/static/js/chunk-2194.27dbc78d.js | 1 - dist/static/js/chunk-2194.ef9f4176.js | 1 + .../js/{chunk-25a2.be76961e.js => chunk-25a2.f4a485ea.js} | 2 +- .../js/{chunk-4a3f.b402c5ae.js => chunk-4a3f.000426eb.js} | 2 +- .../js/{chunk-4e41.1dbc72d1.js => chunk-4e41.4b65fd6b.js} | 2 +- 10 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 dist/static/js/app.aef54e7c.js delete mode 100644 dist/static/js/app.dcda1c56.js create mode 100644 dist/static/js/chunk-12f3.66ed577f.js delete mode 100644 dist/static/js/chunk-12f3.e7e107d9.js delete mode 100644 dist/static/js/chunk-2194.27dbc78d.js create mode 100644 dist/static/js/chunk-2194.ef9f4176.js rename dist/static/js/{chunk-25a2.be76961e.js => chunk-25a2.f4a485ea.js} (99%) rename dist/static/js/{chunk-4a3f.b402c5ae.js => chunk-4a3f.000426eb.js} (88%) rename dist/static/js/{chunk-4e41.1dbc72d1.js => chunk-4e41.4b65fd6b.js} (77%) diff --git a/dist/index.html b/dist/index.html index 1f967b9..1b737ac 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1 +1 @@ -AJ-Report
\ No newline at end of file +AJ-Report
\ No newline at end of file diff --git a/dist/static/js/app.aef54e7c.js b/dist/static/js/app.aef54e7c.js new file mode 100644 index 0000000..78dd740 --- /dev/null +++ b/dist/static/js/app.aef54e7c.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([["app"],{"0hX1":function(e,t,n){},"1WHY":function(e,t,n){"use strict";var i=n("0hX1");n.n(i).a},"3BMw":function(e,t,n){},"3ugU":function(e,t,n){"use strict";var i=n("FzRX");n.n(i).a},"7Qib":function(e,t,n){"use strict";n.d(t,"c",function(){return i}),n.d(t,"a",function(){return l}),n.d(t,"b",function(){return s});n("GQeE"),n("EJiy");function i(e){return/^(https?:|mailto:|tel:)/.test(e)}var r=n("NFKh"),o=r.enc.Utf8.parse("1234123412ABCDEF"),a=r.enc.Utf8.parse("ABCDEF1234123412");function l(e){var t=r.enc.Hex.parse(e),n=r.enc.Base64.stringify(t),i=r.AES.decrypt(n,o,{iv:a,mode:r.mode.CBC,padding:r.pad.Pkcs7}).toString(r.enc.Utf8).toString(),l=i.substr(-32);return i.split(l)[0]}function s(e){var t=r.enc.Utf8.parse(e+function(){var e=(new Date).getTime();return window.performance&&"function"==typeof window.performance.now&&(e+=performance.now()),"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?n:3&n|8).toString(16)})}());return r.AES.encrypt(t,o,{iv:a,mode:r.mode.CBC,padding:r.pad.Pkcs7}).ciphertext.toString().toUpperCase()}},"9wyP":function(e,t,n){"use strict";var i=n("GU1y");n.n(i).a},ABBr:function(e,t,n){"use strict";var i=n("Z6JC");n.n(i).a},C22y:function(e,t,n){"use strict";var i=n("DCHF");n.n(i).a},DCHF:function(e,t,n){},FzRX:function(e,t,n){},GU1y:function(e,t,n){},HiAn:function(e,t,n){},IMOA:function(e,t,n){"use strict";var i=n("hJ/h");n.n(i).a},IdPg:function(e,t,n){},K7LW:function(e,t,n){},P207:function(e,t,n){"use strict";var i=n("dbjk");n.n(i).a},Q2AE:function(e,t,n){"use strict";var i=n("Kw5r"),r=n("L2JU"),o={},a={state:{cacheViews:[]},mutations:{ADD_CACHEVIEW:function(e,t){e.cacheViews.includes(t.name)||t.meta&&t.meta.keepAlive&&e.cacheViews.push(t.name)}},actions:{addCachedView:function(e,t){(0,e.commit)("ADD_CACHEVIEW",t)}}},l={sidebar:function(e){return e.app.sidebar},device:function(e){return e.app.device},token:function(e){return e.user.token},accessUser:function(e){return e.user.accessUser},cacheViews:function(e){return e.cacheView.cacheViews}},s={},u=n("p46w"),c=n.n(u),d={state:{sidebar:{opened:!+c.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop"},mutations:{TOGGLE_SIDEBAR:function(e){e.sidebar.opened?c.a.set("sidebarStatus",1):c.a.set("sidebarStatus",0),e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1},CLOSE_SIDEBAR:function(e,t){c.a.set("sidebarStatus",1),e.sidebar.opened=!1,e.sidebar.withoutAnimation=t},TOGGLE_DEVICE:function(e,t){e.device=t}},actions:{ToggleSideBar:function(e){(0,e.commit)("TOGGLE_SIDEBAR")},CloseSideBar:function(e,t){(0,e.commit)("CLOSE_SIDEBAR",t.withoutAnimation)},ToggleDevice:function(e,t){(0,e.commit)("TOGGLE_DEVICE",t)}}},p=n("4d7F"),f=n.n(p),h=n("dVUk"),m=n("X4fA"),b={state:{token:"",accessUser:{}},mutations:{SET_TOKEN:function(e,t){e.token=t,Object(m.j)(t)},SET_ACCESSUSER:function(e,t){e.accessUser=t,Object(m.h)(t)}},actions:{Login:function(e,t){var n=e.commit,i={userName:t.userName.trim(),password:t.password.trim(),captchaVerification:t.captchaVerification.trim()};return new f.a(function(e,t){Object(h.a)(i).then(function(i){var r=i.repCode,o=i.repData;"0000"===r?(n("SET_TOKEN",o.token),n("SET_ACCESSUSER",o.accessUser),e(i)):t(i.repMsg)}).catch(function(e){t(e)})})},LogOut:function(e){var t=e.commit,n=e.state;return new f.a(function(e,i){Object(h.b)(n.token).then(function(){t("SET_TOKEN",""),t("SET_ACCESSUSER",{}),Object(m.c)(),Object(m.b)(),Object(m.a)(),e()}).catch(function(e){i(e)})})},FedLogOut:function(e){var t=e.commit;return new f.a(function(e){t("SET_TOKEN",""),t("SET_ACCESSUSER",{}),Object(m.c)(),Object(m.b)(),Object(m.a)(),e()})}}},v={state:{id:0,val:"",title:""},mutations:{setCategory:function(e,t){e.id=0,e.val=t.value,e.title=t.label}}};i.default.use(r.a);var g=new r.a.Store({modules:{app:d,user:b,cacheView:a,help:v},state:{},plugins:[function(e){}],actions:o,mutations:s,getters:l});t.a=g},SrQ6:function(e,t,n){"use strict";var i=n("IdPg");n.n(i).a},TrN3:function(e,t,n){"use strict";var i=n("YVn6");n.n(i).a},UIBd:function(e,t,n){},Ui9L:function(e,t,n){},"Va/y":function(e,t,n){"use strict";var i=n("Xo+u");n.n(i).a},Vtdi:function(e,t,n){"use strict";n.r(t);var i={};n.r(i),n.d(i,"basecode",function(){return le}),n.d(i,"getDataByCode",function(){return se}),n.d(i,"fixed",function(){return ue}),n.d(i,"formatTimestamp",function(){return ce}),n.d(i,"formatDate",function(){return de});var r=n("GQeE"),o=n.n(r),a=n("Kw5r"),l=n("XJYT"),s=n.n(l),u=(n("D66Q"),n("8NkQ")),c=n.n(u),d=(n("9d8Q"),n("HiAn"),n("aGE4"),n("vjVy"),n("sm2R")),p={name:"App",provide:function(){return{reload:this.reload}},data:function(){return{isRouterAlive:!1}},watch:{$route:function(e,t){"/login"==e.path&&this.queryDictName()}},computed:{},created:function(){this.queryDictName()},methods:{queryDictName:function(){var e=this;Object(d.b)(function(){e.isRouterAlive=!0})},reload:function(){this.isRouterAlive=!1,this.$nextTick(function(){this.isRouterAlive=!0})}}},f=n("KHd+"),h=Object(f.a)(p,function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[this.isRouterAlive?t("router-view"):this._e()],1)},[],!1,null,null,null);h.options.__file="App.vue";var m=h.exports,b=n("jE9Z"),v=n("QbLZ"),g=n.n(v),y=n("14Xm"),w=n.n(y),x=n("D3Ub"),C=n.n(x),F=n("L2JU"),k=n("vRGJ"),S=n.n(k),_={data:function(){return{levelList:null}},watch:{$route:function(){this.getBreadcrumb()}},computed:{levelListArr:function(){return this.levelList.filter(function(e){return e.meta&&e.meta.title})}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var e=this.$route.params,t=this.$route.matched.filter(function(t){if(t.name){var n=S.a.compile(t.path);return t.path=n(e),!0}});this.levelList=t}}},j=(n("P207"),Object(f.a)(_,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{separator:"/"}},[n("transition-group",{attrs:{name:"breadcrumb"}},e._l(e.levelListArr,function(t,i){return n("el-breadcrumb-item",{key:t.path},["noredirect"===t.redirect||i==e.levelListArr.length-1?n("span",{staticClass:"no-redirect"},[e._v(e._s(t.meta.title))]):n("router-link",{staticClass:"no-redirect",attrs:{to:t.redirect||t.path}},[e._v(e._s(t.meta.title))])],1)}),1)],1)},[],!1,null,"057878a4",null));j.options.__file="index.vue";var O=j.exports,D={name:"Hamburger",props:{isActive:{type:Boolean,default:!1},toggleClick:{type:Function,default:null}}},q=(n("1WHY"),Object(f.a)(D,function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("svg",{staticClass:"hamburger",class:{"is-active":this.isActive},attrs:{t:"1492500959545",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1691","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"64",height:"64"},on:{click:this.toggleClick}},[t("path",{attrs:{d:"M966.8023 568.849776 57.196677 568.849776c-31.397081 0-56.850799-25.452695-56.850799-56.850799l0 0c0-31.397081 25.452695-56.849776 56.850799-56.849776l909.605623 0c31.397081 0 56.849776 25.452695 56.849776 56.849776l0 0C1023.653099 543.397081 998.200404 568.849776 966.8023 568.849776z","p-id":"1692",fill:"#333"}}),this._v(" "),t("path",{attrs:{d:"M966.8023 881.527125 57.196677 881.527125c-31.397081 0-56.850799-25.452695-56.850799-56.849776l0 0c0-31.397081 25.452695-56.849776 56.850799-56.849776l909.605623 0c31.397081 0 56.849776 25.452695 56.849776 56.849776l0 0C1023.653099 856.07443 998.200404 881.527125 966.8023 881.527125z","p-id":"1693",fill:"#333"}}),this._v(" "),t("path",{attrs:{d:"M966.8023 256.17345 57.196677 256.17345c-31.397081 0-56.850799-25.452695-56.850799-56.849776l0 0c0-31.397081 25.452695-56.850799 56.850799-56.850799l909.605623 0c31.397081 0 56.849776 25.452695 56.849776 56.850799l0 0C1023.653099 230.720755 998.200404 256.17345 966.8023 256.17345z","p-id":"1694",fill:"#333"}})])])},[],!1,null,"438874a2",null));q.options.__file="index.vue";var T=q.exports,B=n("XS0u"),E=n("dVUk"),A=n("sxct"),$={data:function(){var e=this;return{wordVisible:!1,form:{oldPassword:"",password:"",confirmPassword:""},rules:{oldPassword:[{required:!0,validator:function(e,t,n){t.length<6||t.length>30?n(new Error("请输入原密码")):n()},trigger:"blur"}],password:[{required:!0,message:"请选择新密码",trigger:"blur"}],confirmPassword:[{required:!0,validator:function(t,n,i){""===n?i(new Error("请再次输入密码")):n!==e.form.password?i(new Error("两次输入密码不一致!")):n.length<6||n.length>20?i(new Error("密码长度需要再6-20之间!")):i()},trigger:"blur"}]},centerDialogVisible:!1}},components:{Breadcrumb:O,Hamburger:T},computed:g()({},Object(F.c)(["sidebar"])),created:function(){},methods:{toggleSideBar:function(){this.$store.dispatch("ToggleSideBar")},logout:function(){var e=this;this.$confirm("确定要退出吗","温馨提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){sessionStorage.clear(),localStorage.clear(),e.$router.push("/login")})},updatePassword:function(){var e=this;this.wordVisible=!0,this.$nextTick(function(){e.$refs.form&&e.$refs.form.resetFields()})},confrimUpdate:function(){var e=this;this.$refs.form.validate(function(){var t=C()(w.a.mark(function t(n){var i,r,o,a,l,s;return w.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=16;break}return i=e.form,r=i.oldPassword,o=i.password,a=i.confirmPassword,l={oldPassword:Object(A.a)(r),password:Object(A.a)(o),confirmPassword:Object(A.a)(a)},t.next=5,Object(E.c)(l);case 5:if(s=t.sent,"200"==s.code){t.next=9;break}return t.abrupt("return");case 9:e.wordVisible=!1,e.$message.success("修改密码成功,请重新登录"),sessionStorage.clear(),localStorage.clear(),e.$router.push("/login"),t.next=17;break;case 16:return t.abrupt("return",!1);case 17:case"end":return t.stop()}},t,e)}));return function(e){return t.apply(this,arguments)}}())},helpCenter:function(){var e=Object(B.b)("helpCategory");this.$router.push({path:"/helpCenList/list",query:{id:0,val:e[0].value,title:e[0].label}})}}},P=(n("Va/y"),Object(f.a)($,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-menu",{staticClass:"navbar",attrs:{mode:"horizontal"}},[n("hamburger",{staticClass:"hamburger-container",attrs:{"toggle-click":e.toggleSideBar,"is-active":e.sidebar.opened}}),e._v(" "),n("breadcrumb"),e._v(" "),e._e()],1),e._v(" "),n("el-dialog",{staticClass:"password-box",attrs:{title:"修改密码",visible:e.wordVisible,width:"40%","close-on-click-modal":!1,top:"20vh"},on:{"update:visible":function(t){e.wordVisible=t}}},[n("el-form",{ref:"form",attrs:{model:e.form,"label-width":"100px",rules:e.rules,"close-on-click-modal":!1}},[n("el-form-item",{attrs:{label:"原密码",prop:"oldPassword"}},[n("el-input",{attrs:{type:"password",autocomplete:"off"},model:{value:e.form.oldPassword,callback:function(t){e.$set(e.form,"oldPassword","string"==typeof t?t.trim():t)},expression:"form.oldPassword"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"新密码",prop:"password"}},[n("el-input",{attrs:{type:"password",autocomplete:"off"},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password","string"==typeof t?t.trim():t)},expression:"form.password"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"确认新密码",prop:"confirmPassword"}},[n("el-input",{attrs:{type:"password",autocomplete:"off"},model:{value:e.form.confirmPassword,callback:function(t){e.$set(e.form,"confirmPassword","string"==typeof t?t.trim():t)},expression:"form.confirmPassword"}})],1)],1),e._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.wordVisible=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.confrimUpdate}},[e._v("确 定")])],1)],1),e._v(" "),n("el-dialog",{attrs:{title:"说明",visible:e.centerDialogVisible,width:"34%",center:""},on:{"update:visible":function(t){e.centerDialogVisible=t}}},[n("div",{staticStyle:{"font-size":"20px","line-height":"50px","margin-bottom":"50px"}},[e._v("\n AJ-Report由"),n("a",{staticStyle:{"text-decoration":"underline"},attrs:{href:"http://www.anji-plus.com/",target:"_blank"}},[n("b",[e._v("安吉加加信息技术有限公司")])]),e._v("遵循\n "),n("a",{staticStyle:{"text-decoration":"underline","word-wrap":"break-word"},attrs:{href:"http://www.apache.org/licenses/LICENSE-2.0.html",target:"_blank"}},[n("strong",{staticStyle:{color:"orangered"}},[e._v("Apache2.0开源协议")])]),e._v("在"),n("a",{staticStyle:{"text-decoration":"underline","word-wrap":"break-word"},attrs:{href:"https://gitee.com/explore",target:"_blank"}},[n("b",[e._v("Gitee平台")])]),e._v("进行开源。\n ")]),e._v(" "),n("div",{staticStyle:{"font-size":"20px","line-height":"50px"}},[n("strong",[e._v(" 个人/商业使用须遵循Apache2.0开源协议。")]),e._v(" "),n("strong",{staticStyle:{color:"orangered"}},[e._v("禁止将AJ-Report产品用于违法违规业务。")])]),e._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary"},on:{click:function(t){e.centerDialogVisible=!1}}},[e._v("确 定")])],1)])],1)},[],!1,null,"c43cd2ae",null));P.options.__file="Navbar.vue";var I=P.exports,R=n("33yf"),N=n.n(R),M=n("7Qib"),L={name:"MenuItem",functional:!0,props:{icon:{type:String,default:""},title:{type:String,default:""}},render:function(e,t){var n=t.props,i=n.icon,r=n.title,o=[];return i&&o.push(e("i",{class:"iconfont "+i})),r&&o.push(e("span",{slot:"title"},[r])),o}},U=Object(f.a)(L,void 0,void 0,!1,null,null,null);U.options.__file="Item.vue";var V=U.exports,z={props:{to:{type:String,required:!0}},methods:{isExternalLink:function(e){return Object(M.c)(e)},linkProps:function(e){return this.isExternalLink(e)?{is:"a",href:e,target:"_blank",rel:"noopener"}:{is:"router-link",to:e}}}},H=Object(f.a)(z,function(){var e=this.$createElement;return(this._self._c||e)("component",this._b({},"component",this.linkProps(this.to),!1),[this._t("default")],2)},[],!1,null,null,null);H.options.__file="Link.vue";var J={name:"SidebarItem",components:{Item:V,AppLink:H.exports},props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},data:function(){return{onlyOneChild:null}},computed:{},methods:{hasOneShowingChild:function(e,t){var n=this,i=e.filter(function(e){return!e.hidden&&(n.onlyOneChild=e,!0)});return 1===i.length||0===i.length&&(this.onlyOneChild=g()({},t,{path:"",noShowingChildren:!0}),!0)},resolvePath:function(e){return this.isExternalLink(e)?e:N.a.resolve(this.basePath,e)},isExternalLink:function(e){return Object(M.c)(e)}}},Q=(n("3ugU"),Object(f.a)(J,function(){var e=this,t=e.$createElement,n=e._self._c||t;return!e.item.hidden&&e.item.children?n("div",{staticClass:"menu-wrapper"},[!e.hasOneShowingChild(e.item.children,e.item)||e.onlyOneChild.children&&!e.onlyOneChild.noShowingChildren||e.item.alwaysShow?[n("el-submenu",{attrs:{index:e.resolvePath(e.item.path)}},[n("template",{slot:"title"},[n("item",{attrs:{icon:e.item.meta.icon,title:e.item.meta.title}})],1),e._v(" "),e._l(e.item.children,function(t){return[[t.children&&t.children.length>0?n("sidebar-item",{key:t.path,staticClass:"nest-menu",attrs:{"is-nest":!0,item:t,"base-path":e.resolvePath(t.path)}}):e._e(),e._v(" "),n("app-link",{key:t.name,attrs:{to:e.resolvePath(t.path)}},[n("el-menu-item",{attrs:{index:e.resolvePath(t.path)}},[t.meta?n("item",{attrs:{icon:t.meta.icon,title:t.meta.title}}):e._e()],1)],1)]]})],2)]:[n("app-link",{attrs:{to:e.resolvePath(e.onlyOneChild.path)}},[n("el-menu-item",{class:{"submenu-title-noDropdown":!e.isNest},attrs:{index:e.resolvePath(e.onlyOneChild.path)}},[e.onlyOneChild.meta?n("item",{attrs:{icon:e.onlyOneChild.meta.icon||e.item.meta.icon,title:e.onlyOneChild.meta.title}}):e._e()],1)],1)]],2):e._e()},[],!1,null,"042d063a",null));Q.options.__file="SidebarItem.vue";var G={components:{SidebarItem:Q.exports},computed:g()({},Object(F.c)(["sidebar"]),{routes:function(){return this.$router.options.routes},isCollapse:function(){return!this.sidebar.opened}}),methods:{goBigScreen:function(){var e=this.$router.resolve({path:"/report/bigScreen"});window.open(e.href,"_blank")}}},K=(n("b004"),Object(f.a)(G,function(){var e=this.$createElement,t=this._self._c||e;return t("el-scrollbar",{attrs:{"wrap-class":"scrollbar-wrapper"}},[this._e(),this._v(" "),t("el-menu",{attrs:{"show-timeout":200,"default-active":this.$route.path,collapse:this.isCollapse,mode:"vertical"}},this._l(this.routes,function(e){return t("sidebar-item",{key:e.path,attrs:{item:e,"base-path":e.path}})}),1)],1)},[],!1,null,"2983cab3",null));K.options.__file="index.vue";var X=K.exports,W={name:"AppMain",computed:g()({},Object(F.c)(["cacheViews"]),{key:function(){return void 0!==this.$route.name?this.$route.name+ +new Date:this.$route+ +new Date}})},Y=(n("IMOA"),Object(f.a)(W,function(){var e=this.$createElement,t=this._self._c||e;return t("section",{staticClass:"app-main"},[t("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[t("keep-alive",{attrs:{include:this.cacheViews}},[t("router-view")],1)],1)],1)},[],!1,null,"47fee25c",null));Y.options.__file="AppMain.vue";var Z=Y.exports,ee=n("Q2AE"),te=document.body,ne={name:"Layout",components:{Navbar:I,Sidebar:X,AppMain:Z},watch:{$route:{handler:function(e,t){"realTimeLog"!=e.name&&"deviceInfo"!=e.name&&Object(B.a)("deviceInfo"),"helpCenter"!=e.name&&"helpCenterEdit"!=e.name&&Object(B.a)("helpCenterDetail"),this.addCachedView(e)},immediate:!0}},mixins:[{watch:{$route:function(e){"mobile"===this.device&&this.sidebar.opened&&ee.a.dispatch("CloseSideBar",{withoutAnimation:!1})}},beforeMount:function(){window.addEventListener("resize",this.resizeHandler)},mounted:function(){this.isMobile()&&(ee.a.dispatch("ToggleDevice","mobile"),ee.a.dispatch("CloseSideBar",{withoutAnimation:!0}))},methods:{isMobile:function(){return te.getBoundingClientRect().width-3<1024},resizeHandler:function(){if(!document.hidden){var e=this.isMobile();ee.a.dispatch("ToggleDevice",e?"mobile":"desktop"),e&&ee.a.dispatch("CloseSideBar",{withoutAnimation:!0})}}}}],computed:{sidebar:function(){return this.$store.state.app.sidebar},device:function(){return this.$store.state.app.device},classObj:function(){return{hideSidebar:!this.sidebar.opened,openSidebar:this.sidebar.opened,withoutAnimation:this.sidebar.withoutAnimation,mobile:"mobile"===this.device}}},methods:g()({},Object(F.b)(["addCachedView"]),{handleClickOutside:function(){this.$store.dispatch("CloseSideBar",{withoutAnimation:!1})}})},ie=(n("ABBr"),Object(f.a)(ne,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-wrapper",class:e.classObj},["mobile"===e.device&&e.sidebar.opened?n("div",{staticClass:"drawer-bg",on:{click:e.handleClickOutside}}):e._e(),e._v(" "),n("sidebar",{staticClass:"sidebar-container"}),e._v(" "),n("div",{staticClass:"main-container"},[n("navbar"),e._v(" "),n("app-main")],1)],1)},[],!1,null,"1a5b441d",null));ie.options.__file="Layout.vue";var re=ie.exports;a.default.use(b.a);var oe=[{path:"/login",component:function(){return n.e("chunk-12f3").then(n.bind(null,"3Xui"))},hidden:!0},{path:"/aj/**",component:function(){return n.e("chunk-2592").then(n.bind(null,"TiKq"))},hidden:!0},{path:"/el/**",component:function(){return n.e("chunk-be14").then(n.bind(null,"iRo7"))},hidden:!0},{path:"/report",name:"report",component:re,meta:{title:"报表设计",icon:"iconnavicon-ywcs",requireAuth:!0,permission:"datasourceManage|resultsetManage|reportManage|bigScreenManage"},children:[{path:"report",name:"reportIndex",component:function(){return n.e("chunk-e4f4").then(n.bind(null,"0MlO"))},meta:{title:"报表管理",icon:"iconnavicon-ywcs",keepAlive:!0,requireAuth:!0,permission:"reportManage"}},{path:"datasource",name:"datasource",component:function(){return n.e("chunk-00f4").then(n.bind(null,"ZjmF"))},meta:{title:"数据源",icon:"icondatabase",keepAlive:!0,requireAuth:!0,permission:"datasourceManage"}},{path:"resultset",name:"resultset",component:function(){return Promise.all([n.e("chunk-e411"),n.e("chunk-25a2"),n.e("chunk-d020")]).then(n.bind(null,"Zzv2"))},meta:{title:"数据集",icon:"iconAPIwangguan",keepAlive:!0,requireAuth:!0,permission:"resultsetManage"}},{path:"bigscreen",name:"bigscreen",component:function(){return n.e("chunk-3f20").then(n.bind(null,"b//P"))},meta:{title:"大屏报表",icon:"iconchufaqipeizhi-hui",keepAlive:!0,requireAuth:!0,permission:"bigScreenManage"}},{path:"excelreport",name:"excelreport",component:function(){return n.e("chunk-f515").then(n.bind(null,"0t1K"))},meta:{title:"表格报表",icon:"iconliebiao",keepAlive:!0,requireAuth:!0,permission:"excelManage"}},{path:"reportshare",name:"reportshare",component:function(){return n.e("chunk-e5bc").then(n.bind(null,"RteH"))},meta:{title:"报表分享",icon:"iconfenxiang1",keepAlive:!0,requireAuth:!0,permission:"reportShareManage"}}]},{path:"/system",name:"system",component:re,meta:{title:"系统设置",icon:"iconshezhi",requireAuth:!0,permission:"fileManage|dictManage|dictItemManage"},children:[{path:"file",name:"file",component:function(){return n.e("chunk-2194").then(n.bind(null,"lAHl"))},meta:{title:"文件管理",icon:"iconfill_folder",keepAlive:!0,requireAuth:!0,permission:"fileManage"}},{path:"dict",name:"dict",component:function(){return n.e("MiWS").then(n.bind(null,"MiWS"))},meta:{title:"数据字典",icon:"iconzidian",keepAlive:!0,requireAuth:!0,permission:"dictManage"}},{path:"dictItem",name:"dictItem",component:function(){return n.e("gJ75").then(n.bind(null,"gJ75"))},hidden:!0,meta:{title:"字典项",icon:"iconzidianxiang",keepAlive:!0,requireAuth:!0,permission:"dictItemManage"}}]},{path:"/bigscreen/viewer",component:function(){return Promise.all([n.e("chunk-2f12"),n.e("chunk-e4a7"),n.e("chunk-31ad")]).then(n.bind(null,"OnRN"))},hidden:!0,meta:{requireAuth:!0}},{path:"/bigscreen/designer",component:function(){return Promise.all([n.e("chunk-2f12"),n.e("chunk-e411"),n.e("chunk-722e"),n.e("chunk-0730"),n.e("chunk-4e41")]).then(n.bind(null,"VZcz"))},hidden:!0,meta:{requireAuth:!0}},{path:"/excelreport/viewer",component:function(){return n.e("chunk-4dd8").then(n.bind(null,"+N4U"))},hidden:!0,meta:{requireAuth:!0}},{path:"/excelreport/designer",component:function(){return Promise.all([n.e("chunk-722e"),n.e("chunk-b7af")]).then(n.bind(null,"Xvat"))},hidden:!0,meta:{requireAuth:!0}},{path:"/screenDesigner",component:function(){return Promise.all([n.e("chunk-2f12"),n.e("chunk-e411"),n.e("chunk-722e"),n.e("chunk-0730"),n.e("chunk-4a3f")]).then(n.bind(null,"rAJX"))},name:"screenDesigner"},{path:"/screen/preview",component:function(){return Promise.all([n.e("chunk-2f12"),n.e("chunk-e4a7"),n.e("chunk-1146")]).then(n.bind(null,"3sGO"))},hidden:!0,meta:{requireAuth:!0}},{path:"/404",component:function(){return n.e("chunk-539e").then(n.bind(null,"jNvO"))},hidden:!0},{path:"*",redirect:"/login",hidden:!0}],ae=new b.a({scrollBehavior:function(){return{y:0}},routes:oe});function le(e,t){if(void 0===e||null===e)return"";if(void 0===t||null===t)return e;for(var n=Object(B.b)("queryForCodeSelect")[t],i=e,r=0;rr?1:0}},getObjectType:function(e){var t=Object.prototype.toString;return e instanceof Element?"element":{"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"}[t.call(e)]},isNumber:function(e){return"number"==this.getObjectType(e)},isString:function(e){return"string"==this.getObjectType(e)},isArray:function(e){return"array"==this.getObjectType(e)},hasOwn:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},isNotBlank:function(e){return!this.isBlank(e)}},be()(pe,"isBlank",function(e){if(this.isNull(e))return!0;if("string"==typeof e)return""==e.trim();if("object"===(void 0===e?"undefined":ke()(e))){for(var t in e)return!1;return!0}return!1}),be()(pe,"isNotNull",function(e){return!this.isNull(e)}),be()(pe,"isNull",function(e){if(e&&0===parseInt(e))return!1;if(e instanceof Date||"boolean"==typeof e||"number"==typeof e)return!1;if(!(e instanceof Array)){if(e instanceof Object){for(var t in e=this.deepClone(e),["$parent"].forEach(function(t){delete e[t]}),e)return!1;return!0}return"null"===e||null==e||"undefined"===e||void 0===e||""===e}return 0===e.length}),be()(pe,"deepClone",function(e){var t=this,n=this.getObjectType(e),i=void 0;if("array"===n)i=[];else{if("object"!==n)return e;i={}}if("array"===n)for(var r=function(n,r){e[n]=(e[n],e[n]),e[n]&&delete e[n].$parent,i.push(t.deepClone(e[n]))},o=0,a=e.length;o=0?n[i]=e[i]:n[i]=this.urlEncode(e[i]));return n}),be()(pe,"getDictItemByCode",function(e,t){var n=Object(B.b)("AJReportDict");if(!n.hasOwnProperty(e))return null;for(var i=n[e],r=0;r0&&(this.option,this.label),this.url):null!=this.dictCode&&""!=this.dictCode.trim()?"/meta/gaeaDict/select/"+this.dictCode:null}},watch:{dictCode:function(e){e&&this.queryData()},localOptions:function(e){this.options=e},value:{handler:function(e){"string"==typeof e&&null!=this.url&&""!=this.url.trim()&&this.remoteQuery(e),null!=this.multiple?this.value?this.selectValue=this.value:this.selectValue=[]:null!=this.value&&void 0!=this.value?this.selectValue=this.value+"":this.selectValue=""},immediate:!0},url:function(){var e=this;setTimeout(function(){e.queryData()},500)}},created:function(){null!=this.multiple?this.selectValue=this.value:null!=this.value&&(this.selectValue=this.value+"")},mounted:function(){null!=this.requestUrl?this.queryData():this.options=this.localOptions},methods:{isDisabledOption:function(e){if(null==e||null==this.disabledOptions||0==this.disabledOptions.length)return!1;var t=e[this.option];return this.disabledOptions.indexOf(t)>=0},change:function(e){var t=this;""===e&&(e=""),this.$emit("input",e);var n=this.options.find(function(n){return n[t.option]==e});this.$emit("change",e,n)},getItemLabel:function(e,t){if(t.indexOf("${")<0&&t.indexOf(!1))return e[t];for(var n=t.match(/\$\{[a-zA-Z0-9]*\}/g),i=t,r=0;r=1?n("el-option",{attrs:{value:"",disabled:""}},[e._v("输入关键词搜索更多")]):e._e()],2)],1)},[],!1,null,"98912a54",null));Me.options.__file="anji-select.vue";var Le=Me.exports,Ue={props:{upLoadUrl:{type:String,default:function(){return""}},viewUrl:{type:String,default:function(){return""}},limit:{type:Number,default:function(){return 3}},value:{type:Array|String}},data:function(){return{imageUploadUrl:"",fileList:[],modeString:""}},computed:{requestUrl:function(){return null!=this.upLoadUrl&&""!=this.upLoadUrl.trim()?"http://report.picaiba.com/api/"+this.upLoadUrl:"http://report.picaiba.com/api//file/upload"},headers:function(){return{Authorization:Object(fe.f)()}}},watch:{value:function(e){this.echoUpload(e)}},mounted:function(){this.echoUpload(this.value)},methods:{handleRemove:function(e){this.fileList=[],console.log(this.fileList),console.log(this.limit),this.change()},handleExceed:function(){this.$message.warning("只能上传"+this.limit+"个文件")},handleDownload:function(e){window.open(e.url)},handleSuccess:function(e,t,n){200==e.code?(this.fileList.push({url:t.response.data.urlPath,fileId:t.response.data.fileId,fileType:t.response.data.fileType}),console.log(this.fileList),this.change()):this.$message.error("上传失败")},change:function(){var e=this.fileList;console.log(e),this.$emit("input",e),this.$emit("change",e)},handleBeforeUpload:function(e){var t=e.name.split(".")[e.name.split(".").length-1].toLowerCase();return!(["png","jpg","gif","icon","pdf","xlsx","xls","csv","mp4","avi"].indexOf(t)<0)||(this.$message.warning("请上传正确的格式文件"),!1)},echoUpload:function(e){console.log(e),e&&e.length>0?this.fileList=[{url:e}]:this.fileList=[]}}},Ve=(n("y4jC"),Object(f.a)(Ue,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"uploadImage"},[n("el-upload",{attrs:{headers:e.headers,limit:e.limit,action:e.requestUrl,"list-type":"picture-card","file-list":e.fileList,"on-remove":e.handleRemove,"on-exceed":e.handleExceed,"on-success":e.handleSuccess,"show-file-list":!0,"before-upload":e.handleBeforeUpload},scopedSlots:e._u([{key:"file",fn:function(t){var i=t.file;return n("div",{staticClass:"imgBox"},[n("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:i.url,alt:""}}),e._v(" "),n("span",{staticClass:"el-upload-list__item-actions"},[n("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return e.handleDownload(i)}}},[n("i",{staticClass:"el-icon-download"})]),e._v(" "),n("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return e.handleRemove(i)}}},[n("i",{staticClass:"el-icon-delete"})])])])}}])},[n("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})])],1)},[],!1,null,"1ab626cc",null));Ve.options.__file="anji-upload.vue";var ze=Ve.exports,He=n("Mj6V"),Je=n.n(He),Qe=(n("pdi6"),["/login","/aj/**","/el/**","/bigscreen/viewer","/excelreport/viewer"]);ae.beforeEach(function(e,t,n){Je.a.start();var i=Object(fe.f)(),r=Object(fe.d)();i?"/login"==e.path?(n("/report"),Je.a.done()):n():Qe.includes(e.path)?n():null!=i&&""!=i&&void 0!=i&&r!={}||null==e.meta||1!=e.meta.requireAuth?n():(n("/login?redirect="+e.path),Je.a.done())}),ae.afterEach(function(){Je.a.done()});var Ge={inserted:function(e,t,n){var i=t.value;0==Object(fe.g)(i)&&e.parentNode&&e.parentNode.removeChild(e)}},Ke=function(e){e.directive("permission",Ge)};window.Vue&&(window.permission=Ge,Vue.use(Ke)),Ge.install=Ke;var Xe=Ge,We=n("gNOu"),Ye=n.n(We);n("P1ze");a.default.component("v-chart",Pe.a),a.default.component("anji-upload",ze),a.default.component("anji-crud",Ie.default),a.default.component("anji-select",Le),a.default.use(Xe),a.default.use(Ye.a),a.default.use(s.a,{zhLocale:c.a}),o()(i).forEach(function(e){a.default.filter(e,i[e])}),a.default.mixin($e),a.default.prototype.$pageSizeAll=[10,50,100,200,500],a.default.config.productionTip=!1,new a.default({el:"#app",router:ae,store:ee.a,render:function(e){return e(m)}})},X4fA:function(e,t,n){"use strict";n.d(t,"f",function(){return u}),n.d(t,"e",function(){return c}),n.d(t,"j",function(){return d}),n.d(t,"i",function(){return p}),n.d(t,"c",function(){return f}),n.d(t,"b",function(){return h}),n.d(t,"d",function(){return m}),n.d(t,"h",function(){return b}),n.d(t,"a",function(){return v}),n.d(t,"g",function(){return g});var i=n("gDS+"),r=n.n(i),o=n("XS0u"),a="AJReportToken",l="AJReportShareToken",s="AJReportUser";function u(){return Object(o.b)(a)}function c(){return null==Object(o.b)(l)?"":Object(o.b)(l)}function d(e){return Object(o.c)(a,e)}function p(e){var t=c();return null==t&&""==t||-1!=t.indexOf(e)||(e=t+","+e),Object(o.c)(l,e)}function f(){return Object(o.a)(a)}function h(){return Object(o.a)(l)}function m(){return Object(o.b)(s)}function b(e){return Object(o.c)(s,e)}function v(){return Object(o.a)(s)}function g(e){if(null==e||0==e.length)return!0;var t=m();if(null==t||null==t.authorities)return!1;for(var n=r()(t.authorities),i=e.split("|"),o=0;o=0)return!0}return!1}},XS0u:function(e,t,n){"use strict";n.d(t,"c",function(){return l}),n.d(t,"b",function(){return s}),n.d(t,"a",function(){return u});var i=n("gDS+"),r=n.n(i),o=n("EJiy"),a=n.n(o);n("p46w");function l(e,t){if(void 0!==t&&null!=t){var n=t;"object"==(void 0===t?"undefined":a()(t))&&(n=r()(t)),localStorage.setItem(e,n)}}function s(e){var t=localStorage.getItem(e);try{return JSON.parse(t)}catch(e){return t}}function u(e){localStorage.removeItem(e)}},"Xo+u":function(e,t,n){},YVn6:function(e,t,n){},Z6JC:function(e,t,n){},aGE4:function(e,t,n){},b004:function(e,t,n){"use strict";var i=n("UIBd");n.n(i).a},"ba/L":function(e,t,n){"use strict";n.d(t,"e",function(){return u}),n.d(t,"b",function(){return c}),n.d(t,"f",function(){return d}),n.d(t,"a",function(){return p}),n.d(t,"d",function(){return f}),n.d(t,"c",function(){return h});var i=n("4d7F"),r=n.n(i),o=n("t3Un"),a=n("X4fA"),l=n("vDqi"),s=n.n(l);function u(e){return Object(o.a)({url:"reportDashboard",method:"post",data:e})}function c(e){return Object(o.a)({url:"reportDashboard/"+e,headers:{"Share-Token":Object(a.e)(),Authorization:Object(a.f)()},method:"get"})}function d(e){return Object(o.a)({url:"dataSet/queryAllDataSet",method:"get"})}function p(e){return Object(o.a)({url:"dataSet/detailBysetId/"+e,method:"get"})}function f(e){return Object(o.a)({url:"reportDashboard/getData",method:"post",headers:{"Share-Token":Object(a.e)(),Authorization:Object(a.f)()},data:e})}function h(e){return new r.a(function(t){s()({method:"get",url:"http://report.picaiba.com/api//reportDashboard/export",headers:{Authorization:Object(a.f)()},params:e,responseType:"blob"}).then(function(e){t(e.data)}).catch(function(e){t("error")})})}},dVUk:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return a});var i=n("t3Un");function r(e){return Object(i.a)({url:"accessUser/login",method:"post",data:e})}function o(){return Object(i.a)({url:"accessUser/logout",method:"post"})}function a(e){return Object(i.a)({url:"/accessUser/updatePassword",method:"post",data:e})}},dbjk:function(e,t,n){},"hJ/h":function(e,t,n){},jz6T:function(e,t,n){"use strict";var i=n("K7LW");n.n(i).a},oSSv:function(e,t,n){"use strict";var i=n("z69j");n.n(i).a},oVsj:function(e,t,n){"use strict";var i=n("3BMw");n.n(i).a},sYqA:function(e,t,n){"use strict";n.r(t);var i=n("14Xm"),r=n.n(i),o=n("D3Ub"),a=n.n(o),l=n("t3Un"),s={components:{},props:{url:{type:[String],default:function(){return""}},id:{type:[String],default:function(){return"id"}},label:{type:[String],default:function(){return""}},value:{type:[String],default:function(){return""}},labelName:String,enableFilter:Boolean,isOpen:Boolean},data:function(){return{filterText:"",treeData:[]}},computed:{},watch:{filterText:function(e){this.$refs.table_tree.filter(e)}},mounted:function(){this.queryData()},methods:{filterNode:function(e,t){return!e||-1!==t.label.indexOf(e)},queryData:function(){var e=this;this.isBlank(this.url)||Object(l.a)({url:this.url,method:"GET"}).then(function(t){"200"==t.code&&(e.treeData="[object Array]"==Object.prototype.toString.call(t.data)?t.data:t.data.tree||t.data.menuTree)})},nodeClick:function(e){this.$emit("input",e.id),this.$emit("node-click",e.id)},checkedEvent:function(e,t){var n=t.checkedKeys.toString();this.$emit("input",n)}}},u=(n("9wyP"),n("KHd+")),c=Object(u.a)(s,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.enableFilter?n("el-input",{staticClass:"filterInput",attrs:{placeholder:"搜索"},model:{value:e.filterText,callback:function(t){e.filterText=t},expression:"filterText"}}):e._e(),e._v(" "),n("div",{staticClass:"title"},[e._v(e._s(e.labelName))]),e._v(" "),n("el-tree",{ref:"table_tree",attrs:{data:e.treeData,"node-key":"id","default-expand-all":e.isOpen,"expand-on-click-node":!1,"filter-node-method":e.filterNode},on:{"node-click":e.nodeClick,check:e.checkedEvent}})],1)},[],!1,null,"086fdb0e",null);c.options.__file="anji-tree.vue";var d=c.exports,p=n("EJiy"),f=n.n(p),h=n("gDS+"),m=n.n(h),b={components:{},props:{modelType:String,showDialog:Boolean,option:{type:[Object],default:function(){return{title:"",labelWidth:"",queryFormFields:[],buttons:{query:{},edit:{},delete:{},add:{}},columns:[],formChange:function(e,t,n,i){}}}},relateData:{type:[Object],default:function(){return{}}},value:{type:[Object],default:function(){return{}}}},data:function(){return{cardRowColNum:this.option.rowColForm||2,editForm:{}}},computed:{primaryKeyFieldName:function(){var e=this.option.columns.find(function(e){return 1==e.primaryKey});return null!=e?e.field:null},joinColumn:function(){var e=this.option.joinColumn;return this.isBlank(e)&&(console.warn("在joinEntity中查找joinColumn属性失败,会导致查询详情和删除失败"),e=""),e},formFields:function(){var e=this;if(null==this.option.columns)return[];var t=this.deepClone(this.option.columns);return t=t.map(function(t){return e.isBlank(t.editField)&&(t.editField=t.field),e.isBlank(t.group)&&(t.group="其它"),t})},cardRowColSpan:function(){return 24/this.cardRowColNum},columnGroups:function(){return this.isBlank(this.formFields)?[]:this.formFields.map(function(e){return e.group}).filter(function(e,t,n){return n.indexOf(e)==t})},groupFormFields:function(){if(this.showDialog){var e={};return this.columnGroups.forEach(function(t,n,i){e[t]=[]}),this.formFields.forEach(function(t,n,i){e[t.group].push(t)}),e}return[]},groupModel:function(){return this.columnGroups.length>1}},created:function(){this.$watch(function(){return this.value},function(e,t){this.editForm=e,this.formChange()}),this.$watch(function(){return this.relateData[this.joinColumn]},function(e,t){if(this.isBlank(this.relateData))return this.cardRowColNum=2,void(this.editForm={});this.isNotBlank(e)&&this.queryDetail()})},mounted:function(){this.isNotBlank(this.value)&&(this.editForm=this.value,this.formChange()),this.isNotBlank(this.relateData)&&this.isNotBlank(this.relateData[this.joinColumn])&&this.queryDetail()},methods:{fieldIsHide:function(e){if("boolean"==typeof e)return e;if("string"==typeof e){if("add"==this.modelType)return e.indexOf("hideOnAdd")>=0;if("view"==this.modelType)return e.indexOf("hideOnView")>=0;if("edit"==this.modelType)return e.indexOf("hideOnEdit")>=0}return!1},fieldIsDisable:function(e){if("boolean"==typeof e)return e;if("string"==typeof e){if("add"==this.modelType)return e.indexOf("disableOnAdd")>=0;if("view"==this.modelType)return e.indexOf("disableOnView")>=0;if("edit"==this.modelType)return e.indexOf("disableOnEdit")>=0}return!1},handleSetRowColNum:function(e){this.cardRowColNum=e,this.$emit("changeRowColNum",e)},queryDetail:function(){var e=this;return a()(r.a.mark(function t(){var n,i,o;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.relateData,t.next=3,e.option.buttons.queryByPrimarykey.api(n);case 3:if(i=t.sent,o=i.data,"200"==i.code){t.next=8;break}return t.abrupt("return");case 8:e.editForm=o,e.formChange();case 10:case"end":return t.stop()}},t,e)}))()},validate:function(e){var t=this;this.$refs.editForm.validate(function(){var n=a()(r.a.mark(function n(i,o){return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:null!=e&&e(i);case 1:case"end":return t.stop()}},n,t)}));return function(e,t){return n.apply(this,arguments)}}())},handleSave:function(e){var t=this;this.$refs.editForm.validate(function(){var n=a()(r.a.mark(function n(i,o){var a,l,s,u,c,d;return r.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!i){n.next=20;break}if("add"!=t.modelType){n.next=11;break}return"function"==typeof t.option.beforeInsert&&t.option.beforeInsert(t.relateData,t.editForm),n.next=5,t.option.buttons.add.api(t.editForm);case 5:a=n.sent,l=a.code,s=a.message,"200"==l?null!=e&&e():console.log("提交表单调用新增接口失败:"+s),n.next=18;break;case 11:return"function"==typeof t.option.beforeUpdate&&t.option.beforeUpdate(t.relateData,t.editForm),n.next=14,t.option.buttons.edit.api(t.editForm);case 14:u=n.sent,c=u.code,d=u.message,"200"==c?null!=e&&e():console.log("提交表单调用更新接口失败:"+d);case 18:n.next=21;break;case 20:console.log("表单校验失败");case 21:case"end":return n.stop()}},n,t)}));return function(e,t){return n.apply(this,arguments)}}())},formChange:function(e,t,n){this.$emit("input",this.editForm),"function"==typeof this.option.formChange&&this.option.formChange(this.editForm,e,t,n)}}},v=(n("SrQ6"),Object(u.a)(b,function(){var e=this,t=e.$createElement,n=e._self._c||t;return null==e.option.hide||0==e.option.hide?n("div",{staticClass:"anji-card"},[n("div",{staticClass:"card-head"},[e._v("\n "+e._s(e.option.title)+"\n "),n("div",{staticClass:"main-card-header-button"},[n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.handleSetRowColNum(4)}}},[e._v("||||")]),e._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.handleSetRowColNum(3)}}},[e._v("|||")]),e._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.handleSetRowColNum(2)}}},[e._v("||")])],1)]),e._v(" "),n("div",{staticClass:"card-body"},[n("el-form",{ref:"editForm",attrs:{model:e.editForm,"label-width":e.option.labelWidth||"100px"}},[e._l(e.columnGroups,function(t){return[e.groupModel?n("el-divider",{key:t,attrs:{"content-position":"left"}},[e._v(e._s(t))]):e._e(),e._v(" "),n("el-row",{key:t,staticClass:"form_table"},[e._l(e.groupFormFields[t],function(t){return[0==e.fieldIsHide(t.editHide)?n("el-col",{key:t.editField,attrs:{span:null==t.rowColSpan?e.cardRowColSpan:t.rowColSpan}},[n("el-form-item",{attrs:{label:t.label,rules:t.rules,prop:t.editField,disabled:t.disabled}},[""!=t.tips&&null!=t.tips?n("span",{staticClass:"input_tips",style:{"margin-left":"-13px"}},[n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.tips,placement:"top-start"}},[n("svg-icon",{attrs:{"icon-class":"tishi-yiwen"}})],1)],1):e._e(),e._v(" "),"input"==t.inputType?n("el-input",{attrs:{placeholder:t.placeholder||"请输入",clearable:!1!==t.clearable,disabled:e.fieldIsDisable(t.disabled)},on:{change:function(n){return e.formChange(t.editField,n,null)}},model:{value:e.editForm[t.editField],callback:function(n){e.$set(e.editForm,t.editField,"string"==typeof n?n.trim():n)},expression:"editForm[item.editField]"}}):"switch"==t.inputType?n("el-switch",{attrs:{disabled:e.fieldIsDisable(t.disabled),"active-value":1,"inactive-value":0,"inactive-color":"#ccc","active-color":"#5887fb"},on:{change:function(n){return e.formChange(t.editField,n,null)}},model:{value:e.editForm[t.editField],callback:function(n){e.$set(e.editForm,t.editField,"string"==typeof n?n.trim():n)},expression:"editForm[item.editField]"}}):"input-number"==t.inputType?n("el-input-number",{attrs:{min:t.inputNumberOption.min,max:t.inputNumberOption.max,placeholder:t.placeholder||"请输入",clearable:!1!==t.clearable,disabled:e.fieldIsDisable(t.disabled)},on:{change:function(n){return e.formChange(t.editField,n,null)}},model:{value:e.editForm[t.editField],callback:function(n){e.$set(e.editForm,t.editField,"string"==typeof n?n.trim():n)},expression:"editForm[item.editField]"}}):"anji-input"==t.inputType?n("anji-input",{attrs:{unit:t.anjiInput.unit,"default-unit":t.anjiInput.defaultUnit,placeholder:t.placeholder||"请输入",clearable:!1!==t.clearable,disabled:e.fieldIsDisable(t.disabled)},on:{change:function(n){return e.formChange(t.editField,n,null)}},model:{value:e.editForm[t.editField],callback:function(n){e.$set(e.editForm,t.editField,"string"==typeof n?n.trim():n)},expression:"editForm[item.editField]"}}):"anji-select"==t.inputType?n("anji-select",{attrs:{"allow-create":t.anjiSelectOption.allowCreate,multiple:t.anjiSelectOption.multiple,disabled:e.fieldIsDisable(t.disabled),"dict-code":t.anjiSelectOption.dictCode,placeholder:t.placeholder,url:t.anjiSelectOption.url,method:t.anjiSelectOption.method,"query-param":t.anjiSelectOption.queryParam,"merge-label":t.anjiSelectOption.mergeLabel,option:t.anjiSelectOption.option,label:t.anjiSelectOption.label,"remote-filter":t.anjiSelectOption.remoteFilter,"disabled-options":t.anjiSelectOption.disabledOptions,"select-keyword":t.anjiSelectOption.selectKeyword},on:{change:function(n,i){return e.formChange(t.editField,n,i)}},model:{value:e.editForm[t.editField],callback:function(n){e.$set(e.editForm,t.editField,"string"==typeof n?n.trim():n)},expression:"editForm[item.editField]"}}):t.inputType.indexOf("date")>=0?n("el-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:t.placeholder||"请选择",type:t.inputType,format:t.format,"value-format":t.valueFormat,disabled:e.fieldIsDisable(t.disabled),clearable:!1!==t.clearable},on:{change:function(n){return e.formChange(t.editField,n,null)}},model:{value:e.editForm[t.editField],callback:function(n){e.$set(e.editForm,t.editField,n)},expression:"editForm[item.editField]"}}):"checkbox"==t.inputType?n("anji-checkbox",{attrs:{"dict-code":t.anjiCheckbox.dictCode,url:t.anjiCheckbox.url,label:t.anjiCheckbox.label,disabled:e.fieldIsDisable(t.disabled)},on:{change:function(n,i){return e.formChange(t.editField,n,i)}},model:{value:e.editForm[t.editField],callback:function(n){e.$set(e.editForm,t.editField,"string"==typeof n?n.trim():n)},expression:"editForm[item.editField]"}}):"anji-cascader"==t.inputType?n("anji-cascader",{attrs:{disabled:e.fieldIsDisable(t.disabled),"single-display":t.anjiCascader.singleDisplay,url:t.anjiCascader.url},on:{change:function(n){return e.formChange(t.editField,n,null)}},model:{value:e.editForm[t.editField],callback:function(n){e.$set(e.editForm,t.editField,"string"==typeof n?n.trim():n)},expression:"editForm[item.editField]"}}):"anji-upload"==t.inputType?n("anji-upload",{attrs:{"up-load-url":t.anjiUpload.upLoadUrl,"view-url":t.anjiUpload.viewUrl,"upload-type":t.anjiUpload.uploadType,limit:t.anjiUpload.limit},on:{change:function(n){return e.formChange(t.editField,n,null)}},model:{value:e.editForm[t.editField],callback:function(n){e.$set(e.editForm,t.editField,"string"==typeof n?n.trim():n)},expression:"editForm[item.editField]"}}):"anji-autocomplete"==t.inputType?n("anji-autocomplete",{attrs:{disabled:e.fieldIsDisable(t.disabled),label:t.anjiAutocomplete.label,option:t.anjiAutocomplete.option,"appoint-value":t.anjiAutocomplete.appointValue,url:t.anjiAutocomplete.url},on:{change:function(n,i){return e.formChange(t.editField,n,i)}},model:{value:e.editForm[t.editField],callback:function(n){e.$set(e.editForm,t.editField,"string"==typeof n?n.trim():n)},expression:"editForm[item.editField]"}}):"textarea"==t.inputType?n("el-input",{attrs:{placeholder:t.placeholder||"请输入",clearable:!1!==t.clearable,disabled:e.fieldIsDisable(t.disabled),type:"textarea",rows:2},on:{change:function(n){return e.formChange(t.editField,n,null)}},model:{value:e.editForm[t.editField],callback:function(n){e.$set(e.editForm,t.editField,"string"==typeof n?n.trim():n)},expression:"editForm[item.editField]"}}):"anji-country"==t.inputType?n("anji-fourlevel",{on:{change:function(n){return e.formChange(t.editField,n,null)}},model:{value:e.editForm[t.editField],callback:function(n){e.$set(e.editForm,t.editField,"string"==typeof n?n.trim():n)},expression:"editForm[item.editField]"}}):n("el-input",{attrs:{placeholder:"组件不支持此类型表单请至组件内部自行扩展",disabled:""}})],1)],1):e._e()]})],2)]})],2)],1)]):e._e()},[],!1,null,"6d4810f5",null));v.options.__file="edit-form.vue";var g=v.exports,y={components:{},props:{modelType:String,option:{type:[Object],default:function(){return{title:"",labelWidth:"",queryFormFields:[],buttons:{query:{},edit:{},delete:{},add:{}},columns:[]}}},relateData:{type:[Object],default:function(){return{}}},value:{type:[Array],default:function(){return[]}},valueNew:{type:[Array],default:function(){return[]}}},data:function(){return{checkRecords:[],form:{records:[],total:0},saveButtonStatus:[],rowIdList:[]}},computed:{primaryKeyFieldName:function(){var e=this.option.columns.find(function(e){return 1==e.primaryKey});return null!=e?e.field:null},joinColumn:function(){var e=this.option.joinColumn;return this.isBlank(e)&&(console.warn("在columns中查找关联字段失败,会导致查询详情和删除失败,孙子关联表忽略该错误"),e=""),e},formRecordsUndelete:function(){return null==this.form.records?[]:this.form.records.filter(function(e){return null==e.deletedFlag||0==e.deletedFlag})}},watch:{},created:function(){this.isNotBlank(this.joinColumn)&&this.$watch(function(){return this.relateData[this.joinColumn]},function(e,t){this.isNotBlank(e)?this.handleQueryPageList(e):(this.checkRecords=[],this.form.records=[],this.form.total=0,this.saveButtonStatus=[])})},mounted:function(){this.isNotBlank(this.relateData)&&this.isNotBlank(this.relateData[this.joinColumn])&&this.handleQueryPageList()},methods:{fieldIsHide:function(e){if("boolean"==typeof e)return e;if("string"==typeof e){if("add"==this.modelType)return e.indexOf("hideOnAdd")>=0;if("view"==this.modelType)return e.indexOf("hideOnView")>=0;if("edit"==this.modelType)return e.indexOf("hideOnEdit")>=0}return!1},getRowEditButton:function(e){return"inEditing"==this.saveButtonStatus[e]?"btn_savetemp":"inAdding"==this.saveButtonStatus[e]?"btn_savetemp":"inShow"==this.saveButtonStatus[e]?"btn_edit":"not_permission"},tableRowClassAdapter:function(e){var t=e.row,n=e.rowIndex;t.index=n},handleQueryPageList:function(e){var t=this;return a()(r.a.mark(function n(){var i;return r.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:t.isBlank(e)&&(e=t.relateData[t.joinColumn]),(i={})[t.joinColumn]=e,t.queryPageList(i);case 4:case"end":return n.stop()}},n,t)}))()},queryPageList:function(e){var t=this;return a()(r.a.mark(function n(){var i,o,a;return r.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return t.isNotBlank(t.option.buttons.query.order)&&(e.sort=t.option.buttons.query.sort,e.order=t.option.buttons.query.order),n.next=3,t.option.buttons.query.api(e);case 3:if(i=n.sent,o=i.data,"200"==i.code){n.next=8;break}return n.abrupt("return");case 8:for(t.form.records=o.records,t.form.total=o.total,t.$emit("input",t.form.records),a=0;a=0?n("el-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:t.placeholder||"请选择",type:t.inputType,clearable:!1!==t.clearable,disabled:"inShow"==e.saveButtonStatus[i.$index]||t.disabled},on:{change:function(n){return e.tableRowChange(i.$index,t.field,n)}},model:{value:i.row[t.field],callback:function(n){e.$set(i.row,t.field,n)},expression:"scope.row[item.field]"}}):n("el-input",{attrs:{placeholder:"组件不支持此类型表单请至组件内部自行扩展",disabled:""}})],1)]}}],null,!0)}):e._e()]}),e._v(" "),n("el-table-column",{attrs:{fixed:"right",label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return e.handleAddOrUpdate(t.row,t.$index)}}},[e._v(e._s(e.getRowEditButton(t.$index)))]),e._v(" "),n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return e.handleDelete(t.row,t.$index)}}},[e._v("删除")])]}}],null,!1,1921872996)})],2)],1),e._v(" "),"view"!=e.modelType?n("button",{staticClass:"table-add-row-button",on:{click:e.handleAdd}},[n("i",{staticClass:"el-icon-plus"}),e._v(" "),n("span",[e._v("新增")])]):e._e()],1)]):e._e()},[],!1,null,"75d47ce0",null));w.options.__file="edit-table.vue";var x={name:"EditDialog",components:{EditForm:g,EditTable:w.exports},props:{visible:{type:[Boolean],default:function(){return!1}},rowData:{type:[Object],default:function(){return{}}},handleDetailData:{type:Function,default:function(e){return e}},submitDetailData:{type:Function,default:function(e,t){return e}},modelType:String,option:{require:!0,type:Object,default:function(){return{title:"",labelWidth:"",queryFormFields:[],buttons:{query:{},edit:{},delete:{},add:{}},columns:[]}}}},data:function(){return{showDialog:!1,dialogFullScreen:!1,cardRowColNum:2,saveForm:{},countForValidJoinForm:0}},computed:{dialogWidth:function(){return 2==this.cardRowColNum?"60%":3==this.cardRowColNum?"70%":4==this.cardRowColNum?"80%":"60%"},joinEntitys:function(){return this.isBlank(this.option.joinEntitys)?[]:this.option.joinEntitys},countJoinEntityOneToOne:function(){var e=this.joinEntitys.filter(function(e){return"OneToOne"==e.joinType});return null==e?0:e.length}},watch:{visible:function(e,t){this.showDialog=e,this.initDefaultSaveForm()},rowData:function(e,t){null!=e&&this.queryByPrimarykey(e)}},mounted:function(){this.initDefaultSaveForm()},methods:{getSaveForm:function(){return this.saveForm},setSaveForm:function(e){this.saveForm=e},initDefaultSaveForm:function(){var e=this,t={};this.option.columns.forEach(function(n){var i=n.editField;e.isBlank(i)&&(i=n.field);var r=n.defaultValue;e.isNotBlank(r)&&(t[i]=r)}),this.saveForm=this.deepClone(t),console.log("编辑框默认值:"+m()(this.saveForm))},handleCloseDialog:function(e){this.initDefaultSaveForm(),this.showDialog=!1,this.dialogFullScreen=!1,this.cardRowColNum=2,this.countForValidJoinForm=0,this.$emit("closeEvent",e)},handleTopCloseDialog:function(){this.initDefaultSaveForm(),this.showDialog=!1,this.dialogFullScreen=!1,this.cardRowColNum=2,this.countForValidJoinForm=0},handleSetRowColNum:function(e){this.cardRowColNum=e},getComponentByJoinType:function(e,t){return"OneToOne"==e?"EditForm":"OneToMany"==e?"EditTable":""},queryByPrimarykey:function(e){var t=this;return a()(r.a.mark(function n(){var i,o;return r.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.option.buttons.queryByPrimarykey.api(e);case 2:if(i=n.sent,o=i.data,"200"==i.code){n.next=7;break}return n.abrupt("return");case 7:t.showDialog=!0,t.saveForm=t.handleDetailData(o);case 9:case"end":return n.stop()}},n,t)}))()},handleValidateAndSave:function(){var e=this;this.countForValidJoinForm=0,this.$refs.mainForm.validate(function(t){if(0!=t)if(console.log("主表单校验完成"),null!=e.joinEntitys&&0!=e.joinEntitys.length)for(var n=function(t){console.log("开始校验子表单-"+t+" 校验");var n=e.joinEntitys[t];if(console.log(n),null!=e.$refs["joinForm"+t]&&1!=n.hide&&null!=e.saveForm[n.fieldNameInMainEntityOnSave]&&0!=e.saveForm[n.fieldNameInMainEntityOnSave].length)return e.checkedChildrenValidate(e.saveForm[n.fieldNameInMainEntityOnSave],n.columns)?(e.countForValidJoinForm++,console.log("已经校验的子表单:"+e.countForValidJoinForm+" 共:"+e.joinEntitys.length),e.countForValidJoinForm==e.joinEntitys.length&&(console.log("子表单校验完成,提交主表单"),e.handleSave()),"continue"):{v:void 0};console.warn("子表单校验失败");var i=e.$refs["joinForm"+t];"[object Array]"==toString.call(i)&&(i=i[0]),i.validate(function(n){n?(e.countForValidJoinForm++,console.log("已经校验的子表单:"+e.countForValidJoinForm+" 共:"+e.joinEntitys.length),e.countForValidJoinForm==e.joinEntitys.length&&(console.log("子表单校验完成,提交主表单"),e.handleSave())):console.warn("子表单"+t+"校验失败:")})},i=0;i0?e.forEach(function(e){t.records.forEach(function(t){e.id==t.id&&(t.dblClickFlag=!0,t.bgColor=!0)})}):this.records.forEach(function(e){e.dblClickFlag=!1,e.bgColor=!1}),this.isShowRowContextMenu=!1,this.checkRecords=e},handleSelectionDblclick:function(e){e.dblClickFlag=!e.dblClickFlag,e.bgColor=e.dblClickFlag,this.$refs.tables.toggleRowSelection(e,e.dblClickFlag)},rowContextMenu:function(e,t,n){var i=this;n.preventDefault(),this.option.contextMenu.forEach(function(e){"all"==e.flag?e.disabled=!(i.checkRecords.length>1):e.disabled=i.checkRecords.length>1}),this.contextMenuConfigStyle={left:n.clientX+"px",top:n.clientY+"px",display:"block"},this.contextMenuRow=e,this.isShowRowContextMenu=!0},handleContextMenuItem:function(e){"all"==e.flag?e.click({selection:this.checkRecords}):e.click({msg:this.contextMenuRow})},handleCurrentChange:function(e){this.queryParams.pageNumber=e,this.handleQueryPageList()},handleSizeChange:function(e){this.queryParams.pageNumber=1,this.queryParams.pageSize=e,this.handleQueryPageList()},fieldLabel:function(e){var t="",n=this.getSettingByName("unit_conversion"),i={};for(var r in n)e.anjiInput&&-1!=r.toLowerCase().indexOf(e.anjiInput.unit.toLowerCase())&&(i[r]=n[r]);for(var o in i)-1!=o.toLowerCase().indexOf("text")&&(t=i[o]);return null==e?"":"anji-input"==e.inputType&&null!=e.anjiInput?void 0==e.anjiInput.defaultUnit?e.label+"("+t+")":e.label+"("+e.anjiInput.defaultUnit+")":e.label},fieldValueByAnjiInput:function(e,t){var n=this.getSettingByName("unit_conversion"),i="",r="",o=[],a={};for(var l in n)t.anjiInput&&-1!=l.toLowerCase().indexOf(t.anjiInput.unit.toLowerCase())&&(a[l]=n[l]);for(var s in a)-1!=s.toLowerCase().indexOf("conversion")&&-1==s.toLowerCase().indexOf("conversiontext")&&-1==s.toLowerCase().indexOf("conversionradiogroup")&&(i=a[s]),-1!=s.toLowerCase().indexOf("keeppoint")&&(r=a[s]),Array.isArray(a[s])&&(o=a[s]);return null==t?e:"anji-input"!=t.inputType||null==t.anjiInput?e:void 0==t.anjiInput.defaultUnit?(e/i).toFixed(r||2):(e/o.find(function(e){return e.label==t.anjiInput.defaultUnit}).value).toFixed(r||2)},fieldValueByRowRenderer:function(e,t){return null==t||"function"!=typeof t.fieldTableRowRenderer?e[t.field]:t.fieldTableRowRenderer(e)},getMainEntity:function(){return this.$refs.edit.getSaveForm()},setMainEntity:function(e){this.$refs.edit.setSaveForm(e)},switchChange:function(e,t){var n=this;return a()(r.a.mark(function i(){return r.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:Object(l.a)({url:t.url,method:"put",headers:{noPrompt:!1},data:[e.id]}).then(function(e){n.handleQueryPageList()});case 1:case"end":return i.stop()}},i,n)}))()},queryFormChange:function(e,t){"function"==typeof this.option.queryFormChange&&this.option.queryFormChange(this.queryParams,e,t)},tableRowClassName:function(e){var t=e.row,n=e.rowIndex;return!t.urgentFlag&&!t.tableRow||t.bgColor?(t.urgentFlag||t.tableRow)&&t.bgColor?"warning-row bgColor":t.urgentFlag&&t.tableRow||!t.bgColor?(n+1)%2==0?"success-row":void 0:"bgColor":"warning-row"}}},j=(n("jz6T"),Object(u.a)(_,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:[e.hasTreeFieldInQueryForm?"page-container":"app-container"]},[e.hasTreeFieldInQueryForm?n("div",{staticClass:"left-container"},[n("AnjiTree",{ref:"queryFormTree",attrs:{"is-open":e.queryFormTreeField.anjiTreeOption.isOpen,"enable-filter":e.queryFormTreeField.anjiTreeOption.enableFilter,"label-name":e.queryFormTreeField.label,url:e.queryFormTreeField.anjiTreeOption.url},on:{"node-click":e.handleTreeNodeCheck},model:{value:e.queryParams[e.queryFormTreeField.field],callback:function(t){e.$set(e.queryParams,e.queryFormTreeField.field,"string"==typeof t?t.trim():t)},expression:"queryParams[queryFormTreeField.field]"}})],1):e._e(),e._v(" "),n("div",{staticClass:"right-container"},[n("div",{staticClass:"top_part"},[0==e.queryFormTreeHide?n("el-form",{ref:"formSearch",staticStyle:{"border-bottom":"1px solid #dbdde3","margin-bottom":"10px"},attrs:{model:e.queryParams,"label-width":"100px"}},[n("div",{staticClass:"screenFlex"},[n("div",{staticClass:"searchFormFlex"},[n("el-row",[e._l(e.queryFormFieldExcludeTree,function(t,i){return[i<3||e.queryParams.showMoreSearch?n("el-col",{key:t.field,attrs:{span:8}},[n("el-form-item",{attrs:{label:t.label,rules:t.rules,prop:t.field}},["input"==t.inputType||"input-number"==t.inputType?n("el-input",{attrs:{placeholder:t.placeholder||"请输入",clearable:!1!==t.clearable,disabled:t.disabled},on:{change:function(n){return e.queryFormChange(t.field,n)}},model:{value:e.queryParams[t.field],callback:function(n){e.$set(e.queryParams,t.field,"string"==typeof n?n.trim():n)},expression:"queryParams[item.field]"}}):"switch"==t.inputType?n("el-switch",{attrs:{disabled:t.disabled,"active-value":t.switchOption.disableValue,"inactive-value":t.switchOption.enableValue,"active-color":"#5887fb","inactive-color":"#ccc"},on:{change:function(n){return e.queryFormChange(t.field,n)}},model:{value:e.queryParams[t.field],callback:function(n){e.$set(e.queryParams,t.field,"string"==typeof n?n.trim():n)},expression:"queryParams[item.field]"}}):"anji-select"==t.inputType?n("anji-select",{attrs:{multiple:t.anjiSelectOption.multiple,"dict-code":t.anjiSelectOption.dictCode,url:t.anjiSelectOption.url,method:t.anjiSelectOption.method,"query-param":t.anjiSelectOption.queryParam,option:t.anjiSelectOption.option,label:t.anjiSelectOption.label,"disabled-options":t.anjiSelectOption.disabledOptions,disabled:t.disabled,"merge-label":t.anjiSelectOption.mergeLabel,"local-options":t.anjiSelectOption.localOptions},on:{change:function(n){return e.queryFormChange(t.field,n)}},model:{value:e.queryParams[t.field],callback:function(n){e.$set(e.queryParams,t.field,"string"==typeof n?n.trim():n)},expression:"queryParams[item.field]"}}):t.inputType.indexOf("date")>=0?n("el-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:t.placeholder||"请选择",type:t.inputType,format:t.format,"value-format":t.valueFormat,clearable:!1!==t.clearable},on:{change:function(n){return e.queryFormChange(t.field,n)}},model:{value:e.queryParams[t.field],callback:function(n){e.$set(e.queryParams,t.field,n)},expression:"queryParams[item.field]"}}):"anji-cascader"==t.inputType?n("anji-cascader",{attrs:{disabled:t.disabled,"single-display":t.anjiCascader.singleDisplay,url:t.anjiCascader.url},on:{change:function(n){return e.queryFormChange(t.field,n,null)}},model:{value:e.queryParams[t.field],callback:function(n){e.$set(e.queryParams,t.field,"string"==typeof n?n.trim():n)},expression:"queryParams[item.field]"}}):n("el-input",{attrs:{placeholder:"组件不支持此类型表单请至组件内部自行扩展",disabled:""}})],1)],1):e._e()]})],2)],1),e._v(" "),n("div",{staticClass:"screenButtons"},[e.queryFormFieldExcludeTree.length>3?n("el-button",{staticClass:"button",attrs:{size:"mini",plain:""},on:{click:e.handleToggleMoreSearch}},[n("i",{class:e.queryParams.showMoreSearch?"el-icon-arrow-up":"el-icon-arrow-down"}),e._v("\n "+e._s(1==e.queryParams.showMoreSearch?"展开":"收起")+"\n ")]):e._e(),e._v(" "),n("el-button",{staticClass:"button",attrs:{size:"mini",plain:""},on:{click:function(t){return e.handleResetForm()}}},[e._v("重置")]),e._v(" "),n("el-button",{staticClass:"button",attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.handleQueryForm("query")}}},[e._v("查询")])],1)])]):e._e(),e._v(" "),n("div",{staticStyle:{"padding-bottom":"8px"}},[e._t("tableButtons",null,{selection:e.checkRecords}),e._v(" "),e._l(e.option.tableButtons,function(t,i){return n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:t.permission,expression:"item.permission"}],key:i,staticClass:"tableButton",attrs:{plain:t.plain,icon:t.icon,type:t.type,disabled:e.isDisabledButton(t,e.checkRecords)},on:{click:function(n){return t.click(e.checkRecords)}}},[e._v(e._s(e.handlegetLable(e.checkRecords,t.label)))])})],2)],1),e._v(" "),n("div",{staticClass:"main_part"},[n("div",{staticClass:"page_main"},[n("el-table",{ref:"tables",staticClass:"elTable",attrs:{align:"center",data:e.records,"row-class-name":e.tableRowClassName,border:""},on:{"selection-change":e.handleSelectionChange,"sort-change":e.handleSortChange,"row-dblclick":e.handleSelectionDblclick,"row-contextmenu":e.rowContextMenu}},[n("el-table-column",{attrs:{fixed:"",type:"selection",width:"50",align:"center"}}),e._v(" "),e.tableExpandColumns.length>0?n("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(e.tableExpandColumns,function(i){return n("p",{key:i.field,staticClass:"table-expand-item"},[n("span",{staticClass:"titel"},[e._v(" "+e._s(i.label)+": ")]),e._v(" "),n("span",[e._v(e._s(t.row[i.field]))])])})}}],null,!1,3354752618)}):e._e(),e._v(" "),n("el-table-column",{attrs:{label:"序号","min-width":"50",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.queryParams.pageSize*(e.queryParams.pageNumber-1)+t.$index+1)+"\n ")]}}])}),e._v(" "),e._l(e.option.columns,function(t,i){return[1!=t.tableHide&&"expand"!=t.columnType?n("el-table-column",{key:i,attrs:{prop:t.field,label:e.fieldLabel(t),"min-width":t.minWidth||110,sortable:t.sortable,"show-overflow-tooltip":!0,align:"center"},scopedSlots:e._u([{key:"default",fn:function(i){return["imgPreview"==t.columnType?n("div",[n("el-image",{staticStyle:{width:"25%",height:"50%"},attrs:{fit:"contain",src:i.row[t.field],"preview-src-list":[i.row[t.field]]}})],1):n("div",["switch"!=t.inputType||t.colorStyle?"anji-input"==t.inputType?n("span",[e._v(e._s(e.fieldValueByAnjiInput(i.row[t.field],t)))]):t.mergeColumn?n("span",[e._v(e._s(i.row[t.field])+"("+e._s(i.row[t.mergeColumn])+")")]):t.colorStyle?n("span",{class:t.colorStyle[i.row[t.editField]]},[e._v(e._s(e.fieldValueByRowRenderer(i.row,t)))]):n("span",[e._v(e._s(e.fieldValueByRowRenderer(i.row,t)))]):n("span",[n("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":"#5887fb","inactive-color":"#ccc"},on:{change:function(n){return e.switchChange(i.row,t.switchOption)}},model:{value:i.row[t.field],callback:function(n){e.$set(i.row,t.field,"string"==typeof n?n.trim():n)},expression:"scope.row[item.field]"}})],1)])]}}],null,!0)}):e._e()]}),e._v(" "),n("el-table-column",{attrs:{align:"center",fixed:"right",label:"操作",width:e.option.buttons.rowButtonsWidth||100},scopedSlots:e._u([{key:"default",fn:function(t){return[e.option.rowButtons.length<=2?n("div",[e._l(e.option.rowButtons,function(i,r){return[e.isHide(i,t.row)?n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:i.permission,expression:"item.permission"}],key:r,attrs:{disabled:e.isDisabledButton(i,t.row),type:i.type||"text",size:"small"},on:{click:function(e){return i.click(t.row)}}},[e._v(e._s(e.handlegetLable(t.row,i.label)))]):e._e()]})],2):n("div",[n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:e.option.rowButtons[0].permission,expression:"option.rowButtons[0].permission"}],attrs:{type:e.option.rowButtons[0].type||"text",disabled:e.isDisabledButton(e.option.rowButtons[0],t.row)},on:{click:function(n){return e.option.rowButtons[0].click(t.row)}}},[e._v(e._s(e.handlegetLable(t.row,e.option.rowButtons[0].label)))]),e._v(" "),n("el-dropdown",{attrs:{trigger:"click"}},[n("span",{staticClass:"el-dropdown-link"},[e._v("\n 更多\n "),n("i",{staticClass:"el-icon-caret-bottom el-icon--right"})]),e._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{staticClass:"clearfix"},[e._l(e.option.rowButtons.filter(function(e,t){return t>0}),function(i,r){return[e.isHide(i,t.row)?n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:i.permission,expression:"item.permission"}],key:r,attrs:{type:i.type||"text",disabled:e.isDisabledButton(i,t.row),size:"small"},on:{click:function(e){return i.click(t.row)}}},[e._v(e._s(e.handlegetLable(t.row,i.label)))]):e._e()]})],2)],1)],1)],1)]}}])})],2),e._v(" "),n("div",{staticClass:"page_bottom"},[n("div",{staticClass:"pagination"},[n("div",[e._t("tableSelectionBtn",null,{selection:e.checkRecords})],2),e._v(" "),n("el-pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{background:"","current-page":e.queryParams.pageNumber,"page-sizes":e.$pageSizeAll,"page-size":e.queryParams.pageSize,layout:"total, prev, pager, next, jumper, sizes",total:e.total},on:{"update:currentPage":function(t){return e.$set(e.queryParams,"pageNumber",t)},"update:current-page":function(t){return e.$set(e.queryParams,"pageNumber",t)},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)])],1)]),e._v(" "),n("EditDialog",{ref:"edit",attrs:{"submit-detail-data":e.option.submitDetailData,"handle-detail-data":e.option.handleDetailData,option:e.option,"model-type":e.editDialogModelType,visible:e.editDialogOpen,"row-data":e.editDialogRowData},on:{closeEvent:e.editDialogClosedEvent},scopedSlots:e._u([{key:"customCard",fn:function(){return[e._t("cardInEditPage")]},proxy:!0},{key:"editBtn",fn:function(t){return[e._t("editBtnPage",null,{rowData:t})]}}],null,!0)})],1),e._v(" "),e._t("pageSection"),e._v(" "),n("anji-contextMenu",{attrs:{visible:e.isShowRowContextMenu,"style-obj":e.contextMenuConfigStyle},on:{"update:visible":function(t){e.isShowRowContextMenu=t}}},e._l(e.option.contextMenu,function(t,i){return n("div",{key:i,staticClass:"contextMenu"},[n("el-button",{staticClass:"contextMenuItem",attrs:{type:"text",disabled:t.disabled},on:{click:function(n){return e.handleContextMenuItem(t)}}},[e._v(e._s(t.label))])],1)}),0)],2)},[],!1,null,"73efe6df",null));j.options.__file="anji-crud.vue";t.default=j.exports},sm2R:function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a});var i=n("t3Un"),r=n("XS0u");function o(e){return Object(i.a)({url:"/gaeaDict/select/"+e,method:"get"})}function a(e){Object(i.a)({url:"/gaeaDict/all",method:"GET"}).then(function(t){200==t.code?(Object(r.c)("AJReportDict",t.data),null!=e&&e()):console.error("初始化数据字典到local storage失败: "+t.message)})}},sxct:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("gjeX");function r(e){return i(e+"gaea")}},t3Un:function(e,t,n){"use strict";var i=n("4d7F"),r=n.n(i),o=n("vDqi"),a=n.n(o),l=n("XJYT"),s=(n("Q2AE"),n("X4fA")),u=a.a.create({baseURL:"http://report.picaiba.com/api/",timeout:2e4});u.interceptors.request.use(function(e){return e.headers.Authorization=null==Object(s.f)()||void 0==Object(s.f)()?"":Object(s.f)(),e},function(e){r.a.reject(e)}),u.interceptors.response.use(function(e){var t=e.data;if("User.credentials.expired"!=t.code&&"50012"!=t.code&&"50014"!=t.code)return"200"!==t.code?(Object(l.Message)({message:t.message,type:"error",duration:5e3}),e.data):e.data;l.MessageBox.confirm("你已被登出,可以取消继续留在该页面,或者重新登录","重新登录",{confirmButtonText:"重新登录",cancelButtonText:"取消",type:"warning"}).then(function(){sessionStorage.clear(),localStorage.clear(),window.location.href="/"})},function(e){return Object(l.Message)({message:e.message,type:"error",duration:5e3}),r.a.reject(e)}),t.a=u},vjVy:function(e,t,n){},y4jC:function(e,t,n){"use strict";var i=n("Ui9L");n.n(i).a},z69j:function(e,t,n){}},[["Vtdi","runtime","chunk-elementUI","chunk-libs"]]]); \ No newline at end of file diff --git a/dist/static/js/app.dcda1c56.js b/dist/static/js/app.dcda1c56.js deleted file mode 100644 index 95ea521..0000000 --- a/dist/static/js/app.dcda1c56.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([["app"],{"0hX1":function(e,t,n){},"1WHY":function(e,t,n){"use strict";var i=n("0hX1");n.n(i).a},"3BMw":function(e,t,n){},"3ugU":function(e,t,n){"use strict";var i=n("FzRX");n.n(i).a},"7Qib":function(e,t,n){"use strict";n.d(t,"c",function(){return i}),n.d(t,"a",function(){return l}),n.d(t,"b",function(){return s});n("GQeE"),n("EJiy");function i(e){return/^(https?:|mailto:|tel:)/.test(e)}var r=n("NFKh"),o=r.enc.Utf8.parse("1234123412ABCDEF"),a=r.enc.Utf8.parse("ABCDEF1234123412");function l(e){var t=r.enc.Hex.parse(e),n=r.enc.Base64.stringify(t),i=r.AES.decrypt(n,o,{iv:a,mode:r.mode.CBC,padding:r.pad.Pkcs7}).toString(r.enc.Utf8).toString(),l=i.substr(-32);return i.split(l)[0]}function s(e){var t=r.enc.Utf8.parse(e+function(){var e=(new Date).getTime();return window.performance&&"function"==typeof window.performance.now&&(e+=performance.now()),"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?n:3&n|8).toString(16)})}());return r.AES.encrypt(t,o,{iv:a,mode:r.mode.CBC,padding:r.pad.Pkcs7}).ciphertext.toString().toUpperCase()}},"9wyP":function(e,t,n){"use strict";var i=n("GU1y");n.n(i).a},ABBr:function(e,t,n){"use strict";var i=n("Z6JC");n.n(i).a},C22y:function(e,t,n){"use strict";var i=n("DCHF");n.n(i).a},DCHF:function(e,t,n){},FzRX:function(e,t,n){},GU1y:function(e,t,n){},HiAn:function(e,t,n){},IMOA:function(e,t,n){"use strict";var i=n("hJ/h");n.n(i).a},IdPg:function(e,t,n){},K7LW:function(e,t,n){},P207:function(e,t,n){"use strict";var i=n("dbjk");n.n(i).a},Q2AE:function(e,t,n){"use strict";var i=n("Kw5r"),r=n("L2JU"),o={},a={state:{cacheViews:[]},mutations:{ADD_CACHEVIEW:function(e,t){e.cacheViews.includes(t.name)||t.meta&&t.meta.keepAlive&&e.cacheViews.push(t.name)}},actions:{addCachedView:function(e,t){(0,e.commit)("ADD_CACHEVIEW",t)}}},l={sidebar:function(e){return e.app.sidebar},device:function(e){return e.app.device},token:function(e){return e.user.token},accessUser:function(e){return e.user.accessUser},cacheViews:function(e){return e.cacheView.cacheViews}},s={},u=n("p46w"),c=n.n(u),d={state:{sidebar:{opened:!+c.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop"},mutations:{TOGGLE_SIDEBAR:function(e){e.sidebar.opened?c.a.set("sidebarStatus",1):c.a.set("sidebarStatus",0),e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1},CLOSE_SIDEBAR:function(e,t){c.a.set("sidebarStatus",1),e.sidebar.opened=!1,e.sidebar.withoutAnimation=t},TOGGLE_DEVICE:function(e,t){e.device=t}},actions:{ToggleSideBar:function(e){(0,e.commit)("TOGGLE_SIDEBAR")},CloseSideBar:function(e,t){(0,e.commit)("CLOSE_SIDEBAR",t.withoutAnimation)},ToggleDevice:function(e,t){(0,e.commit)("TOGGLE_DEVICE",t)}}},p=n("4d7F"),f=n.n(p),h=n("dVUk"),m=n("X4fA"),b={state:{token:"",accessUser:{}},mutations:{SET_TOKEN:function(e,t){e.token=t,Object(m.j)(t)},SET_ACCESSUSER:function(e,t){e.accessUser=t,Object(m.h)(t)}},actions:{Login:function(e,t){var n=e.commit,i={userName:t.userName.trim(),password:t.password.trim(),captchaVerification:t.captchaVerification.trim()};return new f.a(function(e,t){Object(h.a)(i).then(function(i){var r=i.repCode,o=i.repData;"0000"===r?(n("SET_TOKEN",o.token),n("SET_ACCESSUSER",o.accessUser),e(i)):t(i.repMsg)}).catch(function(e){t(e)})})},LogOut:function(e){var t=e.commit,n=e.state;return new f.a(function(e,i){Object(h.b)(n.token).then(function(){t("SET_TOKEN",""),t("SET_ACCESSUSER",{}),Object(m.c)(),Object(m.b)(),Object(m.a)(),e()}).catch(function(e){i(e)})})},FedLogOut:function(e){var t=e.commit;return new f.a(function(e){t("SET_TOKEN",""),t("SET_ACCESSUSER",{}),Object(m.c)(),Object(m.b)(),Object(m.a)(),e()})}}},v={state:{id:0,val:"",title:""},mutations:{setCategory:function(e,t){e.id=0,e.val=t.value,e.title=t.label}}};i.default.use(r.a);var g=new r.a.Store({modules:{app:d,user:b,cacheView:a,help:v},state:{},plugins:[function(e){}],actions:o,mutations:s,getters:l});t.a=g},SrQ6:function(e,t,n){"use strict";var i=n("IdPg");n.n(i).a},TrN3:function(e,t,n){"use strict";var i=n("YVn6");n.n(i).a},UIBd:function(e,t,n){},Ui9L:function(e,t,n){},"Va/y":function(e,t,n){"use strict";var i=n("Xo+u");n.n(i).a},Vtdi:function(e,t,n){"use strict";n.r(t);var i={};n.r(i),n.d(i,"basecode",function(){return le}),n.d(i,"getDataByCode",function(){return se}),n.d(i,"fixed",function(){return ue}),n.d(i,"formatTimestamp",function(){return ce}),n.d(i,"formatDate",function(){return de});var r=n("GQeE"),o=n.n(r),a=n("Kw5r"),l=n("XJYT"),s=n.n(l),u=(n("D66Q"),n("8NkQ")),c=n.n(u),d=(n("9d8Q"),n("HiAn"),n("aGE4"),n("vjVy"),n("sm2R")),p={name:"App",provide:function(){return{reload:this.reload}},data:function(){return{isRouterAlive:!1}},watch:{$route:function(e,t){"/login"==e.path&&this.queryDictName()}},computed:{},created:function(){this.queryDictName()},methods:{queryDictName:function(){var e=this;Object(d.b)(function(){e.isRouterAlive=!0})},reload:function(){this.isRouterAlive=!1,this.$nextTick(function(){this.isRouterAlive=!0})}}},f=n("KHd+"),h=Object(f.a)(p,function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[this.isRouterAlive?t("router-view"):this._e()],1)},[],!1,null,null,null);h.options.__file="App.vue";var m=h.exports,b=n("jE9Z"),v=n("QbLZ"),g=n.n(v),y=n("14Xm"),w=n.n(y),x=n("D3Ub"),C=n.n(x),F=n("L2JU"),k=n("vRGJ"),S=n.n(k),_={data:function(){return{levelList:null}},watch:{$route:function(){this.getBreadcrumb()}},computed:{levelListArr:function(){return this.levelList.filter(function(e){return e.meta&&e.meta.title})}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var e=this.$route.params,t=this.$route.matched.filter(function(t){if(t.name){var n=S.a.compile(t.path);return t.path=n(e),!0}});this.levelList=t}}},j=(n("P207"),Object(f.a)(_,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{separator:"/"}},[n("transition-group",{attrs:{name:"breadcrumb"}},e._l(e.levelListArr,function(t,i){return n("el-breadcrumb-item",{key:t.path},["noredirect"===t.redirect||i==e.levelListArr.length-1?n("span",{staticClass:"no-redirect"},[e._v(e._s(t.meta.title))]):n("router-link",{staticClass:"no-redirect",attrs:{to:t.redirect||t.path}},[e._v(e._s(t.meta.title))])],1)}),1)],1)},[],!1,null,"057878a4",null));j.options.__file="index.vue";var O=j.exports,D={name:"Hamburger",props:{isActive:{type:Boolean,default:!1},toggleClick:{type:Function,default:null}}},q=(n("1WHY"),Object(f.a)(D,function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("svg",{staticClass:"hamburger",class:{"is-active":this.isActive},attrs:{t:"1492500959545",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1691","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"64",height:"64"},on:{click:this.toggleClick}},[t("path",{attrs:{d:"M966.8023 568.849776 57.196677 568.849776c-31.397081 0-56.850799-25.452695-56.850799-56.850799l0 0c0-31.397081 25.452695-56.849776 56.850799-56.849776l909.605623 0c31.397081 0 56.849776 25.452695 56.849776 56.849776l0 0C1023.653099 543.397081 998.200404 568.849776 966.8023 568.849776z","p-id":"1692",fill:"#333"}}),this._v(" "),t("path",{attrs:{d:"M966.8023 881.527125 57.196677 881.527125c-31.397081 0-56.850799-25.452695-56.850799-56.849776l0 0c0-31.397081 25.452695-56.849776 56.850799-56.849776l909.605623 0c31.397081 0 56.849776 25.452695 56.849776 56.849776l0 0C1023.653099 856.07443 998.200404 881.527125 966.8023 881.527125z","p-id":"1693",fill:"#333"}}),this._v(" "),t("path",{attrs:{d:"M966.8023 256.17345 57.196677 256.17345c-31.397081 0-56.850799-25.452695-56.850799-56.849776l0 0c0-31.397081 25.452695-56.850799 56.850799-56.850799l909.605623 0c31.397081 0 56.849776 25.452695 56.849776 56.850799l0 0C1023.653099 230.720755 998.200404 256.17345 966.8023 256.17345z","p-id":"1694",fill:"#333"}})])])},[],!1,null,"438874a2",null));q.options.__file="index.vue";var T=q.exports,B=n("XS0u"),E=n("dVUk"),A=n("sxct"),$={data:function(){var e=this;return{wordVisible:!1,form:{oldPassword:"",password:"",confirmPassword:""},rules:{oldPassword:[{required:!0,validator:function(e,t,n){t.length<6||t.length>30?n(new Error("请输入原密码")):n()},trigger:"blur"}],password:[{required:!0,message:"请选择新密码",trigger:"blur"}],confirmPassword:[{required:!0,validator:function(t,n,i){""===n?i(new Error("请再次输入密码")):n!==e.form.password?i(new Error("两次输入密码不一致!")):n.length<6||n.length>20?i(new Error("密码长度需要再6-20之间!")):i()},trigger:"blur"}]},centerDialogVisible:!1}},components:{Breadcrumb:O,Hamburger:T},computed:g()({},Object(F.c)(["sidebar"])),created:function(){},methods:{toggleSideBar:function(){this.$store.dispatch("ToggleSideBar")},logout:function(){var e=this;this.$confirm("确定要退出吗","温馨提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){sessionStorage.clear(),localStorage.clear(),e.$router.push("/login")})},updatePassword:function(){var e=this;this.wordVisible=!0,this.$nextTick(function(){e.$refs.form&&e.$refs.form.resetFields()})},confrimUpdate:function(){var e=this;this.$refs.form.validate(function(){var t=C()(w.a.mark(function t(n){var i,r,o,a,l,s;return w.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=16;break}return i=e.form,r=i.oldPassword,o=i.password,a=i.confirmPassword,l={oldPassword:Object(A.a)(r),password:Object(A.a)(o),confirmPassword:Object(A.a)(a)},t.next=5,Object(E.c)(l);case 5:if(s=t.sent,"200"==s.code){t.next=9;break}return t.abrupt("return");case 9:e.wordVisible=!1,e.$message.success("修改密码成功,请重新登录"),sessionStorage.clear(),localStorage.clear(),e.$router.push("/login"),t.next=17;break;case 16:return t.abrupt("return",!1);case 17:case"end":return t.stop()}},t,e)}));return function(e){return t.apply(this,arguments)}}())},helpCenter:function(){var e=Object(B.b)("helpCategory");this.$router.push({path:"/helpCenList/list",query:{id:0,val:e[0].value,title:e[0].label}})}}},P=(n("Va/y"),Object(f.a)($,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-menu",{staticClass:"navbar",attrs:{mode:"horizontal"}},[n("hamburger",{staticClass:"hamburger-container",attrs:{"toggle-click":e.toggleSideBar,"is-active":e.sidebar.opened}}),e._v(" "),n("breadcrumb"),e._v(" "),e._e()],1),e._v(" "),n("el-dialog",{staticClass:"password-box",attrs:{title:"修改密码",visible:e.wordVisible,width:"40%","close-on-click-modal":!1,top:"20vh"},on:{"update:visible":function(t){e.wordVisible=t}}},[n("el-form",{ref:"form",attrs:{model:e.form,"label-width":"100px",rules:e.rules,"close-on-click-modal":!1}},[n("el-form-item",{attrs:{label:"原密码",prop:"oldPassword"}},[n("el-input",{attrs:{type:"password",autocomplete:"off"},model:{value:e.form.oldPassword,callback:function(t){e.$set(e.form,"oldPassword","string"==typeof t?t.trim():t)},expression:"form.oldPassword"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"新密码",prop:"password"}},[n("el-input",{attrs:{type:"password",autocomplete:"off"},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password","string"==typeof t?t.trim():t)},expression:"form.password"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"确认新密码",prop:"confirmPassword"}},[n("el-input",{attrs:{type:"password",autocomplete:"off"},model:{value:e.form.confirmPassword,callback:function(t){e.$set(e.form,"confirmPassword","string"==typeof t?t.trim():t)},expression:"form.confirmPassword"}})],1)],1),e._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.wordVisible=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.confrimUpdate}},[e._v("确 定")])],1)],1),e._v(" "),n("el-dialog",{attrs:{title:"说明",visible:e.centerDialogVisible,width:"34%",center:""},on:{"update:visible":function(t){e.centerDialogVisible=t}}},[n("div",{staticStyle:{"font-size":"20px","line-height":"50px","margin-bottom":"50px"}},[e._v("\n AJ-Report由"),n("a",{staticStyle:{"text-decoration":"underline"},attrs:{href:"http://www.anji-plus.com/",target:"_blank"}},[n("b",[e._v("安吉加加信息技术有限公司")])]),e._v("遵循\n "),n("a",{staticStyle:{"text-decoration":"underline","word-wrap":"break-word"},attrs:{href:"http://www.apache.org/licenses/LICENSE-2.0.html",target:"_blank"}},[n("strong",{staticStyle:{color:"orangered"}},[e._v("Apache2.0开源协议")])]),e._v("在"),n("a",{staticStyle:{"text-decoration":"underline","word-wrap":"break-word"},attrs:{href:"https://gitee.com/explore",target:"_blank"}},[n("b",[e._v("Gitee平台")])]),e._v("进行开源。\n ")]),e._v(" "),n("div",{staticStyle:{"font-size":"20px","line-height":"50px"}},[n("strong",[e._v(" 个人/商业使用须遵循Apache2.0开源协议。")]),e._v(" "),n("strong",{staticStyle:{color:"orangered"}},[e._v("禁止将AJ-Report产品用于违法违规业务。")])]),e._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary"},on:{click:function(t){e.centerDialogVisible=!1}}},[e._v("确 定")])],1)])],1)},[],!1,null,"c43cd2ae",null));P.options.__file="Navbar.vue";var I=P.exports,R=n("33yf"),N=n.n(R),M=n("7Qib"),L={name:"MenuItem",functional:!0,props:{icon:{type:String,default:""},title:{type:String,default:""}},render:function(e,t){var n=t.props,i=n.icon,r=n.title,o=[];return i&&o.push(e("i",{class:"iconfont "+i})),r&&o.push(e("span",{slot:"title"},[r])),o}},U=Object(f.a)(L,void 0,void 0,!1,null,null,null);U.options.__file="Item.vue";var V=U.exports,z={props:{to:{type:String,required:!0}},methods:{isExternalLink:function(e){return Object(M.c)(e)},linkProps:function(e){return this.isExternalLink(e)?{is:"a",href:e,target:"_blank",rel:"noopener"}:{is:"router-link",to:e}}}},H=Object(f.a)(z,function(){var e=this.$createElement;return(this._self._c||e)("component",this._b({},"component",this.linkProps(this.to),!1),[this._t("default")],2)},[],!1,null,null,null);H.options.__file="Link.vue";var J={name:"SidebarItem",components:{Item:V,AppLink:H.exports},props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},data:function(){return{onlyOneChild:null}},computed:{},methods:{hasOneShowingChild:function(e,t){var n=this,i=e.filter(function(e){return!e.hidden&&(n.onlyOneChild=e,!0)});return 1===i.length||0===i.length&&(this.onlyOneChild=g()({},t,{path:"",noShowingChildren:!0}),!0)},resolvePath:function(e){return this.isExternalLink(e)?e:N.a.resolve(this.basePath,e)},isExternalLink:function(e){return Object(M.c)(e)}}},Q=(n("3ugU"),Object(f.a)(J,function(){var e=this,t=e.$createElement,n=e._self._c||t;return!e.item.hidden&&e.item.children?n("div",{staticClass:"menu-wrapper"},[!e.hasOneShowingChild(e.item.children,e.item)||e.onlyOneChild.children&&!e.onlyOneChild.noShowingChildren||e.item.alwaysShow?[n("el-submenu",{attrs:{index:e.resolvePath(e.item.path)}},[n("template",{slot:"title"},[n("item",{attrs:{icon:e.item.meta.icon,title:e.item.meta.title}})],1),e._v(" "),e._l(e.item.children,function(t){return[[t.children&&t.children.length>0?n("sidebar-item",{key:t.path,staticClass:"nest-menu",attrs:{"is-nest":!0,item:t,"base-path":e.resolvePath(t.path)}}):e._e(),e._v(" "),n("app-link",{key:t.name,attrs:{to:e.resolvePath(t.path)}},[n("el-menu-item",{attrs:{index:e.resolvePath(t.path)}},[t.meta?n("item",{attrs:{icon:t.meta.icon,title:t.meta.title}}):e._e()],1)],1)]]})],2)]:[n("app-link",{attrs:{to:e.resolvePath(e.onlyOneChild.path)}},[n("el-menu-item",{class:{"submenu-title-noDropdown":!e.isNest},attrs:{index:e.resolvePath(e.onlyOneChild.path)}},[e.onlyOneChild.meta?n("item",{attrs:{icon:e.onlyOneChild.meta.icon||e.item.meta.icon,title:e.onlyOneChild.meta.title}}):e._e()],1)],1)]],2):e._e()},[],!1,null,"042d063a",null));Q.options.__file="SidebarItem.vue";var G={components:{SidebarItem:Q.exports},computed:g()({},Object(F.c)(["sidebar"]),{routes:function(){return this.$router.options.routes},isCollapse:function(){return!this.sidebar.opened}}),methods:{goBigScreen:function(){var e=this.$router.resolve({path:"/report/bigScreen"});window.open(e.href,"_blank")}}},K=(n("b004"),Object(f.a)(G,function(){var e=this.$createElement,t=this._self._c||e;return t("el-scrollbar",{attrs:{"wrap-class":"scrollbar-wrapper"}},[this._e(),this._v(" "),t("el-menu",{attrs:{"show-timeout":200,"default-active":this.$route.path,collapse:this.isCollapse,mode:"vertical"}},this._l(this.routes,function(e){return t("sidebar-item",{key:e.path,attrs:{item:e,"base-path":e.path}})}),1)],1)},[],!1,null,"2983cab3",null));K.options.__file="index.vue";var X=K.exports,W={name:"AppMain",computed:g()({},Object(F.c)(["cacheViews"]),{key:function(){return void 0!==this.$route.name?this.$route.name+ +new Date:this.$route+ +new Date}})},Y=(n("IMOA"),Object(f.a)(W,function(){var e=this.$createElement,t=this._self._c||e;return t("section",{staticClass:"app-main"},[t("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[t("keep-alive",{attrs:{include:this.cacheViews}},[t("router-view")],1)],1)],1)},[],!1,null,"47fee25c",null));Y.options.__file="AppMain.vue";var Z=Y.exports,ee=n("Q2AE"),te=document.body,ne={name:"Layout",components:{Navbar:I,Sidebar:X,AppMain:Z},watch:{$route:{handler:function(e,t){"realTimeLog"!=e.name&&"deviceInfo"!=e.name&&Object(B.a)("deviceInfo"),"helpCenter"!=e.name&&"helpCenterEdit"!=e.name&&Object(B.a)("helpCenterDetail"),this.addCachedView(e)},immediate:!0}},mixins:[{watch:{$route:function(e){"mobile"===this.device&&this.sidebar.opened&&ee.a.dispatch("CloseSideBar",{withoutAnimation:!1})}},beforeMount:function(){window.addEventListener("resize",this.resizeHandler)},mounted:function(){this.isMobile()&&(ee.a.dispatch("ToggleDevice","mobile"),ee.a.dispatch("CloseSideBar",{withoutAnimation:!0}))},methods:{isMobile:function(){return te.getBoundingClientRect().width-3<1024},resizeHandler:function(){if(!document.hidden){var e=this.isMobile();ee.a.dispatch("ToggleDevice",e?"mobile":"desktop"),e&&ee.a.dispatch("CloseSideBar",{withoutAnimation:!0})}}}}],computed:{sidebar:function(){return this.$store.state.app.sidebar},device:function(){return this.$store.state.app.device},classObj:function(){return{hideSidebar:!this.sidebar.opened,openSidebar:this.sidebar.opened,withoutAnimation:this.sidebar.withoutAnimation,mobile:"mobile"===this.device}}},methods:g()({},Object(F.b)(["addCachedView"]),{handleClickOutside:function(){this.$store.dispatch("CloseSideBar",{withoutAnimation:!1})}})},ie=(n("ABBr"),Object(f.a)(ne,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-wrapper",class:e.classObj},["mobile"===e.device&&e.sidebar.opened?n("div",{staticClass:"drawer-bg",on:{click:e.handleClickOutside}}):e._e(),e._v(" "),n("sidebar",{staticClass:"sidebar-container"}),e._v(" "),n("div",{staticClass:"main-container"},[n("navbar"),e._v(" "),n("app-main")],1)],1)},[],!1,null,"1a5b441d",null));ie.options.__file="Layout.vue";var re=ie.exports;a.default.use(b.a);var oe=[{path:"/login",component:function(){return n.e("chunk-12f3").then(n.bind(null,"3Xui"))},hidden:!0},{path:"/aj/**",component:function(){return n.e("chunk-2592").then(n.bind(null,"TiKq"))},hidden:!0},{path:"/el/**",component:function(){return n.e("chunk-be14").then(n.bind(null,"iRo7"))},hidden:!0},{path:"/report",name:"report",component:re,meta:{title:"报表设计",icon:"iconnavicon-ywcs",requireAuth:!0,permission:"datasourceManage|resultsetManage|reportManage|bigScreenManage"},children:[{path:"report",name:"reportIndex",component:function(){return n.e("chunk-e4f4").then(n.bind(null,"0MlO"))},meta:{title:"报表管理",icon:"iconnavicon-ywcs",keepAlive:!0,requireAuth:!0,permission:"reportManage"}},{path:"datasource",name:"datasource",component:function(){return n.e("chunk-00f4").then(n.bind(null,"ZjmF"))},meta:{title:"数据源",icon:"icondatabase",keepAlive:!0,requireAuth:!0,permission:"datasourceManage"}},{path:"resultset",name:"resultset",component:function(){return Promise.all([n.e("chunk-e411"),n.e("chunk-25a2"),n.e("chunk-d020")]).then(n.bind(null,"Zzv2"))},meta:{title:"数据集",icon:"iconAPIwangguan",keepAlive:!0,requireAuth:!0,permission:"resultsetManage"}},{path:"bigscreen",name:"bigscreen",component:function(){return n.e("chunk-3f20").then(n.bind(null,"b//P"))},meta:{title:"大屏报表",icon:"iconchufaqipeizhi-hui",keepAlive:!0,requireAuth:!0,permission:"bigScreenManage"}},{path:"excelreport",name:"excelreport",component:function(){return n.e("chunk-f515").then(n.bind(null,"0t1K"))},meta:{title:"表格报表",icon:"iconliebiao",keepAlive:!0,requireAuth:!0,permission:"excelManage"}},{path:"reportshare",name:"reportshare",component:function(){return n.e("chunk-e5bc").then(n.bind(null,"RteH"))},meta:{title:"报表分享",icon:"iconfenxiang1",keepAlive:!0,requireAuth:!0,permission:"reportShareManage"}}]},{path:"/system",name:"system",component:re,meta:{title:"系统设置",icon:"iconshezhi",requireAuth:!0,permission:"fileManage|dictManage|dictItemManage"},children:[{path:"file",name:"file",component:function(){return n.e("chunk-2194").then(n.bind(null,"lAHl"))},meta:{title:"文件管理",icon:"iconfill_folder",keepAlive:!0,requireAuth:!0,permission:"fileManage"}},{path:"dict",name:"dict",component:function(){return n.e("MiWS").then(n.bind(null,"MiWS"))},meta:{title:"数据字典",icon:"iconzidian",keepAlive:!0,requireAuth:!0,permission:"dictManage"}},{path:"dictItem",name:"dictItem",component:function(){return n.e("gJ75").then(n.bind(null,"gJ75"))},hidden:!0,meta:{title:"字典项",icon:"iconzidianxiang",keepAlive:!0,requireAuth:!0,permission:"dictItemManage"}}]},{path:"/bigscreen/viewer",component:function(){return Promise.all([n.e("chunk-2f12"),n.e("chunk-e4a7"),n.e("chunk-31ad")]).then(n.bind(null,"OnRN"))},hidden:!0,meta:{requireAuth:!0}},{path:"/bigscreen/designer",component:function(){return Promise.all([n.e("chunk-2f12"),n.e("chunk-e411"),n.e("chunk-722e"),n.e("chunk-0730"),n.e("chunk-4e41")]).then(n.bind(null,"VZcz"))},hidden:!0,meta:{requireAuth:!0}},{path:"/excelreport/viewer",component:function(){return n.e("chunk-4dd8").then(n.bind(null,"+N4U"))},hidden:!0,meta:{requireAuth:!0}},{path:"/excelreport/designer",component:function(){return Promise.all([n.e("chunk-722e"),n.e("chunk-b7af")]).then(n.bind(null,"Xvat"))},hidden:!0,meta:{requireAuth:!0}},{path:"/screenDesigner",component:function(){return Promise.all([n.e("chunk-2f12"),n.e("chunk-e411"),n.e("chunk-722e"),n.e("chunk-0730"),n.e("chunk-4a3f")]).then(n.bind(null,"rAJX"))},name:"screenDesigner"},{path:"/screen/preview",component:function(){return Promise.all([n.e("chunk-2f12"),n.e("chunk-e4a7"),n.e("chunk-1146")]).then(n.bind(null,"3sGO"))},hidden:!0,meta:{requireAuth:!0}},{path:"/404",component:function(){return n.e("chunk-539e").then(n.bind(null,"jNvO"))},hidden:!0},{path:"*",redirect:"/login",hidden:!0}],ae=new b.a({scrollBehavior:function(){return{y:0}},routes:oe});function le(e,t){if(void 0===e||null===e)return"";if(void 0===t||null===t)return e;for(var n=Object(B.b)("queryForCodeSelect")[t],i=e,r=0;rr?1:0}},getObjectType:function(e){var t=Object.prototype.toString;return e instanceof Element?"element":{"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"}[t.call(e)]},isNumber:function(e){return"number"==this.getObjectType(e)},isString:function(e){return"string"==this.getObjectType(e)},isArray:function(e){return"array"==this.getObjectType(e)},hasOwn:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},isNotBlank:function(e){return!this.isBlank(e)}},be()(pe,"isBlank",function(e){if(this.isNull(e))return!0;if("string"==typeof e)return""==e.trim();if("object"===(void 0===e?"undefined":ke()(e))){for(var t in e)return!1;return!0}return!1}),be()(pe,"isNotNull",function(e){return!this.isNull(e)}),be()(pe,"isNull",function(e){if(e&&0===parseInt(e))return!1;if(e instanceof Date||"boolean"==typeof e||"number"==typeof e)return!1;if(!(e instanceof Array)){if(e instanceof Object){for(var t in e=this.deepClone(e),["$parent"].forEach(function(t){delete e[t]}),e)return!1;return!0}return"null"===e||null==e||"undefined"===e||void 0===e||""===e}return 0===e.length}),be()(pe,"deepClone",function(e){var t=this,n=this.getObjectType(e),i=void 0;if("array"===n)i=[];else{if("object"!==n)return e;i={}}if("array"===n)for(var r=function(n,r){e[n]=(e[n],e[n]),e[n]&&delete e[n].$parent,i.push(t.deepClone(e[n]))},o=0,a=e.length;o=0?n[i]=e[i]:n[i]=this.urlEncode(e[i]));return n}),be()(pe,"getDictItemByCode",function(e,t){var n=Object(B.b)("AJReportDict");if(!n.hasOwnProperty(e))return null;for(var i=n[e],r=0;r0&&(this.option,this.label),this.url):null!=this.dictCode&&""!=this.dictCode.trim()?"/meta/gaeaDict/select/"+this.dictCode:null}},watch:{dictCode:function(e){e&&this.queryData()},localOptions:function(e){this.options=e},value:{handler:function(e){"string"==typeof e&&null!=this.url&&""!=this.url.trim()&&this.remoteQuery(e),null!=this.multiple?this.value?this.selectValue=this.value:this.selectValue=[]:null!=this.value&&void 0!=this.value?this.selectValue=this.value+"":this.selectValue=""},immediate:!0},url:function(){var e=this;setTimeout(function(){e.queryData()},500)}},created:function(){null!=this.multiple?this.selectValue=this.value:null!=this.value&&(this.selectValue=this.value+"")},mounted:function(){null!=this.requestUrl?this.queryData():this.options=this.localOptions},methods:{isDisabledOption:function(e){if(null==e||null==this.disabledOptions||0==this.disabledOptions.length)return!1;var t=e[this.option];return this.disabledOptions.indexOf(t)>=0},change:function(e){var t=this;""===e&&(e=""),this.$emit("input",e);var n=this.options.find(function(n){return n[t.option]==e});this.$emit("change",e,n)},getItemLabel:function(e,t){if(t.indexOf("${")<0&&t.indexOf(!1))return e[t];for(var n=t.match(/\$\{[a-zA-Z0-9]*\}/g),i=t,r=0;r=1?n("el-option",{attrs:{value:"",disabled:""}},[e._v("输入关键词搜索更多")]):e._e()],2)],1)},[],!1,null,"98912a54",null));Me.options.__file="anji-select.vue";var Le=Me.exports,Ue={props:{upLoadUrl:{type:String,default:function(){return""}},viewUrl:{type:String,default:function(){return""}},limit:{type:Number,default:function(){return 3}},value:{type:Array|String}},data:function(){return{imageUploadUrl:"",fileList:[],modeString:""}},computed:{requestUrl:function(){return null!=this.upLoadUrl&&""!=this.upLoadUrl.trim()?"http://wms.picaiba.com/report-ui"+this.upLoadUrl:"http://wms.picaiba.com/report-ui/file/upload"},headers:function(){return{Authorization:Object(fe.f)()}}},watch:{value:function(e){this.echoUpload(e)}},mounted:function(){this.echoUpload(this.value)},methods:{handleRemove:function(e){this.fileList=[],console.log(this.fileList),console.log(this.limit),this.change()},handleExceed:function(){this.$message.warning("只能上传"+this.limit+"个文件")},handleDownload:function(e){window.open(e.url)},handleSuccess:function(e,t,n){200==e.code?(this.fileList.push({url:t.response.data.urlPath,fileId:t.response.data.fileId,fileType:t.response.data.fileType}),console.log(this.fileList),this.change()):this.$message.error("上传失败")},change:function(){var e=this.fileList;console.log(e),this.$emit("input",e),this.$emit("change",e)},handleBeforeUpload:function(e){var t=e.name.split(".")[e.name.split(".").length-1].toLowerCase();return!(["png","jpg","gif","icon","pdf","xlsx","xls","csv","mp4","avi"].indexOf(t)<0)||(this.$message.warning("请上传正确的格式文件"),!1)},echoUpload:function(e){console.log(e),e&&e.length>0?this.fileList=[{url:e}]:this.fileList=[]}}},Ve=(n("y4jC"),Object(f.a)(Ue,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"uploadImage"},[n("el-upload",{attrs:{headers:e.headers,limit:e.limit,action:e.requestUrl,"list-type":"picture-card","file-list":e.fileList,"on-remove":e.handleRemove,"on-exceed":e.handleExceed,"on-success":e.handleSuccess,"show-file-list":!0,"before-upload":e.handleBeforeUpload},scopedSlots:e._u([{key:"file",fn:function(t){var i=t.file;return n("div",{staticClass:"imgBox"},[n("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:i.url,alt:""}}),e._v(" "),n("span",{staticClass:"el-upload-list__item-actions"},[n("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return e.handleDownload(i)}}},[n("i",{staticClass:"el-icon-download"})]),e._v(" "),n("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return e.handleRemove(i)}}},[n("i",{staticClass:"el-icon-delete"})])])])}}])},[n("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})])],1)},[],!1,null,"1ab626cc",null));Ve.options.__file="anji-upload.vue";var ze=Ve.exports,He=n("Mj6V"),Je=n.n(He),Qe=(n("pdi6"),["/login","/aj/**","/el/**","/bigscreen/viewer","/excelreport/viewer"]);ae.beforeEach(function(e,t,n){Je.a.start();var i=Object(fe.f)(),r=Object(fe.d)();i?"/login"==e.path?(n("/report"),Je.a.done()):n():Qe.includes(e.path)?n():null!=i&&""!=i&&void 0!=i&&r!={}||null==e.meta||1!=e.meta.requireAuth?n():(n("/login?redirect="+e.path),Je.a.done())}),ae.afterEach(function(){Je.a.done()});var Ge={inserted:function(e,t,n){var i=t.value;0==Object(fe.g)(i)&&e.parentNode&&e.parentNode.removeChild(e)}},Ke=function(e){e.directive("permission",Ge)};window.Vue&&(window.permission=Ge,Vue.use(Ke)),Ge.install=Ke;var Xe=Ge,We=n("gNOu"),Ye=n.n(We);n("P1ze");a.default.component("v-chart",Pe.a),a.default.component("anji-upload",ze),a.default.component("anji-crud",Ie.default),a.default.component("anji-select",Le),a.default.use(Xe),a.default.use(Ye.a),a.default.use(s.a,{zhLocale:c.a}),o()(i).forEach(function(e){a.default.filter(e,i[e])}),a.default.mixin($e),a.default.prototype.$pageSizeAll=[10,50,100,200,500],a.default.config.productionTip=!1,new a.default({el:"#app",router:ae,store:ee.a,render:function(e){return e(m)}})},X4fA:function(e,t,n){"use strict";n.d(t,"f",function(){return u}),n.d(t,"e",function(){return c}),n.d(t,"j",function(){return d}),n.d(t,"i",function(){return p}),n.d(t,"c",function(){return f}),n.d(t,"b",function(){return h}),n.d(t,"d",function(){return m}),n.d(t,"h",function(){return b}),n.d(t,"a",function(){return v}),n.d(t,"g",function(){return g});var i=n("gDS+"),r=n.n(i),o=n("XS0u"),a="AJReportToken",l="AJReportShareToken",s="AJReportUser";function u(){return Object(o.b)(a)}function c(){return null==Object(o.b)(l)?"":Object(o.b)(l)}function d(e){return Object(o.c)(a,e)}function p(e){var t=c();return null==t&&""==t||-1!=t.indexOf(e)||(e=t+","+e),Object(o.c)(l,e)}function f(){return Object(o.a)(a)}function h(){return Object(o.a)(l)}function m(){return Object(o.b)(s)}function b(e){return Object(o.c)(s,e)}function v(){return Object(o.a)(s)}function g(e){if(null==e||0==e.length)return!0;var t=m();if(null==t||null==t.authorities)return!1;for(var n=r()(t.authorities),i=e.split("|"),o=0;o=0)return!0}return!1}},XS0u:function(e,t,n){"use strict";n.d(t,"c",function(){return l}),n.d(t,"b",function(){return s}),n.d(t,"a",function(){return u});var i=n("gDS+"),r=n.n(i),o=n("EJiy"),a=n.n(o);n("p46w");function l(e,t){if(void 0!==t&&null!=t){var n=t;"object"==(void 0===t?"undefined":a()(t))&&(n=r()(t)),localStorage.setItem(e,n)}}function s(e){var t=localStorage.getItem(e);try{return JSON.parse(t)}catch(e){return t}}function u(e){localStorage.removeItem(e)}},"Xo+u":function(e,t,n){},YVn6:function(e,t,n){},Z6JC:function(e,t,n){},aGE4:function(e,t,n){},b004:function(e,t,n){"use strict";var i=n("UIBd");n.n(i).a},"ba/L":function(e,t,n){"use strict";n.d(t,"e",function(){return u}),n.d(t,"b",function(){return c}),n.d(t,"f",function(){return d}),n.d(t,"a",function(){return p}),n.d(t,"d",function(){return f}),n.d(t,"c",function(){return h});var i=n("4d7F"),r=n.n(i),o=n("t3Un"),a=n("X4fA"),l=n("vDqi"),s=n.n(l);function u(e){return Object(o.a)({url:"reportDashboard",method:"post",data:e})}function c(e){return Object(o.a)({url:"reportDashboard/"+e,headers:{"Share-Token":Object(a.e)(),Authorization:Object(a.f)()},method:"get"})}function d(e){return Object(o.a)({url:"dataSet/queryAllDataSet",method:"get"})}function p(e){return Object(o.a)({url:"dataSet/detailBysetId/"+e,method:"get"})}function f(e){return Object(o.a)({url:"reportDashboard/getData",method:"post",headers:{"Share-Token":Object(a.e)(),Authorization:Object(a.f)()},data:e})}function h(e){return new r.a(function(t){s()({method:"get",url:"http://wms.picaiba.com/report-ui/reportDashboard/export",headers:{Authorization:Object(a.f)()},params:e,responseType:"blob"}).then(function(e){t(e.data)}).catch(function(e){t("error")})})}},dVUk:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return a});var i=n("t3Un");function r(e){return Object(i.a)({url:"accessUser/login",method:"post",data:e})}function o(){return Object(i.a)({url:"accessUser/logout",method:"post"})}function a(e){return Object(i.a)({url:"/accessUser/updatePassword",method:"post",data:e})}},dbjk:function(e,t,n){},"hJ/h":function(e,t,n){},jz6T:function(e,t,n){"use strict";var i=n("K7LW");n.n(i).a},oSSv:function(e,t,n){"use strict";var i=n("z69j");n.n(i).a},oVsj:function(e,t,n){"use strict";var i=n("3BMw");n.n(i).a},sYqA:function(e,t,n){"use strict";n.r(t);var i=n("14Xm"),r=n.n(i),o=n("D3Ub"),a=n.n(o),l=n("t3Un"),s={components:{},props:{url:{type:[String],default:function(){return""}},id:{type:[String],default:function(){return"id"}},label:{type:[String],default:function(){return""}},value:{type:[String],default:function(){return""}},labelName:String,enableFilter:Boolean,isOpen:Boolean},data:function(){return{filterText:"",treeData:[]}},computed:{},watch:{filterText:function(e){this.$refs.table_tree.filter(e)}},mounted:function(){this.queryData()},methods:{filterNode:function(e,t){return!e||-1!==t.label.indexOf(e)},queryData:function(){var e=this;this.isBlank(this.url)||Object(l.a)({url:this.url,method:"GET"}).then(function(t){"200"==t.code&&(e.treeData="[object Array]"==Object.prototype.toString.call(t.data)?t.data:t.data.tree||t.data.menuTree)})},nodeClick:function(e){this.$emit("input",e.id),this.$emit("node-click",e.id)},checkedEvent:function(e,t){var n=t.checkedKeys.toString();this.$emit("input",n)}}},u=(n("9wyP"),n("KHd+")),c=Object(u.a)(s,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.enableFilter?n("el-input",{staticClass:"filterInput",attrs:{placeholder:"搜索"},model:{value:e.filterText,callback:function(t){e.filterText=t},expression:"filterText"}}):e._e(),e._v(" "),n("div",{staticClass:"title"},[e._v(e._s(e.labelName))]),e._v(" "),n("el-tree",{ref:"table_tree",attrs:{data:e.treeData,"node-key":"id","default-expand-all":e.isOpen,"expand-on-click-node":!1,"filter-node-method":e.filterNode},on:{"node-click":e.nodeClick,check:e.checkedEvent}})],1)},[],!1,null,"086fdb0e",null);c.options.__file="anji-tree.vue";var d=c.exports,p=n("EJiy"),f=n.n(p),h=n("gDS+"),m=n.n(h),b={components:{},props:{modelType:String,showDialog:Boolean,option:{type:[Object],default:function(){return{title:"",labelWidth:"",queryFormFields:[],buttons:{query:{},edit:{},delete:{},add:{}},columns:[],formChange:function(e,t,n,i){}}}},relateData:{type:[Object],default:function(){return{}}},value:{type:[Object],default:function(){return{}}}},data:function(){return{cardRowColNum:this.option.rowColForm||2,editForm:{}}},computed:{primaryKeyFieldName:function(){var e=this.option.columns.find(function(e){return 1==e.primaryKey});return null!=e?e.field:null},joinColumn:function(){var e=this.option.joinColumn;return this.isBlank(e)&&(console.warn("在joinEntity中查找joinColumn属性失败,会导致查询详情和删除失败"),e=""),e},formFields:function(){var e=this;if(null==this.option.columns)return[];var t=this.deepClone(this.option.columns);return t=t.map(function(t){return e.isBlank(t.editField)&&(t.editField=t.field),e.isBlank(t.group)&&(t.group="其它"),t})},cardRowColSpan:function(){return 24/this.cardRowColNum},columnGroups:function(){return this.isBlank(this.formFields)?[]:this.formFields.map(function(e){return e.group}).filter(function(e,t,n){return n.indexOf(e)==t})},groupFormFields:function(){if(this.showDialog){var e={};return this.columnGroups.forEach(function(t,n,i){e[t]=[]}),this.formFields.forEach(function(t,n,i){e[t.group].push(t)}),e}return[]},groupModel:function(){return this.columnGroups.length>1}},created:function(){this.$watch(function(){return this.value},function(e,t){this.editForm=e,this.formChange()}),this.$watch(function(){return this.relateData[this.joinColumn]},function(e,t){if(this.isBlank(this.relateData))return this.cardRowColNum=2,void(this.editForm={});this.isNotBlank(e)&&this.queryDetail()})},mounted:function(){this.isNotBlank(this.value)&&(this.editForm=this.value,this.formChange()),this.isNotBlank(this.relateData)&&this.isNotBlank(this.relateData[this.joinColumn])&&this.queryDetail()},methods:{fieldIsHide:function(e){if("boolean"==typeof e)return e;if("string"==typeof e){if("add"==this.modelType)return e.indexOf("hideOnAdd")>=0;if("view"==this.modelType)return e.indexOf("hideOnView")>=0;if("edit"==this.modelType)return e.indexOf("hideOnEdit")>=0}return!1},fieldIsDisable:function(e){if("boolean"==typeof e)return e;if("string"==typeof e){if("add"==this.modelType)return e.indexOf("disableOnAdd")>=0;if("view"==this.modelType)return e.indexOf("disableOnView")>=0;if("edit"==this.modelType)return e.indexOf("disableOnEdit")>=0}return!1},handleSetRowColNum:function(e){this.cardRowColNum=e,this.$emit("changeRowColNum",e)},queryDetail:function(){var e=this;return a()(r.a.mark(function t(){var n,i,o;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.relateData,t.next=3,e.option.buttons.queryByPrimarykey.api(n);case 3:if(i=t.sent,o=i.data,"200"==i.code){t.next=8;break}return t.abrupt("return");case 8:e.editForm=o,e.formChange();case 10:case"end":return t.stop()}},t,e)}))()},validate:function(e){var t=this;this.$refs.editForm.validate(function(){var n=a()(r.a.mark(function n(i,o){return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:null!=e&&e(i);case 1:case"end":return t.stop()}},n,t)}));return function(e,t){return n.apply(this,arguments)}}())},handleSave:function(e){var t=this;this.$refs.editForm.validate(function(){var n=a()(r.a.mark(function n(i,o){var a,l,s,u,c,d;return r.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!i){n.next=20;break}if("add"!=t.modelType){n.next=11;break}return"function"==typeof t.option.beforeInsert&&t.option.beforeInsert(t.relateData,t.editForm),n.next=5,t.option.buttons.add.api(t.editForm);case 5:a=n.sent,l=a.code,s=a.message,"200"==l?null!=e&&e():console.log("提交表单调用新增接口失败:"+s),n.next=18;break;case 11:return"function"==typeof t.option.beforeUpdate&&t.option.beforeUpdate(t.relateData,t.editForm),n.next=14,t.option.buttons.edit.api(t.editForm);case 14:u=n.sent,c=u.code,d=u.message,"200"==c?null!=e&&e():console.log("提交表单调用更新接口失败:"+d);case 18:n.next=21;break;case 20:console.log("表单校验失败");case 21:case"end":return n.stop()}},n,t)}));return function(e,t){return n.apply(this,arguments)}}())},formChange:function(e,t,n){this.$emit("input",this.editForm),"function"==typeof this.option.formChange&&this.option.formChange(this.editForm,e,t,n)}}},v=(n("SrQ6"),Object(u.a)(b,function(){var e=this,t=e.$createElement,n=e._self._c||t;return null==e.option.hide||0==e.option.hide?n("div",{staticClass:"anji-card"},[n("div",{staticClass:"card-head"},[e._v("\n "+e._s(e.option.title)+"\n "),n("div",{staticClass:"main-card-header-button"},[n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.handleSetRowColNum(4)}}},[e._v("||||")]),e._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.handleSetRowColNum(3)}}},[e._v("|||")]),e._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.handleSetRowColNum(2)}}},[e._v("||")])],1)]),e._v(" "),n("div",{staticClass:"card-body"},[n("el-form",{ref:"editForm",attrs:{model:e.editForm,"label-width":e.option.labelWidth||"100px"}},[e._l(e.columnGroups,function(t){return[e.groupModel?n("el-divider",{key:t,attrs:{"content-position":"left"}},[e._v(e._s(t))]):e._e(),e._v(" "),n("el-row",{key:t,staticClass:"form_table"},[e._l(e.groupFormFields[t],function(t){return[0==e.fieldIsHide(t.editHide)?n("el-col",{key:t.editField,attrs:{span:null==t.rowColSpan?e.cardRowColSpan:t.rowColSpan}},[n("el-form-item",{attrs:{label:t.label,rules:t.rules,prop:t.editField,disabled:t.disabled}},[""!=t.tips&&null!=t.tips?n("span",{staticClass:"input_tips",style:{"margin-left":"-13px"}},[n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.tips,placement:"top-start"}},[n("svg-icon",{attrs:{"icon-class":"tishi-yiwen"}})],1)],1):e._e(),e._v(" "),"input"==t.inputType?n("el-input",{attrs:{placeholder:t.placeholder||"请输入",clearable:!1!==t.clearable,disabled:e.fieldIsDisable(t.disabled)},on:{change:function(n){return e.formChange(t.editField,n,null)}},model:{value:e.editForm[t.editField],callback:function(n){e.$set(e.editForm,t.editField,"string"==typeof n?n.trim():n)},expression:"editForm[item.editField]"}}):"switch"==t.inputType?n("el-switch",{attrs:{disabled:e.fieldIsDisable(t.disabled),"active-value":1,"inactive-value":0,"inactive-color":"#ccc","active-color":"#5887fb"},on:{change:function(n){return e.formChange(t.editField,n,null)}},model:{value:e.editForm[t.editField],callback:function(n){e.$set(e.editForm,t.editField,"string"==typeof n?n.trim():n)},expression:"editForm[item.editField]"}}):"input-number"==t.inputType?n("el-input-number",{attrs:{min:t.inputNumberOption.min,max:t.inputNumberOption.max,placeholder:t.placeholder||"请输入",clearable:!1!==t.clearable,disabled:e.fieldIsDisable(t.disabled)},on:{change:function(n){return e.formChange(t.editField,n,null)}},model:{value:e.editForm[t.editField],callback:function(n){e.$set(e.editForm,t.editField,"string"==typeof n?n.trim():n)},expression:"editForm[item.editField]"}}):"anji-input"==t.inputType?n("anji-input",{attrs:{unit:t.anjiInput.unit,"default-unit":t.anjiInput.defaultUnit,placeholder:t.placeholder||"请输入",clearable:!1!==t.clearable,disabled:e.fieldIsDisable(t.disabled)},on:{change:function(n){return e.formChange(t.editField,n,null)}},model:{value:e.editForm[t.editField],callback:function(n){e.$set(e.editForm,t.editField,"string"==typeof n?n.trim():n)},expression:"editForm[item.editField]"}}):"anji-select"==t.inputType?n("anji-select",{attrs:{"allow-create":t.anjiSelectOption.allowCreate,multiple:t.anjiSelectOption.multiple,disabled:e.fieldIsDisable(t.disabled),"dict-code":t.anjiSelectOption.dictCode,placeholder:t.placeholder,url:t.anjiSelectOption.url,method:t.anjiSelectOption.method,"query-param":t.anjiSelectOption.queryParam,"merge-label":t.anjiSelectOption.mergeLabel,option:t.anjiSelectOption.option,label:t.anjiSelectOption.label,"remote-filter":t.anjiSelectOption.remoteFilter,"disabled-options":t.anjiSelectOption.disabledOptions,"select-keyword":t.anjiSelectOption.selectKeyword},on:{change:function(n,i){return e.formChange(t.editField,n,i)}},model:{value:e.editForm[t.editField],callback:function(n){e.$set(e.editForm,t.editField,"string"==typeof n?n.trim():n)},expression:"editForm[item.editField]"}}):t.inputType.indexOf("date")>=0?n("el-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:t.placeholder||"请选择",type:t.inputType,format:t.format,"value-format":t.valueFormat,disabled:e.fieldIsDisable(t.disabled),clearable:!1!==t.clearable},on:{change:function(n){return e.formChange(t.editField,n,null)}},model:{value:e.editForm[t.editField],callback:function(n){e.$set(e.editForm,t.editField,n)},expression:"editForm[item.editField]"}}):"checkbox"==t.inputType?n("anji-checkbox",{attrs:{"dict-code":t.anjiCheckbox.dictCode,url:t.anjiCheckbox.url,label:t.anjiCheckbox.label,disabled:e.fieldIsDisable(t.disabled)},on:{change:function(n,i){return e.formChange(t.editField,n,i)}},model:{value:e.editForm[t.editField],callback:function(n){e.$set(e.editForm,t.editField,"string"==typeof n?n.trim():n)},expression:"editForm[item.editField]"}}):"anji-cascader"==t.inputType?n("anji-cascader",{attrs:{disabled:e.fieldIsDisable(t.disabled),"single-display":t.anjiCascader.singleDisplay,url:t.anjiCascader.url},on:{change:function(n){return e.formChange(t.editField,n,null)}},model:{value:e.editForm[t.editField],callback:function(n){e.$set(e.editForm,t.editField,"string"==typeof n?n.trim():n)},expression:"editForm[item.editField]"}}):"anji-upload"==t.inputType?n("anji-upload",{attrs:{"up-load-url":t.anjiUpload.upLoadUrl,"view-url":t.anjiUpload.viewUrl,"upload-type":t.anjiUpload.uploadType,limit:t.anjiUpload.limit},on:{change:function(n){return e.formChange(t.editField,n,null)}},model:{value:e.editForm[t.editField],callback:function(n){e.$set(e.editForm,t.editField,"string"==typeof n?n.trim():n)},expression:"editForm[item.editField]"}}):"anji-autocomplete"==t.inputType?n("anji-autocomplete",{attrs:{disabled:e.fieldIsDisable(t.disabled),label:t.anjiAutocomplete.label,option:t.anjiAutocomplete.option,"appoint-value":t.anjiAutocomplete.appointValue,url:t.anjiAutocomplete.url},on:{change:function(n,i){return e.formChange(t.editField,n,i)}},model:{value:e.editForm[t.editField],callback:function(n){e.$set(e.editForm,t.editField,"string"==typeof n?n.trim():n)},expression:"editForm[item.editField]"}}):"textarea"==t.inputType?n("el-input",{attrs:{placeholder:t.placeholder||"请输入",clearable:!1!==t.clearable,disabled:e.fieldIsDisable(t.disabled),type:"textarea",rows:2},on:{change:function(n){return e.formChange(t.editField,n,null)}},model:{value:e.editForm[t.editField],callback:function(n){e.$set(e.editForm,t.editField,"string"==typeof n?n.trim():n)},expression:"editForm[item.editField]"}}):"anji-country"==t.inputType?n("anji-fourlevel",{on:{change:function(n){return e.formChange(t.editField,n,null)}},model:{value:e.editForm[t.editField],callback:function(n){e.$set(e.editForm,t.editField,"string"==typeof n?n.trim():n)},expression:"editForm[item.editField]"}}):n("el-input",{attrs:{placeholder:"组件不支持此类型表单请至组件内部自行扩展",disabled:""}})],1)],1):e._e()]})],2)]})],2)],1)]):e._e()},[],!1,null,"6d4810f5",null));v.options.__file="edit-form.vue";var g=v.exports,y={components:{},props:{modelType:String,option:{type:[Object],default:function(){return{title:"",labelWidth:"",queryFormFields:[],buttons:{query:{},edit:{},delete:{},add:{}},columns:[]}}},relateData:{type:[Object],default:function(){return{}}},value:{type:[Array],default:function(){return[]}},valueNew:{type:[Array],default:function(){return[]}}},data:function(){return{checkRecords:[],form:{records:[],total:0},saveButtonStatus:[],rowIdList:[]}},computed:{primaryKeyFieldName:function(){var e=this.option.columns.find(function(e){return 1==e.primaryKey});return null!=e?e.field:null},joinColumn:function(){var e=this.option.joinColumn;return this.isBlank(e)&&(console.warn("在columns中查找关联字段失败,会导致查询详情和删除失败,孙子关联表忽略该错误"),e=""),e},formRecordsUndelete:function(){return null==this.form.records?[]:this.form.records.filter(function(e){return null==e.deletedFlag||0==e.deletedFlag})}},watch:{},created:function(){this.isNotBlank(this.joinColumn)&&this.$watch(function(){return this.relateData[this.joinColumn]},function(e,t){this.isNotBlank(e)?this.handleQueryPageList(e):(this.checkRecords=[],this.form.records=[],this.form.total=0,this.saveButtonStatus=[])})},mounted:function(){this.isNotBlank(this.relateData)&&this.isNotBlank(this.relateData[this.joinColumn])&&this.handleQueryPageList()},methods:{fieldIsHide:function(e){if("boolean"==typeof e)return e;if("string"==typeof e){if("add"==this.modelType)return e.indexOf("hideOnAdd")>=0;if("view"==this.modelType)return e.indexOf("hideOnView")>=0;if("edit"==this.modelType)return e.indexOf("hideOnEdit")>=0}return!1},getRowEditButton:function(e){return"inEditing"==this.saveButtonStatus[e]?"btn_savetemp":"inAdding"==this.saveButtonStatus[e]?"btn_savetemp":"inShow"==this.saveButtonStatus[e]?"btn_edit":"not_permission"},tableRowClassAdapter:function(e){var t=e.row,n=e.rowIndex;t.index=n},handleQueryPageList:function(e){var t=this;return a()(r.a.mark(function n(){var i;return r.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:t.isBlank(e)&&(e=t.relateData[t.joinColumn]),(i={})[t.joinColumn]=e,t.queryPageList(i);case 4:case"end":return n.stop()}},n,t)}))()},queryPageList:function(e){var t=this;return a()(r.a.mark(function n(){var i,o,a;return r.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return t.isNotBlank(t.option.buttons.query.order)&&(e.sort=t.option.buttons.query.sort,e.order=t.option.buttons.query.order),n.next=3,t.option.buttons.query.api(e);case 3:if(i=n.sent,o=i.data,"200"==i.code){n.next=8;break}return n.abrupt("return");case 8:for(t.form.records=o.records,t.form.total=o.total,t.$emit("input",t.form.records),a=0;a=0?n("el-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:t.placeholder||"请选择",type:t.inputType,clearable:!1!==t.clearable,disabled:"inShow"==e.saveButtonStatus[i.$index]||t.disabled},on:{change:function(n){return e.tableRowChange(i.$index,t.field,n)}},model:{value:i.row[t.field],callback:function(n){e.$set(i.row,t.field,n)},expression:"scope.row[item.field]"}}):n("el-input",{attrs:{placeholder:"组件不支持此类型表单请至组件内部自行扩展",disabled:""}})],1)]}}],null,!0)}):e._e()]}),e._v(" "),n("el-table-column",{attrs:{fixed:"right",label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return e.handleAddOrUpdate(t.row,t.$index)}}},[e._v(e._s(e.getRowEditButton(t.$index)))]),e._v(" "),n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return e.handleDelete(t.row,t.$index)}}},[e._v("删除")])]}}],null,!1,1921872996)})],2)],1),e._v(" "),"view"!=e.modelType?n("button",{staticClass:"table-add-row-button",on:{click:e.handleAdd}},[n("i",{staticClass:"el-icon-plus"}),e._v(" "),n("span",[e._v("新增")])]):e._e()],1)]):e._e()},[],!1,null,"75d47ce0",null));w.options.__file="edit-table.vue";var x={name:"EditDialog",components:{EditForm:g,EditTable:w.exports},props:{visible:{type:[Boolean],default:function(){return!1}},rowData:{type:[Object],default:function(){return{}}},handleDetailData:{type:Function,default:function(e){return e}},submitDetailData:{type:Function,default:function(e,t){return e}},modelType:String,option:{require:!0,type:Object,default:function(){return{title:"",labelWidth:"",queryFormFields:[],buttons:{query:{},edit:{},delete:{},add:{}},columns:[]}}}},data:function(){return{showDialog:!1,dialogFullScreen:!1,cardRowColNum:2,saveForm:{},countForValidJoinForm:0}},computed:{dialogWidth:function(){return 2==this.cardRowColNum?"60%":3==this.cardRowColNum?"70%":4==this.cardRowColNum?"80%":"60%"},joinEntitys:function(){return this.isBlank(this.option.joinEntitys)?[]:this.option.joinEntitys},countJoinEntityOneToOne:function(){var e=this.joinEntitys.filter(function(e){return"OneToOne"==e.joinType});return null==e?0:e.length}},watch:{visible:function(e,t){this.showDialog=e,this.initDefaultSaveForm()},rowData:function(e,t){null!=e&&this.queryByPrimarykey(e)}},mounted:function(){this.initDefaultSaveForm()},methods:{getSaveForm:function(){return this.saveForm},setSaveForm:function(e){this.saveForm=e},initDefaultSaveForm:function(){var e=this,t={};this.option.columns.forEach(function(n){var i=n.editField;e.isBlank(i)&&(i=n.field);var r=n.defaultValue;e.isNotBlank(r)&&(t[i]=r)}),this.saveForm=this.deepClone(t),console.log("编辑框默认值:"+m()(this.saveForm))},handleCloseDialog:function(e){this.initDefaultSaveForm(),this.showDialog=!1,this.dialogFullScreen=!1,this.cardRowColNum=2,this.countForValidJoinForm=0,this.$emit("closeEvent",e)},handleTopCloseDialog:function(){this.initDefaultSaveForm(),this.showDialog=!1,this.dialogFullScreen=!1,this.cardRowColNum=2,this.countForValidJoinForm=0},handleSetRowColNum:function(e){this.cardRowColNum=e},getComponentByJoinType:function(e,t){return"OneToOne"==e?"EditForm":"OneToMany"==e?"EditTable":""},queryByPrimarykey:function(e){var t=this;return a()(r.a.mark(function n(){var i,o;return r.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.option.buttons.queryByPrimarykey.api(e);case 2:if(i=n.sent,o=i.data,"200"==i.code){n.next=7;break}return n.abrupt("return");case 7:t.showDialog=!0,t.saveForm=t.handleDetailData(o);case 9:case"end":return n.stop()}},n,t)}))()},handleValidateAndSave:function(){var e=this;this.countForValidJoinForm=0,this.$refs.mainForm.validate(function(t){if(0!=t)if(console.log("主表单校验完成"),null!=e.joinEntitys&&0!=e.joinEntitys.length)for(var n=function(t){console.log("开始校验子表单-"+t+" 校验");var n=e.joinEntitys[t];if(console.log(n),null!=e.$refs["joinForm"+t]&&1!=n.hide&&null!=e.saveForm[n.fieldNameInMainEntityOnSave]&&0!=e.saveForm[n.fieldNameInMainEntityOnSave].length)return e.checkedChildrenValidate(e.saveForm[n.fieldNameInMainEntityOnSave],n.columns)?(e.countForValidJoinForm++,console.log("已经校验的子表单:"+e.countForValidJoinForm+" 共:"+e.joinEntitys.length),e.countForValidJoinForm==e.joinEntitys.length&&(console.log("子表单校验完成,提交主表单"),e.handleSave()),"continue"):{v:void 0};console.warn("子表单校验失败");var i=e.$refs["joinForm"+t];"[object Array]"==toString.call(i)&&(i=i[0]),i.validate(function(n){n?(e.countForValidJoinForm++,console.log("已经校验的子表单:"+e.countForValidJoinForm+" 共:"+e.joinEntitys.length),e.countForValidJoinForm==e.joinEntitys.length&&(console.log("子表单校验完成,提交主表单"),e.handleSave())):console.warn("子表单"+t+"校验失败:")})},i=0;i0?e.forEach(function(e){t.records.forEach(function(t){e.id==t.id&&(t.dblClickFlag=!0,t.bgColor=!0)})}):this.records.forEach(function(e){e.dblClickFlag=!1,e.bgColor=!1}),this.isShowRowContextMenu=!1,this.checkRecords=e},handleSelectionDblclick:function(e){e.dblClickFlag=!e.dblClickFlag,e.bgColor=e.dblClickFlag,this.$refs.tables.toggleRowSelection(e,e.dblClickFlag)},rowContextMenu:function(e,t,n){var i=this;n.preventDefault(),this.option.contextMenu.forEach(function(e){"all"==e.flag?e.disabled=!(i.checkRecords.length>1):e.disabled=i.checkRecords.length>1}),this.contextMenuConfigStyle={left:n.clientX+"px",top:n.clientY+"px",display:"block"},this.contextMenuRow=e,this.isShowRowContextMenu=!0},handleContextMenuItem:function(e){"all"==e.flag?e.click({selection:this.checkRecords}):e.click({msg:this.contextMenuRow})},handleCurrentChange:function(e){this.queryParams.pageNumber=e,this.handleQueryPageList()},handleSizeChange:function(e){this.queryParams.pageNumber=1,this.queryParams.pageSize=e,this.handleQueryPageList()},fieldLabel:function(e){var t="",n=this.getSettingByName("unit_conversion"),i={};for(var r in n)e.anjiInput&&-1!=r.toLowerCase().indexOf(e.anjiInput.unit.toLowerCase())&&(i[r]=n[r]);for(var o in i)-1!=o.toLowerCase().indexOf("text")&&(t=i[o]);return null==e?"":"anji-input"==e.inputType&&null!=e.anjiInput?void 0==e.anjiInput.defaultUnit?e.label+"("+t+")":e.label+"("+e.anjiInput.defaultUnit+")":e.label},fieldValueByAnjiInput:function(e,t){var n=this.getSettingByName("unit_conversion"),i="",r="",o=[],a={};for(var l in n)t.anjiInput&&-1!=l.toLowerCase().indexOf(t.anjiInput.unit.toLowerCase())&&(a[l]=n[l]);for(var s in a)-1!=s.toLowerCase().indexOf("conversion")&&-1==s.toLowerCase().indexOf("conversiontext")&&-1==s.toLowerCase().indexOf("conversionradiogroup")&&(i=a[s]),-1!=s.toLowerCase().indexOf("keeppoint")&&(r=a[s]),Array.isArray(a[s])&&(o=a[s]);return null==t?e:"anji-input"!=t.inputType||null==t.anjiInput?e:void 0==t.anjiInput.defaultUnit?(e/i).toFixed(r||2):(e/o.find(function(e){return e.label==t.anjiInput.defaultUnit}).value).toFixed(r||2)},fieldValueByRowRenderer:function(e,t){return null==t||"function"!=typeof t.fieldTableRowRenderer?e[t.field]:t.fieldTableRowRenderer(e)},getMainEntity:function(){return this.$refs.edit.getSaveForm()},setMainEntity:function(e){this.$refs.edit.setSaveForm(e)},switchChange:function(e,t){var n=this;return a()(r.a.mark(function i(){return r.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:Object(l.a)({url:t.url,method:"put",headers:{noPrompt:!1},data:[e.id]}).then(function(e){n.handleQueryPageList()});case 1:case"end":return i.stop()}},i,n)}))()},queryFormChange:function(e,t){"function"==typeof this.option.queryFormChange&&this.option.queryFormChange(this.queryParams,e,t)},tableRowClassName:function(e){var t=e.row,n=e.rowIndex;return!t.urgentFlag&&!t.tableRow||t.bgColor?(t.urgentFlag||t.tableRow)&&t.bgColor?"warning-row bgColor":t.urgentFlag&&t.tableRow||!t.bgColor?(n+1)%2==0?"success-row":void 0:"bgColor":"warning-row"}}},j=(n("jz6T"),Object(u.a)(_,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:[e.hasTreeFieldInQueryForm?"page-container":"app-container"]},[e.hasTreeFieldInQueryForm?n("div",{staticClass:"left-container"},[n("AnjiTree",{ref:"queryFormTree",attrs:{"is-open":e.queryFormTreeField.anjiTreeOption.isOpen,"enable-filter":e.queryFormTreeField.anjiTreeOption.enableFilter,"label-name":e.queryFormTreeField.label,url:e.queryFormTreeField.anjiTreeOption.url},on:{"node-click":e.handleTreeNodeCheck},model:{value:e.queryParams[e.queryFormTreeField.field],callback:function(t){e.$set(e.queryParams,e.queryFormTreeField.field,"string"==typeof t?t.trim():t)},expression:"queryParams[queryFormTreeField.field]"}})],1):e._e(),e._v(" "),n("div",{staticClass:"right-container"},[n("div",{staticClass:"top_part"},[0==e.queryFormTreeHide?n("el-form",{ref:"formSearch",staticStyle:{"border-bottom":"1px solid #dbdde3","margin-bottom":"10px"},attrs:{model:e.queryParams,"label-width":"100px"}},[n("div",{staticClass:"screenFlex"},[n("div",{staticClass:"searchFormFlex"},[n("el-row",[e._l(e.queryFormFieldExcludeTree,function(t,i){return[i<3||e.queryParams.showMoreSearch?n("el-col",{key:t.field,attrs:{span:8}},[n("el-form-item",{attrs:{label:t.label,rules:t.rules,prop:t.field}},["input"==t.inputType||"input-number"==t.inputType?n("el-input",{attrs:{placeholder:t.placeholder||"请输入",clearable:!1!==t.clearable,disabled:t.disabled},on:{change:function(n){return e.queryFormChange(t.field,n)}},model:{value:e.queryParams[t.field],callback:function(n){e.$set(e.queryParams,t.field,"string"==typeof n?n.trim():n)},expression:"queryParams[item.field]"}}):"switch"==t.inputType?n("el-switch",{attrs:{disabled:t.disabled,"active-value":t.switchOption.disableValue,"inactive-value":t.switchOption.enableValue,"active-color":"#5887fb","inactive-color":"#ccc"},on:{change:function(n){return e.queryFormChange(t.field,n)}},model:{value:e.queryParams[t.field],callback:function(n){e.$set(e.queryParams,t.field,"string"==typeof n?n.trim():n)},expression:"queryParams[item.field]"}}):"anji-select"==t.inputType?n("anji-select",{attrs:{multiple:t.anjiSelectOption.multiple,"dict-code":t.anjiSelectOption.dictCode,url:t.anjiSelectOption.url,method:t.anjiSelectOption.method,"query-param":t.anjiSelectOption.queryParam,option:t.anjiSelectOption.option,label:t.anjiSelectOption.label,"disabled-options":t.anjiSelectOption.disabledOptions,disabled:t.disabled,"merge-label":t.anjiSelectOption.mergeLabel,"local-options":t.anjiSelectOption.localOptions},on:{change:function(n){return e.queryFormChange(t.field,n)}},model:{value:e.queryParams[t.field],callback:function(n){e.$set(e.queryParams,t.field,"string"==typeof n?n.trim():n)},expression:"queryParams[item.field]"}}):t.inputType.indexOf("date")>=0?n("el-date-picker",{staticStyle:{width:"100%"},attrs:{placeholder:t.placeholder||"请选择",type:t.inputType,format:t.format,"value-format":t.valueFormat,clearable:!1!==t.clearable},on:{change:function(n){return e.queryFormChange(t.field,n)}},model:{value:e.queryParams[t.field],callback:function(n){e.$set(e.queryParams,t.field,n)},expression:"queryParams[item.field]"}}):"anji-cascader"==t.inputType?n("anji-cascader",{attrs:{disabled:t.disabled,"single-display":t.anjiCascader.singleDisplay,url:t.anjiCascader.url},on:{change:function(n){return e.queryFormChange(t.field,n,null)}},model:{value:e.queryParams[t.field],callback:function(n){e.$set(e.queryParams,t.field,"string"==typeof n?n.trim():n)},expression:"queryParams[item.field]"}}):n("el-input",{attrs:{placeholder:"组件不支持此类型表单请至组件内部自行扩展",disabled:""}})],1)],1):e._e()]})],2)],1),e._v(" "),n("div",{staticClass:"screenButtons"},[e.queryFormFieldExcludeTree.length>3?n("el-button",{staticClass:"button",attrs:{size:"mini",plain:""},on:{click:e.handleToggleMoreSearch}},[n("i",{class:e.queryParams.showMoreSearch?"el-icon-arrow-up":"el-icon-arrow-down"}),e._v("\n "+e._s(1==e.queryParams.showMoreSearch?"展开":"收起")+"\n ")]):e._e(),e._v(" "),n("el-button",{staticClass:"button",attrs:{size:"mini",plain:""},on:{click:function(t){return e.handleResetForm()}}},[e._v("重置")]),e._v(" "),n("el-button",{staticClass:"button",attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.handleQueryForm("query")}}},[e._v("查询")])],1)])]):e._e(),e._v(" "),n("div",{staticStyle:{"padding-bottom":"8px"}},[e._t("tableButtons",null,{selection:e.checkRecords}),e._v(" "),e._l(e.option.tableButtons,function(t,i){return n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:t.permission,expression:"item.permission"}],key:i,staticClass:"tableButton",attrs:{plain:t.plain,icon:t.icon,type:t.type,disabled:e.isDisabledButton(t,e.checkRecords)},on:{click:function(n){return t.click(e.checkRecords)}}},[e._v(e._s(e.handlegetLable(e.checkRecords,t.label)))])})],2)],1),e._v(" "),n("div",{staticClass:"main_part"},[n("div",{staticClass:"page_main"},[n("el-table",{ref:"tables",staticClass:"elTable",attrs:{align:"center",data:e.records,"row-class-name":e.tableRowClassName,border:""},on:{"selection-change":e.handleSelectionChange,"sort-change":e.handleSortChange,"row-dblclick":e.handleSelectionDblclick,"row-contextmenu":e.rowContextMenu}},[n("el-table-column",{attrs:{fixed:"",type:"selection",width:"50",align:"center"}}),e._v(" "),e.tableExpandColumns.length>0?n("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(e.tableExpandColumns,function(i){return n("p",{key:i.field,staticClass:"table-expand-item"},[n("span",{staticClass:"titel"},[e._v(" "+e._s(i.label)+": ")]),e._v(" "),n("span",[e._v(e._s(t.row[i.field]))])])})}}],null,!1,3354752618)}):e._e(),e._v(" "),n("el-table-column",{attrs:{label:"序号","min-width":"50",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.queryParams.pageSize*(e.queryParams.pageNumber-1)+t.$index+1)+"\n ")]}}])}),e._v(" "),e._l(e.option.columns,function(t,i){return[1!=t.tableHide&&"expand"!=t.columnType?n("el-table-column",{key:i,attrs:{prop:t.field,label:e.fieldLabel(t),"min-width":t.minWidth||110,sortable:t.sortable,"show-overflow-tooltip":!0,align:"center"},scopedSlots:e._u([{key:"default",fn:function(i){return["imgPreview"==t.columnType?n("div",[n("el-image",{staticStyle:{width:"25%",height:"50%"},attrs:{fit:"contain",src:i.row[t.field],"preview-src-list":[i.row[t.field]]}})],1):n("div",["switch"!=t.inputType||t.colorStyle?"anji-input"==t.inputType?n("span",[e._v(e._s(e.fieldValueByAnjiInput(i.row[t.field],t)))]):t.mergeColumn?n("span",[e._v(e._s(i.row[t.field])+"("+e._s(i.row[t.mergeColumn])+")")]):t.colorStyle?n("span",{class:t.colorStyle[i.row[t.editField]]},[e._v(e._s(e.fieldValueByRowRenderer(i.row,t)))]):n("span",[e._v(e._s(e.fieldValueByRowRenderer(i.row,t)))]):n("span",[n("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":"#5887fb","inactive-color":"#ccc"},on:{change:function(n){return e.switchChange(i.row,t.switchOption)}},model:{value:i.row[t.field],callback:function(n){e.$set(i.row,t.field,"string"==typeof n?n.trim():n)},expression:"scope.row[item.field]"}})],1)])]}}],null,!0)}):e._e()]}),e._v(" "),n("el-table-column",{attrs:{align:"center",fixed:"right",label:"操作",width:e.option.buttons.rowButtonsWidth||100},scopedSlots:e._u([{key:"default",fn:function(t){return[e.option.rowButtons.length<=2?n("div",[e._l(e.option.rowButtons,function(i,r){return[e.isHide(i,t.row)?n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:i.permission,expression:"item.permission"}],key:r,attrs:{disabled:e.isDisabledButton(i,t.row),type:i.type||"text",size:"small"},on:{click:function(e){return i.click(t.row)}}},[e._v(e._s(e.handlegetLable(t.row,i.label)))]):e._e()]})],2):n("div",[n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:e.option.rowButtons[0].permission,expression:"option.rowButtons[0].permission"}],attrs:{type:e.option.rowButtons[0].type||"text",disabled:e.isDisabledButton(e.option.rowButtons[0],t.row)},on:{click:function(n){return e.option.rowButtons[0].click(t.row)}}},[e._v(e._s(e.handlegetLable(t.row,e.option.rowButtons[0].label)))]),e._v(" "),n("el-dropdown",{attrs:{trigger:"click"}},[n("span",{staticClass:"el-dropdown-link"},[e._v("\n 更多\n "),n("i",{staticClass:"el-icon-caret-bottom el-icon--right"})]),e._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{staticClass:"clearfix"},[e._l(e.option.rowButtons.filter(function(e,t){return t>0}),function(i,r){return[e.isHide(i,t.row)?n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:i.permission,expression:"item.permission"}],key:r,attrs:{type:i.type||"text",disabled:e.isDisabledButton(i,t.row),size:"small"},on:{click:function(e){return i.click(t.row)}}},[e._v(e._s(e.handlegetLable(t.row,i.label)))]):e._e()]})],2)],1)],1)],1)]}}])})],2),e._v(" "),n("div",{staticClass:"page_bottom"},[n("div",{staticClass:"pagination"},[n("div",[e._t("tableSelectionBtn",null,{selection:e.checkRecords})],2),e._v(" "),n("el-pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{background:"","current-page":e.queryParams.pageNumber,"page-sizes":e.$pageSizeAll,"page-size":e.queryParams.pageSize,layout:"total, prev, pager, next, jumper, sizes",total:e.total},on:{"update:currentPage":function(t){return e.$set(e.queryParams,"pageNumber",t)},"update:current-page":function(t){return e.$set(e.queryParams,"pageNumber",t)},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)])],1)]),e._v(" "),n("EditDialog",{ref:"edit",attrs:{"submit-detail-data":e.option.submitDetailData,"handle-detail-data":e.option.handleDetailData,option:e.option,"model-type":e.editDialogModelType,visible:e.editDialogOpen,"row-data":e.editDialogRowData},on:{closeEvent:e.editDialogClosedEvent},scopedSlots:e._u([{key:"customCard",fn:function(){return[e._t("cardInEditPage")]},proxy:!0},{key:"editBtn",fn:function(t){return[e._t("editBtnPage",null,{rowData:t})]}}],null,!0)})],1),e._v(" "),e._t("pageSection"),e._v(" "),n("anji-contextMenu",{attrs:{visible:e.isShowRowContextMenu,"style-obj":e.contextMenuConfigStyle},on:{"update:visible":function(t){e.isShowRowContextMenu=t}}},e._l(e.option.contextMenu,function(t,i){return n("div",{key:i,staticClass:"contextMenu"},[n("el-button",{staticClass:"contextMenuItem",attrs:{type:"text",disabled:t.disabled},on:{click:function(n){return e.handleContextMenuItem(t)}}},[e._v(e._s(t.label))])],1)}),0)],2)},[],!1,null,"73efe6df",null));j.options.__file="anji-crud.vue";t.default=j.exports},sm2R:function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a});var i=n("t3Un"),r=n("XS0u");function o(e){return Object(i.a)({url:"/gaeaDict/select/"+e,method:"get"})}function a(e){Object(i.a)({url:"/gaeaDict/all",method:"GET"}).then(function(t){200==t.code?(Object(r.c)("AJReportDict",t.data),null!=e&&e()):console.error("初始化数据字典到local storage失败: "+t.message)})}},sxct:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("gjeX");function r(e){return i(e+"gaea")}},t3Un:function(e,t,n){"use strict";var i=n("4d7F"),r=n.n(i),o=n("vDqi"),a=n.n(o),l=n("XJYT"),s=(n("Q2AE"),n("X4fA")),u=a.a.create({baseURL:"http://wms.picaiba.com/report-ui",timeout:2e4});u.interceptors.request.use(function(e){return e.headers.Authorization=null==Object(s.f)()||void 0==Object(s.f)()?"":Object(s.f)(),e},function(e){r.a.reject(e)}),u.interceptors.response.use(function(e){var t=e.data;if("User.credentials.expired"!=t.code&&"50012"!=t.code&&"50014"!=t.code)return"200"!==t.code?(Object(l.Message)({message:t.message,type:"error",duration:5e3}),e.data):e.data;l.MessageBox.confirm("你已被登出,可以取消继续留在该页面,或者重新登录","重新登录",{confirmButtonText:"重新登录",cancelButtonText:"取消",type:"warning"}).then(function(){sessionStorage.clear(),localStorage.clear(),window.location.href="/"})},function(e){return Object(l.Message)({message:e.message,type:"error",duration:5e3}),r.a.reject(e)}),t.a=u},vjVy:function(e,t,n){},y4jC:function(e,t,n){"use strict";var i=n("Ui9L");n.n(i).a},z69j:function(e,t,n){}},[["Vtdi","runtime","chunk-elementUI","chunk-libs"]]]); \ No newline at end of file diff --git a/dist/static/js/chunk-12f3.66ed577f.js b/dist/static/js/chunk-12f3.66ed577f.js new file mode 100644 index 0000000..a36c079 --- /dev/null +++ b/dist/static/js/chunk-12f3.66ed577f.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-12f3"],{"3Xui":function(e,t,i){"use strict";i.r(t);var s=i("GQeE"),o=i.n(s),r=i("14Xm"),n=i.n(r),a=i("D3Ub"),c=i.n(a),h=i("gDS+"),l=i.n(h),p=i("NFKh"),d=i.n(p);function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"XwKsGlMcdPMEhR1B",i=d.a.enc.Utf8.parse(t),s=d.a.enc.Utf8.parse(e);return d.a.AES.encrypt(s,i,{mode:d.a.mode.ECB,padding:d.a.pad.Pkcs7}).toString()}function f(e){var t=e.$el.parentNode.offsetWidth||window.offsetWidth,i=e.$el.parentNode.offsetHeight||window.offsetHeight;return{imgWidth:-1!=e.imgSize.width.indexOf("%")?parseInt(this.imgSize.width)/100*t+"px":this.imgSize.width,imgHeight:-1!=e.imgSize.height.indexOf("%")?parseInt(this.imgSize.height)/100*i+"px":this.imgSize.height,barWidth:-1!=e.barSize.width.indexOf("%")?parseInt(this.barSize.width)/100*t+"px":this.barSize.width,barHeight:-1!=e.barSize.height.indexOf("%")?parseInt(this.barSize.height)/100*i+"px":this.barSize.height}}var m=i("4d7F"),g=i.n(m),v=i("vDqi"),y=i.n(v),b=i("XJYT");y.a.defaults.baseURL="http://report.picaiba.com/api/";var w=y.a.create({withCredentials:!1,timeout:6e4,headers:{"Content-Type":"application/json"}});w.interceptors.request.use(function(e){return e},function(e){g.a.reject(e)}),w.interceptors.response.use(function(e){var t=e.data;return 200==t.code?t:"50014"!=t.code?"3100"==t.code||"3101"==t.code?t:(Object(b.Message)({message:t.repMsg||t.message,type:"error",duration:3e3}),t):void Object(b.MessageBox)({message:"当前登录已失效或异地登录,请重新登录",type:"error",duration:3e3}).then(function(){sessionStorage.clear(),localStorage.clear(),window.location.href="/"}).catch(function(e){})},function(e){var t=e.response.code,i=e.response.data,s="";s=200!=t?"服务器内部错误,请联系管理员":"失败原因:"+i.code+"--"+i.repMsg,Object(b.Message)({message:s,type:"error",duration:5e3})});var k=w;function x(e){return k({url:"auth-service/user/captcha/get",method:"post",data:e})}function S(e){return k({url:"auth-service/user/captcha/check",method:"post",data:e})}var C={name:"VerifySlide",props:{captchaType:{type:String},type:{type:String,default:"1"},mode:{type:String,default:"fixed"},vSpace:{type:Number,default:5},explain:{type:String,default:"向右滑动完成验证"},imgSize:{type:Object,default:function(){return{width:"310px",height:"155px"}}},blockSize:{type:Object,default:function(){return{width:"50px",height:"50px"}}},barSize:{type:Object,default:function(){return{width:"310px",height:"40px"}}}},data:function(){return{secretKey:"",passFlag:"",backImgBase:"",blockBackImgBase:"",backToken:"",startMoveTime:"",endMovetime:"",tipsBackColor:"",tipWords:"",text:"",finishText:"",setSize:{imgHeight:0,imgWidth:0,barHeight:0,barWidth:0},top:0,left:0,moveBlockLeft:void 0,leftBarWidth:void 0,moveBlockBackgroundColor:void 0,leftBarBorderColor:"#ddd",iconColor:void 0,iconClass:"icon-right",status:!1,isEnd:!1,showRefresh:!0,transitionLeft:"",transitionWidth:""}},computed:{barArea:function(){return this.$el.querySelector(".verify-bar-area")},resetSize:function(){return f}},methods:{init:function(){var e=this;this.text=this.explain,this.getPictrue(),this.$nextTick(function(){var t=e.resetSize(e);for(var i in t)e.$set(e.setSize,i,t[i]);e.$parent.$emit("ready",e)});var t=this;window.removeEventListener("touchmove",function(e){t.move(e)}),window.removeEventListener("mousemove",function(e){t.move(e)}),window.removeEventListener("touchend",function(){t.end()}),window.removeEventListener("mouseup",function(){t.end()}),window.addEventListener("touchmove",function(e){t.move(e)}),window.addEventListener("mousemove",function(e){t.move(e)}),window.addEventListener("touchend",function(){t.end()}),window.addEventListener("mouseup",function(){t.end()})},start:function(e){if((e=e||window.event).touches)t=e.touches[0].pageX;else var t=e.clientX;this.startLeft=Math.floor(t-this.barArea.getBoundingClientRect().left),this.startMoveTime=+new Date,0==this.isEnd&&(this.text="",this.moveBlockBackgroundColor="#337ab7",this.leftBarBorderColor="#337AB7",this.iconColor="#fff",e.stopPropagation(),this.status=!0)},move:function(e){if(e=e||window.event,this.status&&0==this.isEnd){if(e.touches)t=e.touches[0].pageX;else var t=e.clientX;var i=t-this.barArea.getBoundingClientRect().left;i>=this.barArea.offsetWidth-parseInt(parseInt(this.blockSize.width)/2)-2&&(i=this.barArea.offsetWidth-parseInt(parseInt(this.blockSize.width)/2)-2),i<=0&&(i=parseInt(parseInt(this.blockSize.width)/2)),this.moveBlockLeft=i-this.startLeft+"px",this.leftBarWidth=i-this.startLeft+"px"}},end:function(){var e=this;this.endMovetime=+new Date;var t=this;if(this.status&&0==this.isEnd){var i=parseInt((this.moveBlockLeft||"").replace("px",""));i=310*i/parseInt(this.setSize.imgWidth),S({captchaType:this.captchaType,pointJson:this.secretKey?u(l()({x:i,y:5}),this.secretKey):l()({x:i,y:5}),token:this.backToken}).then(function(s){if("0000"==s.repCode){e.moveBlockBackgroundColor="#5cb85c",e.leftBarBorderColor="#5cb85c",e.iconColor="#fff",e.iconClass="icon-check",e.showRefresh=!1,e.isEnd=!0,"pop"==e.mode&&setTimeout(function(){e.$parent.clickShow=!1,e.refresh()},1500),e.passFlag=!0,e.tipWords=((e.endMovetime-e.startMoveTime)/1e3).toFixed(2)+"s验证成功";var o=e.secretKey?u(e.backToken+"---"+l()({x:i,y:5}),e.secretKey):e.backToken+"---"+l()({x:i,y:5});e.$parent.$emit("success",{captchaVerification:o}),setTimeout(function(){e.tipWords="",e.$parent.closeBox()},1e3)}else e.moveBlockBackgroundColor="#d9534f",e.leftBarBorderColor="#d9534f",e.iconColor="#fff",e.iconClass="icon-close",e.passFlag=!1,setTimeout(function(){t.refresh()},1e3),e.$parent.$emit("error",e),e.tipWords="验证失败",setTimeout(function(){e.tipWords=""},1e3)}),this.status=!1}},refresh:function(){var e=this;this.showRefresh=!0,this.finishText="",this.transitionLeft="left .3s",this.moveBlockLeft=0,this.leftBarWidth=void 0,this.transitionWidth="width .3s",this.leftBarBorderColor="#ddd",this.moveBlockBackgroundColor="#fff",this.iconColor="#000",this.iconClass="icon-right",this.isEnd=!1,this.getPictrue(),setTimeout(function(){e.transitionWidth="",e.transitionLeft="",e.text=e.explain},300)},getPictrue:function(){var e=this;x({captchaType:this.captchaType}).then(function(t){"0000"==t.repCode?(e.backImgBase=t.repData.originalImageBase64,e.blockBackImgBase=t.repData.jigsawImageBase64,e.backToken=t.repData.token,e.secretKey=t.repData.secretKey):e.tipWords=t.repMsg})}},watch:{type:{immediate:!0,handler:function(){this.init()}}},mounted:function(){this.$el.onselectstart=function(){return!1}}},_=i("KHd+"),T=Object(_.a)(C,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{position:"relative"}},["2"===e.type?i("div",{staticClass:"verify-img-out",style:{height:parseInt(e.setSize.imgHeight)+e.vSpace+"px"}},[i("div",{staticClass:"verify-img-panel",style:{width:e.setSize.imgWidth,height:e.setSize.imgHeight}},[i("img",{staticStyle:{width:"100%",height:"100%",display:"block"},attrs:{src:"data:image/png;base64,"+e.backImgBase,alt:""}}),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.showRefresh,expression:"showRefresh"}],staticClass:"verify-refresh",on:{click:e.refresh}},[i("i",{staticClass:"iconfont icon-refresh"})]),e._v(" "),i("transition",{attrs:{name:"tips"}},[e.tipWords?i("span",{staticClass:"verify-tips",class:e.passFlag?"suc-bg":"err-bg"},[e._v(e._s(e.tipWords))]):e._e()])],1)]):e._e(),e._v(" "),i("div",{staticClass:"verify-bar-area",style:{width:e.setSize.imgWidth,height:e.barSize.height,"line-height":e.barSize.height}},[i("span",{staticClass:"verify-msg",domProps:{textContent:e._s(e.text)}}),e._v(" "),i("div",{staticClass:"verify-left-bar",style:{width:void 0!==e.leftBarWidth?e.leftBarWidth:e.barSize.height,height:e.barSize.height,"border-color":e.leftBarBorderColor,transaction:e.transitionWidth}},[i("span",{staticClass:"verify-msg",domProps:{textContent:e._s(e.finishText)}}),e._v(" "),i("div",{staticClass:"verify-move-block",style:{width:e.barSize.height,height:e.barSize.height,"background-color":e.moveBlockBackgroundColor,left:e.moveBlockLeft,transition:e.transitionLeft},on:{touchstart:e.start,mousedown:e.start}},[i("i",{class:["verify-icon iconfont",e.iconClass],style:{color:e.iconColor}}),e._v(" "),"2"===e.type?i("div",{staticClass:"verify-sub-block",style:{width:Math.floor(47*parseInt(e.setSize.imgWidth)/310)+"px",height:e.setSize.imgHeight,top:"-"+(parseInt(e.setSize.imgHeight)+e.vSpace)+"px","background-size":e.setSize.imgWidth+" "+e.setSize.imgHeight}},[i("img",{staticStyle:{width:"100%",height:"100%",display:"block"},attrs:{src:"data:image/png;base64,"+e.blockBackImgBase,alt:""}})]):e._e()])])])])},[],!1,null,null,null);T.options.__file="VerifySlide.vue";var z=T.exports,B=i("P2sY"),P=i.n(B),$={name:"VerifyPoints",props:{mode:{type:String,default:"fixed"},captchaType:{type:String},vSpace:{type:Number,default:5},imgSize:{type:Object,default:function(){return{width:"310px",height:"155px"}}},barSize:{type:Object,default:function(){return{width:"310px",height:"40px"}}}},data:function(){return{secretKey:"",checkNum:3,fontPos:[],checkPosArr:[],num:1,pointBackImgBase:"",poinTextList:[],backToken:"",setSize:{imgHeight:0,imgWidth:0,barHeight:0,barWidth:0},tempPoints:[],text:"",barAreaColor:void 0,barAreaBorderColor:void 0,showRefresh:!0,bindingClick:!0}},computed:{resetSize:function(){return f}},methods:{init:function(){var e=this;this.fontPos.splice(0,this.fontPos.length),this.checkPosArr.splice(0,this.checkPosArr.length),this.num=1,this.getPictrue(),this.$nextTick(function(){e.setSize=e.resetSize(e),e.$parent.$emit("ready",e)})},canvasClick:function(e){var t=this;this.checkPosArr.push(this.getMousePos(this.$refs.canvas,e)),this.num==this.checkNum&&(this.num=this.createPoint(this.getMousePos(this.$refs.canvas,e)),this.checkPosArr=this.pointTransfrom(this.checkPosArr,this.setSize),setTimeout(function(){var e=t.secretKey?u(t.backToken+"---"+l()(t.checkPosArr),t.secretKey):t.backToken+"---"+l()(t.checkPosArr);S({captchaType:t.captchaType,pointJson:t.secretKey?u(l()(t.checkPosArr),t.secretKey):l()(t.checkPosArr),token:t.backToken}).then(function(i){"0000"==i.repCode?(t.barAreaColor="#4cae4c",t.barAreaBorderColor="#5cb85c",t.text="验证成功",t.bindingClick=!1,"pop"==t.mode&&setTimeout(function(){t.$parent.clickShow=!1,t.refresh()},1500),t.$parent.$emit("success",{captchaVerification:e})):(t.$parent.$emit("error",t),t.barAreaColor="#d9534f",t.barAreaBorderColor="#d9534f",t.text="验证失败",setTimeout(function(){t.refresh()},700))})},400)),this.num="A"&&t<="Z"},showPwd:function(){var e=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick(function(){e.$refs.password.focus()})},useVerify:function(){var e=this;this.$refs.loginForm.validate(function(t){if(!t)return!1;e.$refs.verify.show()})},verifylogin:function(e){this.loginForm.verifyCode=e.captchaVerification,this.loginForm.verifyCode&&this.loginApi()},handleLogin:function(){var e=this;this.$refs.loginForm.validate(function(t){if(!t)return!1;e.loading=!0,e.needCaptcha?e.useVerify():e.loginApi()})},loginApi:function(){var e=this;return c()(n.a.mark(function t(){var i,s,o,r;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i={loginName:e.loginForm.loginName,password:Object(E.a)(e.loginForm.password),verifyCode:""},t.next=3,Object(M.a)(i);case 3:if(s=t.sent,o=s.code,r=s.data,e.loading=!1,"200"==o){t.next=9;break}return t.abrupt("return");case 9:Object(V.j)(r.token),Object(V.h)(r),e.rememberPsw&&N.a.set("u_"+e.loginForm.loginName,Object(j.b)(e.loginForm.password),{expires:15}),r&&r.captcha?e.needCaptcha=!0:(e.needCaptcha=!1,e.$router.push({path:e.redirect||"/report",query:e.otherQuery}));case 13:case"end":return t.stop()}},t,e)}))()},getOtherQuery:function(e){return o()(e).reduce(function(t,i){return"redirect"!==i&&(t[i]=e[i]),t},{})}}},D=(i("Ruor"),Object(_.a)(H,function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{directives:[{name:"loading",rawName:"v-loading",value:!0,expression:"true"}],staticClass:"login_container",attrs:{"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"}},[s("div",{staticClass:"login_contant"},[s("img",{staticClass:"login_img",attrs:{src:i("VfwX"),alt:"image"}}),e._v(" "),s("el-form",{ref:"loginForm",staticClass:"login_form",attrs:{model:e.loginForm,rules:e.loginRules,autocomplete:"on","label-position":"left"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin(t)}}},[s("div",{staticClass:"title_container"},[s("h3",{staticClass:"title"},[e._v("\n HELLO,\n "),s("br"),e._v(" "),s("p",{staticClass:"title_name"},[e._v("在线大屏")])])]),e._v(" "),s("div",{staticClass:"form_fields"},[s("i",{style:{top:e.activeTop+"%"}}),e._v(" "),s("b"),e._v(" "),s("div",[s("p",[e._v("用户名")]),e._v(" "),s("el-form-item",{attrs:{prop:"loginName"}},[s("el-input",{ref:"loginName",attrs:{placeholder:"用户名",name:"loginName",type:"text",tabindex:"1",autocomplete:"on"},on:{focus:function(t){return e.setTop("0")},change:e.getPsw},model:{value:e.loginForm.loginName,callback:function(t){e.$set(e.loginForm,"loginName",t)},expression:"loginForm.loginName"}})],1)],1),e._v(" "),s("div",[s("p",[e._v("密码")]),e._v(" "),s("input",{staticClass:"take",attrs:{name:"password",type:"password",autocomplete:"off"}}),e._v(" "),s("el-tooltip",{attrs:{content:"Caps lock is On",placement:"right",manual:""},model:{value:e.capsTooltip,callback:function(t){e.capsTooltip=t},expression:"capsTooltip"}},[s("el-form-item",{attrs:{prop:"password"}},[s("el-input",{key:e.passwordType,ref:"password",attrs:{type:e.passwordType,placeholder:"用户密码",name:"password",tabindex:"2",autocomplete:"on"},on:{blur:function(t){e.capsTooltip=!1},focus:function(t){return e.setTop("50")}},nativeOn:{keyup:function(t){return e.checkCapslock(t)}},model:{value:e.loginForm.password,callback:function(t){e.$set(e.loginForm,"password",t)},expression:"loginForm.password"}}),e._v(" "),s("span",{staticClass:"show_pwd",on:{click:e.showPwd}},[s("i",{staticClass:"el-icon-view"})])],1)],1)],1)]),e._v(" "),s("div",{staticClass:"control"},[s("div",{staticClass:"remember"},[s("input",{directives:[{name:"model",rawName:"v-model",value:e.rememberPsw,expression:"rememberPsw"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.rememberPsw)?e._i(e.rememberPsw,null)>-1:e.rememberPsw},on:{change:function(t){var i=e.rememberPsw,s=t.target,o=!!s.checked;if(Array.isArray(i)){var r=e._i(i,null);s.checked?r<0&&(e.rememberPsw=i.concat([null])):r>-1&&(e.rememberPsw=i.slice(0,r).concat(i.slice(r+1)))}else e.rememberPsw=o}}}),e._v(" "),s("p",[e._v("记住密码")])])]),e._v(" "),s("el-button",{staticClass:"login_btn",attrs:{loading:e.loading,type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin(t)}}},[e._v("登录")])],1)],1),e._v(" "),e.needCaptcha?s("Verify",{ref:"verify",attrs:{"captcha-type":"blockPuzzle","img-size":{width:"400px",height:"200px"}},on:{success:e.verifylogin}}):e._e()],1)},[],!1,null,null,null));D.options.__file="login.vue";t.default=D.exports},"7U/o":function(e,t,i){},MXwD:function(e,t,i){},Ruor:function(e,t,i){"use strict";var s=i("7U/o");i.n(s).a},VfwX:function(e,t,i){e.exports=i.p+"static/img/login.561e089.jpg"},q8np:function(e,t,i){"use strict";var s=i("MXwD");i.n(s).a}}]); \ No newline at end of file diff --git a/dist/static/js/chunk-12f3.e7e107d9.js b/dist/static/js/chunk-12f3.e7e107d9.js deleted file mode 100644 index 6207c94..0000000 --- a/dist/static/js/chunk-12f3.e7e107d9.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-12f3"],{"3Xui":function(e,t,i){"use strict";i.r(t);var s=i("GQeE"),o=i.n(s),r=i("14Xm"),n=i.n(r),a=i("D3Ub"),c=i.n(a),h=i("gDS+"),l=i.n(h),p=i("NFKh"),d=i.n(p);function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"XwKsGlMcdPMEhR1B",i=d.a.enc.Utf8.parse(t),s=d.a.enc.Utf8.parse(e);return d.a.AES.encrypt(s,i,{mode:d.a.mode.ECB,padding:d.a.pad.Pkcs7}).toString()}function f(e){var t=e.$el.parentNode.offsetWidth||window.offsetWidth,i=e.$el.parentNode.offsetHeight||window.offsetHeight;return{imgWidth:-1!=e.imgSize.width.indexOf("%")?parseInt(this.imgSize.width)/100*t+"px":this.imgSize.width,imgHeight:-1!=e.imgSize.height.indexOf("%")?parseInt(this.imgSize.height)/100*i+"px":this.imgSize.height,barWidth:-1!=e.barSize.width.indexOf("%")?parseInt(this.barSize.width)/100*t+"px":this.barSize.width,barHeight:-1!=e.barSize.height.indexOf("%")?parseInt(this.barSize.height)/100*i+"px":this.barSize.height}}var m=i("4d7F"),g=i.n(m),v=i("vDqi"),y=i.n(v),b=i("XJYT");y.a.defaults.baseURL="http://wms.picaiba.com/report-ui";var w=y.a.create({withCredentials:!1,timeout:6e4,headers:{"Content-Type":"application/json"}});w.interceptors.request.use(function(e){return e},function(e){g.a.reject(e)}),w.interceptors.response.use(function(e){var t=e.data;return 200==t.code?t:"50014"!=t.code?"3100"==t.code||"3101"==t.code?t:(Object(b.Message)({message:t.repMsg||t.message,type:"error",duration:3e3}),t):void Object(b.MessageBox)({message:"当前登录已失效或异地登录,请重新登录",type:"error",duration:3e3}).then(function(){sessionStorage.clear(),localStorage.clear(),window.location.href="/"}).catch(function(e){})},function(e){var t=e.response.code,i=e.response.data,s="";s=200!=t?"服务器内部错误,请联系管理员":"失败原因:"+i.code+"--"+i.repMsg,Object(b.Message)({message:s,type:"error",duration:5e3})});var k=w;function x(e){return k({url:"auth-service/user/captcha/get",method:"post",data:e})}function S(e){return k({url:"auth-service/user/captcha/check",method:"post",data:e})}var C={name:"VerifySlide",props:{captchaType:{type:String},type:{type:String,default:"1"},mode:{type:String,default:"fixed"},vSpace:{type:Number,default:5},explain:{type:String,default:"向右滑动完成验证"},imgSize:{type:Object,default:function(){return{width:"310px",height:"155px"}}},blockSize:{type:Object,default:function(){return{width:"50px",height:"50px"}}},barSize:{type:Object,default:function(){return{width:"310px",height:"40px"}}}},data:function(){return{secretKey:"",passFlag:"",backImgBase:"",blockBackImgBase:"",backToken:"",startMoveTime:"",endMovetime:"",tipsBackColor:"",tipWords:"",text:"",finishText:"",setSize:{imgHeight:0,imgWidth:0,barHeight:0,barWidth:0},top:0,left:0,moveBlockLeft:void 0,leftBarWidth:void 0,moveBlockBackgroundColor:void 0,leftBarBorderColor:"#ddd",iconColor:void 0,iconClass:"icon-right",status:!1,isEnd:!1,showRefresh:!0,transitionLeft:"",transitionWidth:""}},computed:{barArea:function(){return this.$el.querySelector(".verify-bar-area")},resetSize:function(){return f}},methods:{init:function(){var e=this;this.text=this.explain,this.getPictrue(),this.$nextTick(function(){var t=e.resetSize(e);for(var i in t)e.$set(e.setSize,i,t[i]);e.$parent.$emit("ready",e)});var t=this;window.removeEventListener("touchmove",function(e){t.move(e)}),window.removeEventListener("mousemove",function(e){t.move(e)}),window.removeEventListener("touchend",function(){t.end()}),window.removeEventListener("mouseup",function(){t.end()}),window.addEventListener("touchmove",function(e){t.move(e)}),window.addEventListener("mousemove",function(e){t.move(e)}),window.addEventListener("touchend",function(){t.end()}),window.addEventListener("mouseup",function(){t.end()})},start:function(e){if((e=e||window.event).touches)t=e.touches[0].pageX;else var t=e.clientX;this.startLeft=Math.floor(t-this.barArea.getBoundingClientRect().left),this.startMoveTime=+new Date,0==this.isEnd&&(this.text="",this.moveBlockBackgroundColor="#337ab7",this.leftBarBorderColor="#337AB7",this.iconColor="#fff",e.stopPropagation(),this.status=!0)},move:function(e){if(e=e||window.event,this.status&&0==this.isEnd){if(e.touches)t=e.touches[0].pageX;else var t=e.clientX;var i=t-this.barArea.getBoundingClientRect().left;i>=this.barArea.offsetWidth-parseInt(parseInt(this.blockSize.width)/2)-2&&(i=this.barArea.offsetWidth-parseInt(parseInt(this.blockSize.width)/2)-2),i<=0&&(i=parseInt(parseInt(this.blockSize.width)/2)),this.moveBlockLeft=i-this.startLeft+"px",this.leftBarWidth=i-this.startLeft+"px"}},end:function(){var e=this;this.endMovetime=+new Date;var t=this;if(this.status&&0==this.isEnd){var i=parseInt((this.moveBlockLeft||"").replace("px",""));i=310*i/parseInt(this.setSize.imgWidth),S({captchaType:this.captchaType,pointJson:this.secretKey?u(l()({x:i,y:5}),this.secretKey):l()({x:i,y:5}),token:this.backToken}).then(function(s){if("0000"==s.repCode){e.moveBlockBackgroundColor="#5cb85c",e.leftBarBorderColor="#5cb85c",e.iconColor="#fff",e.iconClass="icon-check",e.showRefresh=!1,e.isEnd=!0,"pop"==e.mode&&setTimeout(function(){e.$parent.clickShow=!1,e.refresh()},1500),e.passFlag=!0,e.tipWords=((e.endMovetime-e.startMoveTime)/1e3).toFixed(2)+"s验证成功";var o=e.secretKey?u(e.backToken+"---"+l()({x:i,y:5}),e.secretKey):e.backToken+"---"+l()({x:i,y:5});e.$parent.$emit("success",{captchaVerification:o}),setTimeout(function(){e.tipWords="",e.$parent.closeBox()},1e3)}else e.moveBlockBackgroundColor="#d9534f",e.leftBarBorderColor="#d9534f",e.iconColor="#fff",e.iconClass="icon-close",e.passFlag=!1,setTimeout(function(){t.refresh()},1e3),e.$parent.$emit("error",e),e.tipWords="验证失败",setTimeout(function(){e.tipWords=""},1e3)}),this.status=!1}},refresh:function(){var e=this;this.showRefresh=!0,this.finishText="",this.transitionLeft="left .3s",this.moveBlockLeft=0,this.leftBarWidth=void 0,this.transitionWidth="width .3s",this.leftBarBorderColor="#ddd",this.moveBlockBackgroundColor="#fff",this.iconColor="#000",this.iconClass="icon-right",this.isEnd=!1,this.getPictrue(),setTimeout(function(){e.transitionWidth="",e.transitionLeft="",e.text=e.explain},300)},getPictrue:function(){var e=this;x({captchaType:this.captchaType}).then(function(t){"0000"==t.repCode?(e.backImgBase=t.repData.originalImageBase64,e.blockBackImgBase=t.repData.jigsawImageBase64,e.backToken=t.repData.token,e.secretKey=t.repData.secretKey):e.tipWords=t.repMsg})}},watch:{type:{immediate:!0,handler:function(){this.init()}}},mounted:function(){this.$el.onselectstart=function(){return!1}}},_=i("KHd+"),T=Object(_.a)(C,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{position:"relative"}},["2"===e.type?i("div",{staticClass:"verify-img-out",style:{height:parseInt(e.setSize.imgHeight)+e.vSpace+"px"}},[i("div",{staticClass:"verify-img-panel",style:{width:e.setSize.imgWidth,height:e.setSize.imgHeight}},[i("img",{staticStyle:{width:"100%",height:"100%",display:"block"},attrs:{src:"data:image/png;base64,"+e.backImgBase,alt:""}}),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.showRefresh,expression:"showRefresh"}],staticClass:"verify-refresh",on:{click:e.refresh}},[i("i",{staticClass:"iconfont icon-refresh"})]),e._v(" "),i("transition",{attrs:{name:"tips"}},[e.tipWords?i("span",{staticClass:"verify-tips",class:e.passFlag?"suc-bg":"err-bg"},[e._v(e._s(e.tipWords))]):e._e()])],1)]):e._e(),e._v(" "),i("div",{staticClass:"verify-bar-area",style:{width:e.setSize.imgWidth,height:e.barSize.height,"line-height":e.barSize.height}},[i("span",{staticClass:"verify-msg",domProps:{textContent:e._s(e.text)}}),e._v(" "),i("div",{staticClass:"verify-left-bar",style:{width:void 0!==e.leftBarWidth?e.leftBarWidth:e.barSize.height,height:e.barSize.height,"border-color":e.leftBarBorderColor,transaction:e.transitionWidth}},[i("span",{staticClass:"verify-msg",domProps:{textContent:e._s(e.finishText)}}),e._v(" "),i("div",{staticClass:"verify-move-block",style:{width:e.barSize.height,height:e.barSize.height,"background-color":e.moveBlockBackgroundColor,left:e.moveBlockLeft,transition:e.transitionLeft},on:{touchstart:e.start,mousedown:e.start}},[i("i",{class:["verify-icon iconfont",e.iconClass],style:{color:e.iconColor}}),e._v(" "),"2"===e.type?i("div",{staticClass:"verify-sub-block",style:{width:Math.floor(47*parseInt(e.setSize.imgWidth)/310)+"px",height:e.setSize.imgHeight,top:"-"+(parseInt(e.setSize.imgHeight)+e.vSpace)+"px","background-size":e.setSize.imgWidth+" "+e.setSize.imgHeight}},[i("img",{staticStyle:{width:"100%",height:"100%",display:"block"},attrs:{src:"data:image/png;base64,"+e.blockBackImgBase,alt:""}})]):e._e()])])])])},[],!1,null,null,null);T.options.__file="VerifySlide.vue";var z=T.exports,B=i("P2sY"),P=i.n(B),$={name:"VerifyPoints",props:{mode:{type:String,default:"fixed"},captchaType:{type:String},vSpace:{type:Number,default:5},imgSize:{type:Object,default:function(){return{width:"310px",height:"155px"}}},barSize:{type:Object,default:function(){return{width:"310px",height:"40px"}}}},data:function(){return{secretKey:"",checkNum:3,fontPos:[],checkPosArr:[],num:1,pointBackImgBase:"",poinTextList:[],backToken:"",setSize:{imgHeight:0,imgWidth:0,barHeight:0,barWidth:0},tempPoints:[],text:"",barAreaColor:void 0,barAreaBorderColor:void 0,showRefresh:!0,bindingClick:!0}},computed:{resetSize:function(){return f}},methods:{init:function(){var e=this;this.fontPos.splice(0,this.fontPos.length),this.checkPosArr.splice(0,this.checkPosArr.length),this.num=1,this.getPictrue(),this.$nextTick(function(){e.setSize=e.resetSize(e),e.$parent.$emit("ready",e)})},canvasClick:function(e){var t=this;this.checkPosArr.push(this.getMousePos(this.$refs.canvas,e)),this.num==this.checkNum&&(this.num=this.createPoint(this.getMousePos(this.$refs.canvas,e)),this.checkPosArr=this.pointTransfrom(this.checkPosArr,this.setSize),setTimeout(function(){var e=t.secretKey?u(t.backToken+"---"+l()(t.checkPosArr),t.secretKey):t.backToken+"---"+l()(t.checkPosArr);S({captchaType:t.captchaType,pointJson:t.secretKey?u(l()(t.checkPosArr),t.secretKey):l()(t.checkPosArr),token:t.backToken}).then(function(i){"0000"==i.repCode?(t.barAreaColor="#4cae4c",t.barAreaBorderColor="#5cb85c",t.text="验证成功",t.bindingClick=!1,"pop"==t.mode&&setTimeout(function(){t.$parent.clickShow=!1,t.refresh()},1500),t.$parent.$emit("success",{captchaVerification:e})):(t.$parent.$emit("error",t),t.barAreaColor="#d9534f",t.barAreaBorderColor="#d9534f",t.text="验证失败",setTimeout(function(){t.refresh()},700))})},400)),this.num="A"&&t<="Z"},showPwd:function(){var e=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick(function(){e.$refs.password.focus()})},useVerify:function(){var e=this;this.$refs.loginForm.validate(function(t){if(!t)return!1;e.$refs.verify.show()})},verifylogin:function(e){this.loginForm.verifyCode=e.captchaVerification,this.loginForm.verifyCode&&this.loginApi()},handleLogin:function(){var e=this;this.$refs.loginForm.validate(function(t){if(!t)return!1;e.loading=!0,e.needCaptcha?e.useVerify():e.loginApi()})},loginApi:function(){var e=this;return c()(n.a.mark(function t(){var i,s,o,r;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i={loginName:e.loginForm.loginName,password:Object(E.a)(e.loginForm.password),verifyCode:""},t.next=3,Object(M.a)(i);case 3:if(s=t.sent,o=s.code,r=s.data,e.loading=!1,"200"==o){t.next=9;break}return t.abrupt("return");case 9:Object(V.j)(r.token),Object(V.h)(r),e.rememberPsw&&N.a.set("u_"+e.loginForm.loginName,Object(j.b)(e.loginForm.password),{expires:15}),r&&r.captcha?e.needCaptcha=!0:(e.needCaptcha=!1,e.$router.push({path:e.redirect||"/report",query:e.otherQuery}));case 13:case"end":return t.stop()}},t,e)}))()},getOtherQuery:function(e){return o()(e).reduce(function(t,i){return"redirect"!==i&&(t[i]=e[i]),t},{})}}},D=(i("Ruor"),Object(_.a)(H,function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{directives:[{name:"loading",rawName:"v-loading",value:!0,expression:"true"}],staticClass:"login_container",attrs:{"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.8)"}},[s("div",{staticClass:"login_contant"},[s("img",{staticClass:"login_img",attrs:{src:i("VfwX"),alt:"image"}}),e._v(" "),s("el-form",{ref:"loginForm",staticClass:"login_form",attrs:{model:e.loginForm,rules:e.loginRules,autocomplete:"on","label-position":"left"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin(t)}}},[s("div",{staticClass:"title_container"},[s("h3",{staticClass:"title"},[e._v("\n HELLO,\n "),s("br"),e._v(" "),s("p",{staticClass:"title_name"},[e._v("在线大屏")])])]),e._v(" "),s("div",{staticClass:"form_fields"},[s("i",{style:{top:e.activeTop+"%"}}),e._v(" "),s("b"),e._v(" "),s("div",[s("p",[e._v("用户名")]),e._v(" "),s("el-form-item",{attrs:{prop:"loginName"}},[s("el-input",{ref:"loginName",attrs:{placeholder:"用户名",name:"loginName",type:"text",tabindex:"1",autocomplete:"on"},on:{focus:function(t){return e.setTop("0")},change:e.getPsw},model:{value:e.loginForm.loginName,callback:function(t){e.$set(e.loginForm,"loginName",t)},expression:"loginForm.loginName"}})],1)],1),e._v(" "),s("div",[s("p",[e._v("密码")]),e._v(" "),s("input",{staticClass:"take",attrs:{name:"password",type:"password",autocomplete:"off"}}),e._v(" "),s("el-tooltip",{attrs:{content:"Caps lock is On",placement:"right",manual:""},model:{value:e.capsTooltip,callback:function(t){e.capsTooltip=t},expression:"capsTooltip"}},[s("el-form-item",{attrs:{prop:"password"}},[s("el-input",{key:e.passwordType,ref:"password",attrs:{type:e.passwordType,placeholder:"用户密码",name:"password",tabindex:"2",autocomplete:"on"},on:{blur:function(t){e.capsTooltip=!1},focus:function(t){return e.setTop("50")}},nativeOn:{keyup:function(t){return e.checkCapslock(t)}},model:{value:e.loginForm.password,callback:function(t){e.$set(e.loginForm,"password",t)},expression:"loginForm.password"}}),e._v(" "),s("span",{staticClass:"show_pwd",on:{click:e.showPwd}},[s("i",{staticClass:"el-icon-view"})])],1)],1)],1)]),e._v(" "),s("div",{staticClass:"control"},[s("div",{staticClass:"remember"},[s("input",{directives:[{name:"model",rawName:"v-model",value:e.rememberPsw,expression:"rememberPsw"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.rememberPsw)?e._i(e.rememberPsw,null)>-1:e.rememberPsw},on:{change:function(t){var i=e.rememberPsw,s=t.target,o=!!s.checked;if(Array.isArray(i)){var r=e._i(i,null);s.checked?r<0&&(e.rememberPsw=i.concat([null])):r>-1&&(e.rememberPsw=i.slice(0,r).concat(i.slice(r+1)))}else e.rememberPsw=o}}}),e._v(" "),s("p",[e._v("记住密码")])])]),e._v(" "),s("el-button",{staticClass:"login_btn",attrs:{loading:e.loading,type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin(t)}}},[e._v("登录")])],1)],1),e._v(" "),e.needCaptcha?s("Verify",{ref:"verify",attrs:{"captcha-type":"blockPuzzle","img-size":{width:"400px",height:"200px"}},on:{success:e.verifylogin}}):e._e()],1)},[],!1,null,null,null));D.options.__file="login.vue";t.default=D.exports},"7U/o":function(e,t,i){},MXwD:function(e,t,i){},Ruor:function(e,t,i){"use strict";var s=i("7U/o");i.n(s).a},VfwX:function(e,t,i){e.exports=i.p+"static/img/login.561e089.jpg"},q8np:function(e,t,i){"use strict";var s=i("MXwD");i.n(s).a}}]); \ No newline at end of file diff --git a/dist/static/js/chunk-2194.27dbc78d.js b/dist/static/js/chunk-2194.27dbc78d.js deleted file mode 100644 index a1714e2..0000000 --- a/dist/static/js/chunk-2194.27dbc78d.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2194"],{"5Z1L":function(e,t,i){},lAHl:function(e,t,i){"use strict";i.r(t);var l=i("t3Un");function a(e){return Object(l.a)({url:"/file/pageList",method:"GET",params:e})}function n(e){return Object(l.a)({url:"/file",method:"post",data:e})}function r(e){return Object(l.a)({url:"/file/delete/batch",method:"POST",data:e})}function o(e){return Object(l.a)({url:"/file",method:"put",data:e})}function u(e){return Object(l.a)({url:"/file/"+e.id,method:"get",params:e})}var d=i("X4fA"),s={name:"File",components:{anjiCrud:i("sYqA").default},data:function(){var e=this;return{selectedList:[],uploadUrl:"http://wms.picaiba.com/report-ui/file/upload",crudOption:{title:"文件管理",labelWidth:"120px",queryFormFields:[{inputType:"input",label:"文件路径",field:"filePath"}],tableButtons:[{label:"删除",type:"danger",permission:"fileManage:delete",icon:"el-icon-delete",plain:!1,click:function(){return e.$refs.listPage.handleDeleteBatch()}}],rowButtons:[{label:"复制url",click:this.copyUrlPath},{label:"下载",click:this.customButtom},{label:"删除",permission:"fileManage:delete",click:function(t){return e.$refs.listPage.handleDeleteBatch(t)}}],buttons:{query:{api:a,permission:"fileManage:query",sort:"create_time",order:"DESC"},queryByPrimarykey:{api:u,permission:"fileManage:query"},add:{api:n,permission:"fileManage:upload",isShow:!1},delete:{api:r,permission:"fileManage:delete"},edit:{api:o,permission:"fileManage:update",isShow:!1},rowButtonsWidth:150},columns:[{label:"",field:"id",primaryKey:!0,tableHide:!0,editHide:!0},{label:"图片缩略图",field:"urlPath",columnType:"imgPreview",editHide:!0,placeholder:"",disabled:!1},{label:"文件标识",placeholder:"",field:"fileId",editField:"fileId",tableHide:!0,inputType:"input",rules:[{min:1,max:64,message:"不超过64个字符",trigger:"blur"}],disabled:!1},{label:"文件类型",placeholder:"",field:"fileType",editField:"fileType",inputType:"input",rules:[{min:1,max:1024,message:"不超过1024个字符",trigger:"blur"}],disabled:!1},{label:"文件路径",placeholder:"",field:"filePath",editField:"filePath",inputType:"input",rules:[{min:1,max:1024,message:"不超过1024个字符",trigger:"blur"}],disabled:!1},{label:"url路径",placeholder:"",field:"urlPath",editField:"urlPath",inputType:"input",rules:[{min:1,max:1024,message:"不超过1024个字符",trigger:"blur"}],disabled:!1},{label:"内容说明",placeholder:"",field:"fileInstruction",editField:"fileInstruction",inputType:"input",rules:[{min:1,max:1024,message:"不超过1024个字符",trigger:"blur"}],disabled:!1},{label:"创建人",field:"createByView",columnType:"expand",inputType:"input",disabled:!0},{label:"创建时间",field:"createTime",columnType:"expand",inputType:"input",disabled:!0}]}}},computed:{headers:function(){return{Authorization:Object(d.f)()}}},methods:{handleUpload:function(e,t,i){this.$refs.listPage.handleQueryForm(),this.$refs.upload.clearFiles()},handleError:function(){this.$message({message:"上传失败!",type:"error"})},downloadFile:function(e){window.open(e.urlPath)},customButtom:function(e){this.downloadFile(e)},copyUrlPath:function(e){this.copyToClip(e.urlPath),this.$message({message:"已将url路径复制至剪切板!",type:"success"})},copyToClip:function(e,t){var i=document.createElement("input");i.setAttribute("value",e),document.body.appendChild(i),i.select(),document.execCommand("copy"),document.body.removeChild(i)}}},p=(i("wl5f"),i("KHd+")),c=Object(p.a)(s,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("anji-crud",{ref:"listPage",attrs:{option:e.crudOption},scopedSlots:e._u([{key:"tableButtons",fn:function(){return[i("el-upload",{ref:"upload",staticClass:"el-upload",attrs:{action:e.uploadUrl,headers:e.headers,"on-success":e.handleUpload,"on-error":e.handleError,"show-file-list":!1,limit:1}},[i("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"fileManage:upload",expression:"'fileManage:upload'"}],attrs:{type:"primary",icon:"el-icon"}},[e._v("文件上传")])],1)]},proxy:!0},{key:"edit",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.copyUrlPath(t)}}},[e._v("复制url")])]}},{key:"rowButton",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.customButtom(t)}}},[e._v("下载")])]}}])})},[],!1,null,"b39c21a8",null);c.options.__file="index.vue";t.default=c.exports},wl5f:function(e,t,i){"use strict";var l=i("5Z1L");i.n(l).a}}]); \ No newline at end of file diff --git a/dist/static/js/chunk-2194.ef9f4176.js b/dist/static/js/chunk-2194.ef9f4176.js new file mode 100644 index 0000000..e27a71c --- /dev/null +++ b/dist/static/js/chunk-2194.ef9f4176.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2194"],{"5Z1L":function(e,t,i){},lAHl:function(e,t,i){"use strict";i.r(t);var l=i("t3Un");function a(e){return Object(l.a)({url:"/file/pageList",method:"GET",params:e})}function n(e){return Object(l.a)({url:"/file",method:"post",data:e})}function r(e){return Object(l.a)({url:"/file/delete/batch",method:"POST",data:e})}function o(e){return Object(l.a)({url:"/file",method:"put",data:e})}function u(e){return Object(l.a)({url:"/file/"+e.id,method:"get",params:e})}var d=i("X4fA"),s={name:"File",components:{anjiCrud:i("sYqA").default},data:function(){var e=this;return{selectedList:[],uploadUrl:"http://report.picaiba.com/api//file/upload",crudOption:{title:"文件管理",labelWidth:"120px",queryFormFields:[{inputType:"input",label:"文件路径",field:"filePath"}],tableButtons:[{label:"删除",type:"danger",permission:"fileManage:delete",icon:"el-icon-delete",plain:!1,click:function(){return e.$refs.listPage.handleDeleteBatch()}}],rowButtons:[{label:"复制url",click:this.copyUrlPath},{label:"下载",click:this.customButtom},{label:"删除",permission:"fileManage:delete",click:function(t){return e.$refs.listPage.handleDeleteBatch(t)}}],buttons:{query:{api:a,permission:"fileManage:query",sort:"create_time",order:"DESC"},queryByPrimarykey:{api:u,permission:"fileManage:query"},add:{api:n,permission:"fileManage:upload",isShow:!1},delete:{api:r,permission:"fileManage:delete"},edit:{api:o,permission:"fileManage:update",isShow:!1},rowButtonsWidth:150},columns:[{label:"",field:"id",primaryKey:!0,tableHide:!0,editHide:!0},{label:"图片缩略图",field:"urlPath",columnType:"imgPreview",editHide:!0,placeholder:"",disabled:!1},{label:"文件标识",placeholder:"",field:"fileId",editField:"fileId",tableHide:!0,inputType:"input",rules:[{min:1,max:64,message:"不超过64个字符",trigger:"blur"}],disabled:!1},{label:"文件类型",placeholder:"",field:"fileType",editField:"fileType",inputType:"input",rules:[{min:1,max:1024,message:"不超过1024个字符",trigger:"blur"}],disabled:!1},{label:"文件路径",placeholder:"",field:"filePath",editField:"filePath",inputType:"input",rules:[{min:1,max:1024,message:"不超过1024个字符",trigger:"blur"}],disabled:!1},{label:"url路径",placeholder:"",field:"urlPath",editField:"urlPath",inputType:"input",rules:[{min:1,max:1024,message:"不超过1024个字符",trigger:"blur"}],disabled:!1},{label:"内容说明",placeholder:"",field:"fileInstruction",editField:"fileInstruction",inputType:"input",rules:[{min:1,max:1024,message:"不超过1024个字符",trigger:"blur"}],disabled:!1},{label:"创建人",field:"createByView",columnType:"expand",inputType:"input",disabled:!0},{label:"创建时间",field:"createTime",columnType:"expand",inputType:"input",disabled:!0}]}}},computed:{headers:function(){return{Authorization:Object(d.f)()}}},methods:{handleUpload:function(e,t,i){this.$refs.listPage.handleQueryForm(),this.$refs.upload.clearFiles()},handleError:function(){this.$message({message:"上传失败!",type:"error"})},downloadFile:function(e){window.open(e.urlPath)},customButtom:function(e){this.downloadFile(e)},copyUrlPath:function(e){this.copyToClip(e.urlPath),this.$message({message:"已将url路径复制至剪切板!",type:"success"})},copyToClip:function(e,t){var i=document.createElement("input");i.setAttribute("value",e),document.body.appendChild(i),i.select(),document.execCommand("copy"),document.body.removeChild(i)}}},p=(i("wl5f"),i("KHd+")),c=Object(p.a)(s,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("anji-crud",{ref:"listPage",attrs:{option:e.crudOption},scopedSlots:e._u([{key:"tableButtons",fn:function(){return[i("el-upload",{ref:"upload",staticClass:"el-upload",attrs:{action:e.uploadUrl,headers:e.headers,"on-success":e.handleUpload,"on-error":e.handleError,"show-file-list":!1,limit:1}},[i("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"fileManage:upload",expression:"'fileManage:upload'"}],attrs:{type:"primary",icon:"el-icon"}},[e._v("文件上传")])],1)]},proxy:!0},{key:"edit",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.copyUrlPath(t)}}},[e._v("复制url")])]}},{key:"rowButton",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.customButtom(t)}}},[e._v("下载")])]}}])})},[],!1,null,"b39c21a8",null);c.options.__file="index.vue";t.default=c.exports},wl5f:function(e,t,i){"use strict";var l=i("5Z1L");i.n(l).a}}]); \ No newline at end of file diff --git a/dist/static/js/chunk-25a2.be76961e.js b/dist/static/js/chunk-25a2.f4a485ea.js similarity index 99% rename from dist/static/js/chunk-25a2.be76961e.js rename to dist/static/js/chunk-25a2.f4a485ea.js index 3f011e5..c03f843 100644 --- a/dist/static/js/chunk-25a2.be76961e.js +++ b/dist/static/js/chunk-25a2.f4a485ea.js @@ -3,4 +3,4 @@ Copyright (c) 2014 Taylor Hakes Copyright (c) 2014 Forbes Lindesay */ -!function(e,t){t()}(0,function(){"use strict";function t(e){var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){return t.reject(n)})})}var n=setTimeout;function i(){}function o(e){if(!(this instanceof o))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],l(e,this)}function r(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,o._immediateFn(function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var i;try{i=n(e._value)}catch(e){return void a(t.promise,e)}s(t.promise,i)}else(1===e._state?s:a)(t.promise,e._value)})):e._deferreds.push(t)}function s(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof o)return e._state=3,e._value=t,void u(e);if("function"==typeof n)return void l(function(e,t){return function(){e.apply(t,arguments)}}(n,t),e)}e._state=1,e._value=t,u(e)}catch(t){a(e,t)}}function a(e,t){e._state=2,e._value=t,u(e)}function u(e){2===e._state&&0===e._deferreds.length&&o._immediateFn(function(){e._handled||o._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;tw;w++)if((h||w in _)&&(m=y(g=_[w],w,v),e))if(n)C[w]=m;else if(m)switch(e){case 3:return!0;case 5:return g;case 6:return w;case 2:C.push(g)}else if(c)return!1;return d?-1:l||c?c:C}}},VPJY:function(e,t,n){},Vtyv:function(e,t,n){},VvMK:function(e,t,n){},Wu5q:function(e,t,n){"use strict";var i=n("2faE").f,o=n("oVml"),r=n("XJU/"),s=n("2GTP"),a=n("EXMj"),u=n("oioR"),l=n("MPFp"),c=n("UO39"),d=n("TJWN"),h=n("jmDH"),p=n("6/1s").fastKey,f=n("n3ko"),g=h?"_s":"size",m=function(e,t){var n,i=p(t);if("F"!==i)return e._i[i];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,l){var c=e(function(e,i){a(e,c,t,"_i"),e._t=t,e._i=o(null),e._f=void 0,e._l=void 0,e[g]=0,void 0!=i&&u(i,n,e[l],e)});return r(c.prototype,{clear:function(){for(var e=f(this,t),n=e._i,i=e._f;i;i=i.n)i.r=!0,i.p&&(i.p=i.p.n=void 0),delete n[i.i];e._f=e._l=void 0,e[g]=0},delete:function(e){var n=f(this,t),i=m(n,e);if(i){var o=i.n,r=i.p;delete n._i[i.i],i.r=!0,r&&(r.n=o),o&&(o.p=r),n._f==i&&(n._f=o),n._l==i&&(n._l=r),n[g]--}return!!i},forEach:function(e){f(this,t);for(var n,i=s(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(i(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!m(f(this,t),e)}}),h&&i(c.prototype,"size",{get:function(){return f(this,t)[g]}}),c},def:function(e,t,n){var i,o,r=m(e,t);return r?r.v=n:(e._l=r={i:o=p(t,!0),k:t,v:n,p:i=e._l,n:void 0,r:!1},e._f||(e._f=r),i&&(i.n=r),e[g]++,"F"!==o&&(e._i[o]=r)),e},getEntry:m,setStrong:function(e,t,n){l(e,t,function(e,n){this._t=f(e,t),this._k=n,this._l=void 0},function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?c(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,c(1))},n?"entries":"values",!n,!0),d(t)}}},XNtB:function(e,t,n){},XXBq:function(e,t,n){},YHy6:function(e,t,n){},aPfg:function(e,t,n){"use strict";var i=n("Y7ZC"),o=n("eaoh"),r=n("2GTP"),s=n("oioR");e.exports=function(e){i(i.S,e,{from:function(e){var t,n,i,a,u=arguments[1];return o(this),(t=void 0!==u)&&o(u),void 0==e?new this:(n=[],t?(i=0,a=r(u,arguments[2],2),s(e,!1,function(e){n.push(a(e,i++))})):s(e,!1,n.push,n),new this(n))}})}},cHUd:function(e,t,n){"use strict";var i=n("Y7ZC");e.exports=function(e){i(i.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},"ci+S":function(e,t,n){},cl4r:function(e,t,n){},dFcq:function(e,t,n){},dL40:function(e,t,n){var i=n("Y7ZC");i(i.P+i.R,"Set",{toJSON:n("8iia")("Set")})},e1ni:function(e,t,n){},eC1c:function(e,t,n){},eizg:function(e,t,n){},epnl:function(e,t,n){},eq1K:function(e,t,n){},hHjc:function(e,t,n){},"i/Rh":function(e,t,n){},iJk1:function(e,t,n){},j5TT:function(e,t,n){e.exports=function(e){return function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=3)}([function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=function(e){return e&&e.__esModule?e:{default:e}}(i),r=window.CodeMirror||o.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),i=1;i/?";var a=function(e){void 0===e&&(e="");for(var t="(-?\\d*\\.\\d\\w*)|([^",n=0,i=s;n=0||(t+="\\"+o)}return t+="\\s]+)",new RegExp(t,"g")}();function u(e){var t=a;if(e&&e instanceof RegExp)if(e.global)t=e;else{var n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}function l(e,t,n,i){t.lastIndex=0;var o=t.exec(n);if(!o)return null;var r=o[0].indexOf(" ")>=0?function(e,t,n,i){var o,r=e-1-i;for(t.lastIndex=0;o=t.exec(n);){var s=o.index||0;if(s>r)return null;if(t.lastIndex>=r)return{word:o[0],startColumn:i+1+s,endColumn:i+1+t.lastIndex}}return null}(e,t,n,i):function(e,t,n,i){var o,r=e-1-i,s=n.lastIndexOf(" ",r-1)+1;for(t.lastIndex=s;o=t.exec(n);){var a=o.index||0;if(a<=r&&t.lastIndex>=r)return{word:o[0],startColumn:i+1+a,endColumn:i+1+t.lastIndex}}return null}(e,t,n,i);return t.lastIndex=0,r}var c=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),d=function(){return(d=Object.assign||function(e){for(var t,n=1,i=arguments.length;nn?n:e},t.float=function(e,t){if("number"==typeof e)return e;if(void 0===e)return t;var n=parseFloat(e);return isNaN(n)?t:n},t.prototype.validate=function(e){return this.validationFn(t.float(e,this.defaultValue))},t}(m),b=function(e){function t(t,n,i,o){void 0===o&&(o=void 0);return void 0!==o&&(o.type="string",o.default=i),e.call(this,t,n,i,o)||this}return c(t,e),t.string=function(e,t){return"string"!=typeof e?t:e},t.prototype.validate=function(e){return t.string(e,this.defaultValue)},t}(m),w=function(e){function t(t,n,i,o,r){void 0===r&&(r=void 0);var s=this;return void 0!==r&&(r.type="string",r.enum=o,r.default=i),(s=e.call(this,t,n,i,r)||this)._allowedValues=o,s}return c(t,e),t.stringSet=function(e,t,n){return"string"!=typeof e?t:-1===n.indexOf(e)?t:e},t.prototype.validate=function(e){return t.stringSet(e,this.defaultValue,this._allowedValues)},t}(m),C=function(e){function t(t,n,i,o,r,s,a){void 0===a&&(a=void 0);var u=this;return void 0!==a&&(a.type="string",a.enum=r,a.default=o),(u=e.call(this,t,n,i,a)||this)._allowedValues=r,u._convert=s,u}return c(t,e),t.prototype.validate=function(e){return"string"!=typeof e?this.defaultValue:-1===this._allowedValues.indexOf(e)?this.defaultValue:this._convert(e)},t}(f);var S,L=function(e){function t(){return e.call(this,2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[o("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),o("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader."),o("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:o("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers.")})||this}return c(t,e),t.prototype.validate=function(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue},t.prototype.compute=function(e,t,n){return 0===n?e.accessibilitySupport:n},t}(f),x=function(e){function t(){var t={insertSpace:!0};return e.call(this,13,"comments",t,{"editor.comments.insertSpace":{type:"boolean",default:t.insertSpace,description:o("comments.insertSpace","Controls whether a space character is inserted when commenting.")}})||this}return c(t,e),t.prototype.validate=function(e){if("object"!=typeof e)return this.defaultValue;var t=e;return{insertSpace:v.boolean(t.insertSpace,this.defaultValue.insertSpace)}},t}(f);!function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(S||(S={}));var D=function(e){function t(){return e.call(this,104,[55,26])||this}return c(t,e),t.prototype.compute=function(e,t,n){var i="monaco-editor";return t.get(26)&&(i+=" "+t.get(26)),e.extraEditorClassName&&(i+=" "+e.extraEditorClassName),"default"===t.get(55)?i+=" mouse-default":"copy"===t.get(55)&&(i+=" mouse-copy"),t.get(85)&&(i+=" showUnused"),i},t}(g),N=function(e){function t(){return e.call(this,25,"emptySelectionClipboard",!0,{description:o("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})||this}return c(t,e),t.prototype.compute=function(e,t,n){return n&&e.emptySelectionClipboard},t}(v),k=function(e){function t(){var t={seedSearchStringFromSelection:!0,autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0};return e.call(this,28,"find",t,{"editor.find.seedSearchStringFromSelection":{type:"boolean",default:t.seedSearchStringFromSelection,description:o("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:t.autoFindInSelection,enumDescriptions:[o("editor.find.autoFindInSelection.never","Never turn on Find in selection automatically (default)"),o("editor.find.autoFindInSelection.always","Always turn on Find in selection automatically"),o("editor.find.autoFindInSelection.multiline","Turn on Find in selection automatically when multiple lines of content are selected.")],description:o("find.autoFindInSelection","Controls whether the find operation is carried out on selected text or the entire file in the editor.")},"editor.find.globalFindClipboard":{type:"boolean",default:t.globalFindClipboard,description:o("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:r.e},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:t.addExtraSpaceOnTop,description:o("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")}})||this}return c(t,e),t.prototype.validate=function(e){if("object"!=typeof e)return this.defaultValue;var t=e;return{seedSearchStringFromSelection:v.boolean(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection),autoFindInSelection:"boolean"==typeof e.autoFindInSelection?e.autoFindInSelection?"always":"never":w.stringSet(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:v.boolean(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:v.boolean(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop)}},t}(f),E=function(e){function t(){return e.call(this,35,"fontLigatures",t.OFF,{anyOf:[{type:"boolean",description:o("fontLigatures","Enables/Disables font ligatures.")},{type:"string",description:o("fontFeatureSettings","Explicit font-feature-settings.")}],description:o("fontLigaturesGeneral","Configures font ligatures."),default:!1})||this}return c(t,e),t.prototype.validate=function(e){return void 0===e?this.defaultValue:"string"==typeof e?"false"===e?t.OFF:"true"===e?t.ON:e:Boolean(e)?t.ON:t.OFF},t.OFF='"liga" off, "calt" off',t.ON='"liga" on, "calt" on',t}(f),I=function(e){function t(){return e.call(this,34)||this}return c(t,e),t.prototype.compute=function(e,t,n){return e.fontInfo},t}(g),O=function(e){function t(){return e.call(this,36,"fontSize",Y.fontSize,{type:"number",minimum:6,maximum:100,default:Y.fontSize,description:o("fontSize","Controls the font size in pixels.")})||this}return c(t,e),t.prototype.validate=function(e){var t=y.float(e,this.defaultValue);return 0===t?Y.fontSize:y.clamp(t,6,100)},t.prototype.compute=function(e,t,n){return e.fontInfo.fontSize},t}(m),M=function(e){function t(){var t={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},n={type:"string",enum:["peek","gotoAndPeek","goto"],default:t.multiple,enumDescriptions:[o("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),o("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),o("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]};return e.call(this,41,"gotoLocation",t,{"editor.gotoLocation.multiple":{deprecationMessage:o("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":d({description:o("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},n),"editor.gotoLocation.multipleTypeDefinitions":d({description:o("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},n),"editor.gotoLocation.multipleDeclarations":d({description:o("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},n),"editor.gotoLocation.multipleImplementations":d({description:o("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},n),"editor.gotoLocation.multipleReferences":d({description:o("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},n),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:t.alternativeDefinitionCommand,description:o("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:t.alternativeTypeDefinitionCommand,description:o("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:t.alternativeDeclarationCommand,description:o("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:t.alternativeImplementationCommand,description:o("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:t.alternativeReferenceCommand,description:o("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})||this}return c(t,e),t.prototype.validate=function(e){var t,n,i,o,r;if("object"!=typeof e)return this.defaultValue;var s=e;return{multiple:w.stringSet(s.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:null!==(t=s.multipleDefinitions)&&void 0!==t?t:w.stringSet(s.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:null!==(n=s.multipleTypeDefinitions)&&void 0!==n?n:w.stringSet(s.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:null!==(i=s.multipleDeclarations)&&void 0!==i?i:w.stringSet(s.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:null!==(o=s.multipleImplementations)&&void 0!==o?o:w.stringSet(s.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:null!==(r=s.multipleReferences)&&void 0!==r?r:w.stringSet(s.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:b.string(s.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:b.string(s.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:b.string(s.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:b.string(s.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:b.string(s.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}},t}(f),T=function(e){function t(){var t={enabled:!0,delay:300,sticky:!0};return e.call(this,44,"hover",t,{"editor.hover.enabled":{type:"boolean",default:t.enabled,description:o("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:t.delay,description:o("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:t.sticky,description:o("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")}})||this}return c(t,e),t.prototype.validate=function(e){if("object"!=typeof e)return this.defaultValue;var t=e;return{enabled:v.boolean(t.enabled,this.defaultValue.enabled),delay:_.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:v.boolean(t.sticky,this.defaultValue.sticky)}},t}(f),P=function(e){function t(){return e.call(this,107,[40,48,30,54,78,50])||this}return c(t,e),t.prototype.compute=function(e,n,i){return t.computeLayout(n,{outerWidth:e.outerWidth,outerHeight:e.outerHeight,lineHeight:e.fontInfo.lineHeight,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})},t.computeLayout=function(e,t){var n,i=0|t.outerWidth,o=0|t.outerHeight,r=0|t.lineHeight,s=0|t.lineNumbersDigitCount,a=t.typicalHalfwidthCharacterWidth,u=t.maxDigitWidth,l=t.pixelRatio,c=e.get(40),d=0!==e.get(50).renderType,h=0|e.get(51),p=e.get(54),f=p.enabled,g=p.side,m=p.renderCharacters,v=l>=2?Math.round(2*p.scale):p.scale,y=0|p.maxColumn,b=e.get(78),w=0|b.verticalScrollbarSize,C=b.verticalHasArrows,S=0|b.arrowSize,L=0|b.horizontalScrollbarSize,x=e.get(48),D=e.get(30);if("string"==typeof x&&/^\d+(\.\d+)?ch$/.test(x)){var N=parseFloat(x.substr(0,x.length-2));n=_.clampedInt(N*a,0,0,1e3)}else n=_.clampedInt(x,0,0,1e3);D&&(n+=16);var k=0;if(d){var E=Math.max(s,h);k=Math.round(E*u)}var I=0;c&&(I=r);var O,M,T,P,R=0,A=R+I,F=A+k,W=F+n,V=i-I-k-n;if(f){var B=v/l;O=m?1:2,(T=Math.max(0,Math.floor((V-w-2)*B/(a+B)))+8)/B>y&&(T=Math.floor(y*B)),P=V-T,"left"===g?(M=0,R+=T,A+=T,F+=T,W+=T):M=i-T-w}else M=0,T=0,O=0,P=V;var H=Math.max(1,Math.floor((P-w-2)/a)),z=C?S:0;return{width:i,height:o,glyphMarginLeft:R,glyphMarginWidth:I,lineNumbersLeft:A,lineNumbersWidth:k,decorationsLeft:F,decorationsWidth:n,contentLeft:W,contentWidth:P,renderMinimap:O,minimapLeft:M,minimapWidth:T,viewportColumn:H,verticalScrollbarWidth:w,horizontalScrollbarHeight:L,overviewRuler:{top:z,width:w,height:o-2*z,right:0}}},t}(g),R=function(e){function t(){var t={enabled:!0};return e.call(this,47,"lightbulb",t,{"editor.lightbulb.enabled":{type:"boolean",default:t.enabled,description:o("codeActions","Enables the code action lightbulb in the editor.")}})||this}return c(t,e),t.prototype.validate=function(e){if("object"!=typeof e)return this.defaultValue;var t=e;return{enabled:v.boolean(t.enabled,this.defaultValue.enabled)}},t}(f),A=function(e){function t(){return e.call(this,49,"lineHeight",Y.lineHeight,0,150,{description:o("lineHeight","Controls the line height. Use 0 to compute the line height from the font size.")})||this}return c(t,e),t.prototype.compute=function(e,t,n){return e.fontInfo.lineHeight},t}(_),F=function(e){function t(){var t={enabled:!0,side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120,scale:1};return e.call(this,54,"minimap",t,{"editor.minimap.enabled":{type:"boolean",default:t.enabled,description:o("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:t.side,description:o("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:t.showSlider,description:o("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:t.scale,minimum:1,maximum:3,description:o("minimap.scale","Scale of content drawn in the minimap.")},"editor.minimap.renderCharacters":{type:"boolean",default:t.renderCharacters,description:o("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:t.maxColumn,description:o("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})||this}return c(t,e),t.prototype.validate=function(e){if("object"!=typeof e)return this.defaultValue;var t=e;return{enabled:v.boolean(t.enabled,this.defaultValue.enabled),side:w.stringSet(t.side,this.defaultValue.side,["right","left"]),showSlider:w.stringSet(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:v.boolean(t.renderCharacters,this.defaultValue.renderCharacters),scale:_.clampedInt(t.scale,1,1,3),maxColumn:_.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}},t}(f);var W=function(e){function t(){var t={enabled:!0,cycle:!1};return e.call(this,64,"parameterHints",t,{"editor.parameterHints.enabled":{type:"boolean",default:t.enabled,description:o("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:t.cycle,description:o("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})||this}return c(t,e),t.prototype.validate=function(e){if("object"!=typeof e)return this.defaultValue;var t=e;return{enabled:v.boolean(t.enabled,this.defaultValue.enabled),cycle:v.boolean(t.cycle,this.defaultValue.cycle)}},t}(f),V=function(e){function t(){return e.call(this,105)||this}return c(t,e),t.prototype.compute=function(e,t,n){return e.pixelRatio},t}(g),B=function(e){function t(){var t=this,n={other:!0,comments:!1,strings:!1};return(t=e.call(this,66,"quickSuggestions",n,{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:n.strings,description:o("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:n.comments,description:o("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:n.other,description:o("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:n,description:o("quickSuggestions","Controls whether suggestions should automatically show up while typing.")})||this).defaultValue=n,t}return c(t,e),t.prototype.validate=function(e){if("boolean"==typeof e)return e;if("object"==typeof e){var t=e,n={other:v.boolean(t.other,this.defaultValue.other),comments:v.boolean(t.comments,this.defaultValue.comments),strings:v.boolean(t.strings,this.defaultValue.strings)};return!!(n.other&&n.comments&&n.strings)||!!(n.other||n.comments||n.strings)&&n}return this.defaultValue},t}(f),H=function(e){function t(){return e.call(this,50,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[o("lineNumbers.off","Line numbers are not rendered."),o("lineNumbers.on","Line numbers are rendered as absolute number."),o("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),o("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:o("lineNumbers","Controls the display of line numbers.")})||this}return c(t,e),t.prototype.validate=function(e){var t=this.defaultValue.renderType,n=this.defaultValue.renderFn;return void 0!==e&&("function"==typeof e?(t=4,n=e):t="interval"===e?3:"relative"===e?2:"on"===e?1:0),{renderType:t,renderFn:n}},t}(f);function z(e){var t=e.get(73);return"editable"===t?e.get(68):"on"!==t}var j=function(e){function t(){var t=[];return e.call(this,77,"rulers",t,{type:"array",items:{type:"number"},default:t,description:o("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})||this}return c(t,e),t.prototype.validate=function(e){if(Array.isArray(e)){for(var t=[],n=0,i=e;n