(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)}}},f=n("4d7F"),p=n.n(f),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 p.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 p.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 p.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")),f={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})}}},p=n("KHd+"),h=Object(p.a)(f,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(p.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(p.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(p.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(p.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(p.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(p.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(p.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(p.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(p.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()(fe,"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()(fe,"isNotNull",function(e){return!this.isNull(e)}),be()(fe,"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()(fe,"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()(fe,"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()?"./"+this.upLoadUrl:".//file/upload"},headers:function(){return{Authorization:Object(pe.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(p.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(pe.f)(),r=Object(pe.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(pe.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 f}),n.d(t,"c",function(){return p}),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 f(e){var t=c();return null==t&&""==t||-1!=t.indexOf(e)||(e=t+","+e),Object(o.c)(l,e)}function p(){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 f}),n.d(t,"d",function(){return p}),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 f(e){return Object(o.a)({url:"dataSet/detailBysetId/"+e,method:"get"})}function p(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:".//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,f=n("EJiy"),p=n.n(f),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:"./",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"]]]);