app.b291e406.js 92 KB

1
  1. (function(e){function t(t){for(var a,i,s=t[0],c=t[1],u=t[2],l=0,d=[];l<s.length;l++)i=s[l],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&d.push(r[i][0]),r[i]=0;for(a in c)Object.prototype.hasOwnProperty.call(c,a)&&(e[a]=c[a]);h&&h(t);while(d.length)d.shift()();return o.push.apply(o,u||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],a=!0,i=1;i<n.length;i++){var s=n[i];0!==r[s]&&(a=!1)}a&&(o.splice(t--,1),e=c(c.s=n[0]))}return e}var a={},i={app:0},r={app:0},o=[];function s(e){return c.p+"static/js/"+({}[e]||e)+"."+{"chunk-0b3ada66":"8c8e0834","chunk-18c845f4":"8bfe6b29","chunk-18dbf8d8":"5fa6a148","chunk-2d0f0f76":"436b9e17","chunk-710b7a7b":"7201cc62","chunk-73a47564":"06bbd235"}[e]+".js"}function c(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,c),n.l=!0,n.exports}c.e=function(e){var t=[],n={"chunk-0b3ada66":1,"chunk-18c845f4":1,"chunk-18dbf8d8":1,"chunk-710b7a7b":1,"chunk-73a47564":1};i[e]?t.push(i[e]):0!==i[e]&&n[e]&&t.push(i[e]=new Promise((function(t,n){for(var a="static/css/"+({}[e]||e)+"."+{"chunk-0b3ada66":"11ea2c29","chunk-18c845f4":"d0a732b1","chunk-18dbf8d8":"6e4a39f3","chunk-2d0f0f76":"31d6cfe0","chunk-710b7a7b":"6e4a39f3","chunk-73a47564":"6e4a39f3"}[e]+".css",r=c.p+a,o=document.getElementsByTagName("link"),s=0;s<o.length;s++){var u=o[s],l=u.getAttribute("data-href")||u.getAttribute("href");if("stylesheet"===u.rel&&(l===a||l===r))return t()}var d=document.getElementsByTagName("style");for(s=0;s<d.length;s++){u=d[s],l=u.getAttribute("data-href");if(l===a||l===r)return t()}var h=document.createElement("link");h.rel="stylesheet",h.type="text/css",h.onload=t,h.onerror=function(t){var a=t&&t.target&&t.target.src||r,o=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");o.code="CSS_CHUNK_LOAD_FAILED",o.request=a,delete i[e],h.parentNode.removeChild(h),n(o)},h.href=r;var f=document.getElementsByTagName("head")[0];f.appendChild(h)})).then((function(){i[e]=0})));var a=r[e];if(0!==a)if(a)t.push(a[2]);else{var o=new Promise((function(t,n){a=r[e]=[t,n]}));t.push(a[2]=o);var u,l=document.createElement("script");l.charset="utf-8",l.timeout=120,c.nc&&l.setAttribute("nonce",c.nc),l.src=s(e);var d=new Error;u=function(t){l.onerror=l.onload=null,clearTimeout(h);var n=r[e];if(0!==n){if(n){var a=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;d.message="Loading chunk "+e+" failed.\n("+a+": "+i+")",d.name="ChunkLoadError",d.type=a,d.request=i,n[1](d)}r[e]=void 0}};var h=setTimeout((function(){u({type:"timeout",target:l})}),12e4);l.onerror=l.onload=u,document.head.appendChild(l)}return Promise.all(t)},c.m=e,c.c=a,c.d=function(e,t,n){c.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},c.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,t){if(1&t&&(e=c(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(c.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)c.d(n,a,function(t){return e[t]}.bind(null,a));return n},c.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return c.d(t,"a",t),t},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.p="/",c.oe=function(e){throw console.error(e),e};var u=window["webpackJsonp"]=window["webpackJsonp"]||[],l=u.push.bind(u);u.push=t,u=u.slice();for(var d=0;d<u.length;d++)t(u[d]);var h=l;o.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){n("db4d"),n("6d93"),e.exports=n("56d7")},"08e1":function(e,t){e.exports={messages:{CN:{home:{name:"首页"}},US:{home:{name:"home"}},HK:{home:{name:"首頁"},demo:{name:"演示頁"},parent1:{name:"父級路由1",demo:{name:"演示頁面1"}},parent2:{name:"父級路由2",demo:{name:"演示頁面2"}},exception:{name:"異常頁",404:{name:"404"},403:{name:"403"},500:{name:"500"}}}}}},"0914":function(e,t,n){},"0fbc":function(e,t,n){"use strict";n.r(t);n("d3b7"),n("3ca3"),n("ddb0");var a=n("bc84"),i=n("c7f3"),r=n("c8c3"),o={mode:"history",routes:[{path:"/login",name:"登录页",component:function(){return n.e("chunk-0b3ada66").then(n.bind(null,"80c1"))}},{path:"*",name:"404",component:function(){return n.e("chunk-18dbf8d8").then(n.bind(null,"a42a"))}},{path:"/403",name:"403",component:function(){return n.e("chunk-710b7a7b").then(n.bind(null,"3f9a"))}},{path:"/",name:"首页",component:a["a"],redirect:"/login",children:[{path:"demo",name:"演示页",meta:{icon:"file-ppt"},component:function(){return n.e("chunk-18c845f4").then(n.bind(null,"757d"))}},{path:"parent1",name:"父级路由1",meta:{icon:"dashboard"},component:i["default"],children:[{path:"demo1",name:"演示页面1",component:function(){return n.e("chunk-18c845f4").then(n.bind(null,"757d"))}}]},{path:"parent2",name:"父级路由2",meta:{icon:"form"},component:r["default"],children:[{path:"demo2",name:"演示页面2",component:function(){return n.e("chunk-18c845f4").then(n.bind(null,"757d"))}}]},{path:"exception",name:"异常页",meta:{icon:"warning"},component:i["default"],children:[{path:"404",name:"Exp404",component:function(){return n.e("chunk-18dbf8d8").then(n.bind(null,"a42a"))}},{path:"403",name:"Exp403",component:function(){return n.e("chunk-710b7a7b").then(n.bind(null,"3f9a"))}},{path:"500",name:"Exp500",component:function(){return n.e("chunk-73a47564").then(n.bind(null,"5827"))}}]},{name:"验权页面",path:"auth/demo",meta:{icon:"file-ppt",authority:{permission:"form",role:"manager"},component:function(){return n.e("chunk-18c845f4").then(n.bind(null,"757d"))}}}]}]};t["default"]=o},"14f5":function(e,t,n){},"1af2":function(e,t){e.exports=NProgress},"1ccf":function(e,t,n){},"1ff8":function(e,t,n){},"21a7":function(e,t,n){},"2d27":function(e,t,n){"use strict";n("95e8")},"39be":function(e,t,n){"use strict";n("a08b")},"4eb0":function(e,t,n){var a={palettes:["#f5222d","#fa541c","#fadb14","#3eaf7c","#13c2c2","#1890ff","#722ed1","#eb2f96"],animates:n("6d94").preset,theme:{mode:{DARK:"dark",LIGHT:"light",NIGHT:"night"}},layout:{SIDE:"side",HEAD:"head"}};e.exports=a},"4ffd":function(e,t,n){e.exports=n.p+"static/img/logo.9652507e.png"},5293:function(e,t,n){},"568b":function(e,t,n){"use strict";n("e68a")},"56d7":function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79d");var a=n("8bbf"),i=n.n(a),r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-config-provider",{attrs:{locale:e.locale,"get-popup-container":e.popContainer}},[n("router-view")],1)},o=[],s=n("5530"),c=n("ca00"),u=n("5880"),l=n.n(u),d=n("9d12"),h=n.n(d),f=n("89a5"),p={name:"App",data:function(){return{locale:{}}},created:function(){var e=this;this.setHtmlTitle(),this.setLanguage(this.lang),Object(c["a"])((function(t){return e.setDevice(t)}))},mounted:function(){this.setWeekModeTheme(this.weekMode)},watch:{weekMode:function(e){this.setWeekModeTheme(e)},lang:function(e){this.setLanguage(e),this.setHtmlTitle()},$route:function(){this.setHtmlTitle()},"theme.mode":function(e){var t=this.$message.loading("您选择了主题模式 ".concat(e,", 正在切换..."));h.a.changeThemeColor(this.theme.color,e).then(t)},"theme.color":function(e){var t=this.$message.loading("您选择了主题色 ".concat(e,", 正在切换..."));h.a.changeThemeColor(e,this.theme.mode).then(t)},layout:function(){window.dispatchEvent(new Event("resize"))}},computed:Object(s["a"])({},Object(u["mapState"])("setting",["layout","theme","weekMode","lang"])),methods:Object(s["a"])(Object(s["a"])({},Object(u["mapMutations"])("setting",["setDevice"])),{},{setWeekModeTheme:function(e){e?document.body.classList.add("week-mode"):document.body.classList.remove("week-mode")},setLanguage:function(e){switch(this.$i18n.locale=e,e){case"CN":this.locale=n("52bd").default;break;case"HK":this.locale=n("c468").default;break;case"US":default:this.locale=n("8b45").default;break}},setHtmlTitle:function(){var e=this.$route,t="/"===e.path?"home.name":Object(f["b"])(e.matched[e.matched.length-1].path);document.title="Admin | "+this.$t(t)},popContainer:function(){return document.getElementById("popContainer")}})},m=p,g=(n("afe7"),n("2877")),b=Object(g["a"])(m,r,o,!1,null,"25ca5c51",null),v=b.exports,y=(n("caad"),n("2532"),n("b0c0"),n("6389")),k=n.n(y);i.a.use(k.a);var x={names:["404","403"],paths:["/login"],includes:function(e){return this.names.includes(e.name)||this.paths.includes(e.path)}};function C(e){var t=e?n("be67").default:n("0fbc").default;return Object(f["a"])(t.routes),new k.a(t)}n("1ccf");var O=n("f23d"),w=n("3654"),j=n("96eb"),S=n.n(j),P=["https://gw.alipayobjects.com/zos/rmsportal/cnrhVkzwxjPwAaCfPbdc.png","https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png","https://gw.alipayobjects.com/zos/rmsportal/gaOngJwsRYRaVAuXXcmB.png","https://gw.alipayobjects.com/zos/rmsportal/WhxKECPNujWoWEFNdnJE.png","https://gw.alipayobjects.com/zos/rmsportal/ubnKSIfAJTxIgXOKlciN.png","https://gw.alipayobjects.com/zos/rmsportal/jZUIxmJycoymBprLOUbT.png"],_=[{CN:"Java工程师 | 蚂蚁金服-计算服务事业群-微信平台部",HK:"Java工程師 | 螞蟻金服-計算服務事業群-微信平台部",US:"Java engineer | Ant financial - Computing services business group - WeChat platform division"},{CN:"前端工程师 | 蚂蚁金服-计算服务事业群-VUE平台",HK:"前端工程師 | 螞蟻金服-計算服務事業群-VUE平台",US:"Front-end engineer | Ant Financial - Computing services business group - VUE platform"},{CN:"前端工程师 | 蚂蚁金服-计算服务事业群-REACT平台",HK:"前端工程師 | 螞蟻金服-計算服務事業群-REACT平台",US:"Front-end engineer | Ant Financial - Computing services business group - REACT platform"},{CN:"产品分析师 | 蚂蚁金服-计算服务事业群-IOS平台部",HK:"產品分析師 | 螞蟻金服-計算服務事業群-IOS平台部",US:"Product analyst | Ant Financial - Computing services business group - IOS platform division"}],$=["ICZER","JACK","LUIS","DAVID"],T=S.a.Random,L=[{CN:"早上好",HK:"早晨啊",US:"Good morning"},{CN:"上午好",HK:"上午好",US:"Good morning"},{CN:"中午好",HK:"中午好",US:"Good afternoon"},{CN:"下午好",HK:"下午好",US:"Good afternoon"},{CN:"晚上好",HK:"晚上好",US:"Good evening"}];T.extend({admin:function(){return this.pick($)},timeFix:function(){var e=new Date,t=e.getHours();return t<9?L[0]:t<=11?L[1]:t<=13?L[2]:t<=20?L[3]:L[4]},avatar:function(){return this.pick(P)},position:function(){return this.pick(_)}});var M=S.a.mock({name:"@ADMIN",avatar:"@AVATAR",address:"@CITY",position:"@POSITION"});S.a.mock("".concat("http://localhost:5000/api","/login"),"post",(function(e){var t=e.body,n={data:{}},a=JSON.parse(t),i=a.name,r=a.password,o=!1;return"admin"===i&&"888888"===r?(o=!0,n.data.permissions=[{id:"queryForm",operation:["add","edit"]}],n.data.roles=[{id:"admin",operation:["add","edit","delete"]}]):"test"===i||"888888"===r?(o=!0,n.data.permissions=[{id:"queryForm",operation:["add","edit"]}],n.data.roles=[{id:"test",operation:["add","edit","delete"]}]):o=!1,o?(n.code=0,n.message=S.a.mock("@TIMEFIX").CN+",欢迎回来",n.data.user=M,n.data.token="Authorization:"+Math.random(),n.data.expireAt=new Date((new Date).getTime()+18e5)):(n.code=-1,n.message="账户名或密码错误(admin/888888 or test/888888)"),n})),S.a.mock("".concat("http://localhost:5000/api","/routes"),"get",(function(){var e={code:0,data:[{router:"root",children:["demo",{router:"parent1",children:[{router:"demo",name:"demo1",authority:{permission:"demo",role:"admin"}}]},{router:"parent2",children:[{router:"demo",name:"demo2"}]},{router:"exception",children:["exp404","exp403","exp500"]},{router:"demo",icon:"file-ppt",path:"auth/demo",name:"验权页面",authority:{permission:"form",role:"manager"}}]}]};return e})),S.a.setup({timeout:"300-600"});var E={namespaced:!0,state:{user:void 0,permissions:null,roles:null,routesConfig:null},getters:{user:function(e){if(!e.user)try{var t=localStorage.getItem("admin.user");"undefined"!=t&&(e.user=JSON.parse(t))}catch(n){console.error(n)}return e.user},permissions:function(e){if(!e.permissions)try{var t=localStorage.getItem("admin.permissions");console.info("localStorage permissions",t),"undefined"!=t?(e.permissions=JSON.parse(t),e.permissions=e.permissions?e.permissions:[]):e.permissions=[]}catch(n){console.error(n.message)}return e.permissions},roles:function(e){if(!e.roles)try{var t=localStorage.getItem("admin.roles");"undefined"!=t?(e.roles=JSON.parse(t),e.roles=e.roles?e.roles:[]):e.roles=[]}catch(n){console.error(n.message)}return e.roles},routesConfig:function(e){if(!e.routesConfig)try{var t=localStorage.getItem("admin.routes");"undefined"!=t?(e.routesConfig=JSON.parse(t),e.routesConfig=e.routesConfig?e.routesConfig:[]):e.routesConfig=[]}catch(n){console.error(n.message)}return e.routesConfig}},mutations:{setUser:function(e,t){e.user=t,localStorage.setItem("admin.user",JSON.stringify(t))},setPermissions:function(e,t){e.permissions=t,localStorage.setItem("admin.permissions",JSON.stringify(t))},setRoles:function(e,t){e.roles=t,localStorage.setItem("admin.roles",JSON.stringify(t))},setRoutesConfig:function(e,t){e.routesConfig=t,localStorage.setItem("admin.routes",JSON.stringify(t))}}},A=(n("d81d"),n("7db0"),n("f121")),H=n.n(A),I=n("6364"),N=n("79fa"),R=n("b85c"),K=n("2909"),B=n("53ca");n("c740"),n("99af"),n("4de4");function D(e,t){var n="*";return"string"===typeof e?n=e:"object"===Object(B["a"])(e)&&(n=e.permission),"*"===n||t&&-1!==t.findIndex((function(e){return e===n||e.id===n}))}function q(e,t){var n=void 0;return"object"===Object(B["a"])(e)&&(n=e.role),"*"===e||F(n,t)}function F(e,t){return!!e&&(Array.isArray(e)?-1!==t.findIndex((function(t){return-1!==e.findIndex((function(e){return e===t||e===t.id}))})):-1!==t.findIndex((function(t){return t===e||t.id===e})))}function W(e,t,n){var a,i=[].concat(Object(K["a"])(e.meta.pAuthorities),[e.meta.authority]),r=Object(R["a"])(i);try{for(r.s();!(a=r.n()).done;){var o=a.value;if(!D(o,t)&&!q(o,n))return!1}}catch(s){r.e(s)}finally{r.f()}return!0}function U(e,t,n){return e.filter((function(e){return!(e.meta&&void 0===e.meta.invisible&&!W(e,t,n))&&(e.children&&e.children.length>0&&(e.children=U(e.children,t,n)),!0)}))}var z=n("cd3f"),G=n.n(z),J=Object(d["getLocalSetting"])(!0),V=sessionStorage.getItem("admin.tabs.titles"),X=V&&JSON.parse(V)||[],Y={namespaced:!0,state:Object(s["a"])(Object(s["a"])({isMobile:!1,animates:I["ADMIN"].animates,palettes:I["ADMIN"].palettes,pageMinHeight:0,menuData:[],activatedFirst:void 0,customTitles:X},H.a),J),getters:{menuData:function(e,t,n){if(e.filterMenu){var a=n.account,i=a.permissions,r=a.roles;return U(G()(e.menuData),i,r)}return e.menuData},firstMenu:function(e,t){var n=t.menuData;return n.length>0&&!n[0].fullPath&&Object(N["a"])(n),n.map((function(e){var t=Object(s["a"])({},e);return delete t.children,t}))},subMenu:function(e){var t=e.menuData,n=e.activatedFirst;t.length>0&&!t[0].fullPath&&Object(N["a"])(t);var a=t.find((function(e){return e.fullPath===n}));return a&&a.children||[]}},mutations:{setDevice:function(e,t){e.isMobile=t},setTheme:function(e,t){e.theme=t},setLayout:function(e,t){e.layout=t},setMultiPage:function(e,t){e.multiPage=t},setAnimate:function(e,t){e.animate=t},setWeekMode:function(e,t){e.weekMode=t},setFixedHeader:function(e,t){e.fixedHeader=t},setFixedSideBar:function(e,t){e.fixedSideBar=t},setLang:function(e,t){e.lang=t},setHideSetting:function(e,t){e.hideSetting=t},correctPageMinHeight:function(e,t){e.pageMinHeight+=t},setMenuData:function(e,t){e.menuData=t},setAsyncRoutes:function(e,t){e.asyncRoutes=t},setPageWidth:function(e,t){e.pageWidth=t},setActivatedFirst:function(e,t){e.activatedFirst=t},setFixedTabs:function(e,t){e.fixedTabs=t},setCustomTitle:function(e,t){var n=t.path,a=t.title;if(a){var i=e.customTitles.find((function(e){return e.path===n}));i?i.title=a:e.customTitles.push({path:n,title:a}),sessionStorage.setItem("admin.tabs.titles",JSON.stringify(e.customTitles))}}}},Z={account:E,setting:Y};i.a.use(l.a);var Q=new l.a.Store({modules:Z}),ee=Q,te=(n("81ca"),n("ac1f"),n("1276"),n("159b"),{STATEMENTS:"s",PHRASAL:"p"}),ne={install:function(e){e.mixin({methods:{$ta:function(e,t){var n=t||te.STATEMENTS,a=e.split("|"),i=this,r=this.$i18n.locale,o="",s="US"==r?" ":"";return a.forEach((function(e){o+=i.$t(e)+s})),a.length>0&&n==te.STATEMENTS&&"US"==r&&(o=o.charAt(0).toUpperCase()+o.toLowerCase().substring(1)),o}}})}},ae=ne,ie=(n("d3b7"),n("25f0"),n("b64b"),function(e,t){return e.find((function(e){return e.id===t.meta.authority.permission}))}),re=function(e,t){var n=t.meta.authority.role;return n?e.filter((function(e){return-1!==n.findIndex((function(t){return t===e.id}))})):[]},oe=function(e){return-1!==e.toString().indexOf("//--auth-inject")},se=function(e,t,n,a,i){var r=e.check,o=e.type;return r&&"function"===typeof r?r.apply(this,[t,n,a,i]):"permission"===o?ce(r,t):"role"===o?ue(r,n):ce(r,t)||ue(r,n)},ce=function(e,t){return t&&t.operation&&-1!==t.operation.indexOf(e)},ue=function(e,t){if(!t)return!1;var n,a=Object(R["a"])(t);try{for(a.s();!(n=a.n()).done;){var i=n.value,r=i.operation;if(r&&-1!==r.indexOf(e))return!0}}catch(o){a.e(o)}finally{a.f()}return!1},le=function(e,t,n){var a=t.arg,i=t.value,r=n.context,o=r.$auth;o&&o(i,a)?he(e):de(e)},de=function(e){"BUTTON"===e.tagName?e.disabled=!0:e.classList.add("disabled"),e.setAttribute("title","无此权限")},he=function(e){e.disabled=!1,e.classList.remove("disabled"),e.removeAttribute("title")},fe={install:function(e){e.directive("auth",{bind:function(e,t,n){setTimeout((function(){return le(e,t,n)}),10)},componentUpdated:function(e,t,n){setTimeout((function(){return le(e,t,n)}),10)},unbind:function(e){he(e)}}),e.mixin({beforeCreate:function(){var e=this;if(this.$options.authorize){var t=this.$options.authorize;Object.keys(t).forEach((function(n){if(e.$options.methods[n]){var a=e.$options.methods[n];if(!oe(a)){var i=t[n];i="string"===typeof i?{check:i}:i;var r=i,o=r.check,s=r.type,c=r.onFailure;e.$options.methods[n]=function(){return this.$auth(o,s)?a.apply(this,arguments):c&&"function"===typeof c?(this["$".concat(o,"Failure")]=c,this["$".concat(o,"Failure")](o)):(this.$message.error("对不起,您没有操作权限:".concat(o)),0)}}}}))}},methods:{$auth:function(e,t){var n=this.$store.getters["account/permissions"],a=this.$store.getters["account/roles"],i=ie(n,this.$route),r=re(a,this.$route);return se.apply(this,[{check:e,type:t},i,r,n,a])}}})}},pe=fe,me={install:function(e){e.mixin({methods:{$closePage:function(e,t){var n=new CustomEvent("page:close",{detail:{closeRoute:e,nextRoute:t}});window.dispatchEvent(n)},$refreshPage:function(e){var t="object"===Object(B["a"])(e)?e.path:e,n=new CustomEvent("page:refresh",{detail:{pageKey:t}});window.dispatchEvent(n)},$openPage:function(e,t){this.$setPageTitle(e,t),this.$router.push(e)},$setPageTitle:function(e,t){if(t){var n="object"===Object(B["a"])(e)?e.path:e;n=n&&n.split("?")[0],this.$store.commit("setting/setCustomTitle",{path:n,title:t})}}},computed:{customTitle:function(){var e=this.$store.state.setting.customTitles,t=this.$route.path.split("?")[0],n=e.find((function(e){return e.path===t}));return n&&n.title}}})}},ge=me,be={install:function(e){e.use(ae),e.use(pe),e.use(ge)}},ve=be,ye=n("b775"),ke=n("1af2"),xe=n.n(ke);xe.a.configure({showSpinner:!1});var Ce=function(e,t,n){xe.a.isStarted()||xe.a.start(),n()},Oe=function(e,t,n,a){var i=a.message;x.includes(e)||Object(ye["b"])()?n():(i.warning("登录已失效,请重新登录"),n({path:"/login"}))},we=function(e,t,n,a){var i=a.store,r=a.message,o=i.getters["account/permissions"],s=i.getters["account/roles"];W(e,o,s)?n():(r.warning("对不起,您无权访问页面: ".concat(e.fullPath,",请联系管理员")),n({path:"/403"}))},je=function(e,t,n,a){var i=a.store,r=function e(t){var n=t[0];return n.children&&0!==n.children.length?e(n.children):n};if("mix"===i.state.setting.layout){var o=i.getters["setting/firstMenu"];if(o.find((function(t){return t.fullPath===e.fullPath}))){i.commit("setting/setActivatedFirst",e.fullPath);var s=i.getters["setting/subMenu"];if(s.length>0){var c=r(s);return n({path:c.fullPath})}}}n()},Se=function(){xe.a.done()},Pe={beforeEach:[Ce,Oe,we,je],afterEach:[Se]},_e=n("be65"),$e=n.n(_e),Te={onFulfilled:function(e,t){var n=t.message;return 401===e.code&&n.error("无此权限"),e},onRejected:function(e,t){var n=t.message,a=e.response;return 401===a.status&&n.error("无此权限"),Promise.reject(e)}},Le={onFulfilled:function(e,t){var n=t.message;return 403===e.code&&n.error("请求被拒绝"),e},onRejected:function(e,t){var n=t.message,a=e.response;return 403===a.status&&n.error("请求被拒绝"),Promise.reject(e)}},Me={onFulfilled:function(e,t){var n=t.message,a=e.url,i=e.xsrfCookieName;return-1===a.indexOf("login")&&i&&!$e.a.get(i)&&n.warning("认证 token 已过期,请重新登录"),e},onRejected:function(e,t){var n=t.message;return n.error(e.message),Promise.reject(e)}},Ee={request:[Me],response:[Te,Le]};function Ae(e){var t=e.router,n=e.store,a=e.i18n,i=e.message;Object(f["f"])({router:t,store:n,i18n:a}),Object(ye["c"])(Ee,{router:t,store:n,i18n:a,message:i}),Object(f["d"])(),Object(f["c"])(Pe,{router:t,store:n,i18n:a,message:i})}var He=Ae,Ie=(n("5c3a"),C(ee.state.setting.asyncRoutes)),Ne=Object(N["b"])("CN","US");i.a.use(O["a"]),i.a.config.productionTip=!1,i.a.use(w["a"]),i.a.use(ve),He({router:Ie,store:ee,i18n:Ne,message:i.a.prototype.$message}),new i.a({router:Ie,store:ee,i18n:Ne,render:function(e){return e(v)}}).$mount("#app")},5880:function(e,t){e.exports=Vuex},"613e":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"footer"},[n("div",{staticClass:"links"},e._l(e.linkList,(function(t,a){return n("a",{key:a,attrs:{target:"_blank",href:t.link?t.link:"javascript: void(0)"}},[t.icon?n("a-icon",{attrs:{type:t.icon}}):e._e(),e._v(e._s(t.name)+" ")],1)})),0),n("div",{staticClass:"copyright"},[e._v(" Copyright"),n("a-icon",{attrs:{type:"copyright"}}),e._v(e._s(e.copyright)+" ")],1)])},i=[],r={name:"PageFooter",props:["copyright","linkList"]},o=r,s=(n("b2bf"),n("2877")),c=Object(s["a"])(o,a,i,!1,null,"1e9bb40c",null);t["a"]=c.exports},6324:function(e,t,n){},6364:function(e,t,n){var a=n("e1a0"),i=n("4eb0"),r=n("6d94"),o=n("fcaa");e.exports={ANTD:a,ADMIN:i,ANIMATE:r,setting:o}},6389:function(e,t){e.exports=VueRouter},6593:function(e,t,n){"use strict";n("c5d8")},6744:function(e,t,n){"use strict";n("cf8d")},"6a50":function(e,t,n){"use strict";n("c480")},"6d94":function(e,t,n){n("99af");var a=["left","right"],i=["left","right","down","up"],r=["downBig","upBig","leftBig","rightBig"],o=["topLeft","bottomRight","topRight","bottomLeft"],s=["downLeft","upRight","downRight","upLeft"],c={preset:[{name:"back",alias:"渐近",directions:i},{name:"bounce",alias:"弹跳",directions:i.concat("default")},{name:"fade",alias:"淡化",directions:i.concat(r).concat(o).concat("default")},{name:"flip",alias:"翻转",directions:["x","y"]},{name:"lightSpeed",alias:"光速",directions:a},{name:"rotate",alias:"旋转",directions:s.concat("default")},{name:"roll",alias:"翻滚",directions:["default"]},{name:"zoom",alias:"缩放",directions:i.concat("default")},{name:"slide",alias:"滑动",directions:i}]};e.exports=c},"6db9":function(e,t){Object.defineProperty(Object.prototype,"assignProps",{writable:!1,enumerable:!1,configurable:!0,value:function(e,t){for(var n=this,a=0;a<e.length;a++){var i=e[a];a==e.length-1?n[i]=t:(n[i]=void 0==n[i]?{}:n[i],n=n[i])}return this}})},"6dd7":function(e,t){e.exports={messages:{CN:{closeLeft:"关闭左侧",closeRight:"关闭右侧",closeOthers:"关闭其它",refresh:"刷新页面",warn:"这是最后一页,不能再关闭了"},HK:{closeLeft:"關閉左側",closeRight:"關閉右側",closeOthers:"關閉其它",refresh:"刷新頁面",warn:"這是最後一頁,不能再關閉了"},US:{closeLeft:"close left",closeRight:"close right",closeOthers:"close others",refresh:"refresh the page",warn:"This is the last page, you can't close it"}}}},7076:function(e,t,n){"use strict";n("940f")},7424:function(e,t){var n="/api",a=n;e.exports={LOGIN:"".concat(a,"/user"),ROUTES:"".concat(a,"/routes"),GetRoles:"".concat(a,"/user/GetRoles")}},7664:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.disabled?n("div",[e._t("default")],2):n("transition",{attrs:{"enter-active-class":"animated "+e.enterAnimate+" page-toggle-enter-active","leave-active-class":"animated "+e.leaveAnimate+" page-toggle-leave-active"}},[e._t("default")],2)},i=[],r=(n("c740"),n("b0c0"),n("7db0"),n("6d94")),o={name:"PageToggleTransition",props:{disabled:{type:Boolean,default:!1},animate:{type:String,validator:function(e){return-1!=r["preset"].findIndex((function(t){return t.name==e}))},default:"bounce"},direction:{type:String,validator:function(e){return["x","y","left","right","up","down","downLeft","upRight","downRight","upLeft","downBig","upBig","downLeft","downRight","topRight","bottomLeft","topLeft","bottomRight","default"].indexOf(e)>-1}},reverse:{type:Boolean,default:!0}},computed:{enterAnimate:function(){return this.activeClass(!1)},leaveAnimate:function(){return this.activeClass(!0)}},methods:{activeClass:function(e){var t=this,n=r["preset"].find((function(e){return t.animate==e.name}));if(void 0==n)return"";var a="";a=void 0==this.direction?n.directions[0]:n.directions.find((function(e){return e==t.direction})),a=void 0==a||"default"===a?"":a,""!=a&&(a=e&&this.reverse?this.reversePosition(a,n.directions):a,a=a[0].toUpperCase()+a.substring(1));var i=e?"Out":"In";return n.name+i+a},reversePosition:function(e,t){if(0==e.length||"x"==e||"y"==e)return e;var n=t.indexOf(e);return n=n%2==1?n-1:n+1,t[n]}}},s=o,c=(n("39be"),n("2877")),u=Object(c["a"])(s,a,i,!1,null,null,null);t["a"]=u.exports},7878:function(e,t,n){var a=n("7037").default;function i(e,t){t=t||1;for(var n="\n",r=" ",o="",s=0;s<t;s++)o+=r;var c=!1,u=!1,l="",d="{",h="}";Array.isArray(e)?(c=!0,d="[",h="]",l=e.map((function(r,s){var c="";return"function"==typeof r||("object"==a(r)?(u=!0,c="".concat(n).concat(o).concat(i(r,t+1),",")):"number"==typeof r&&!isNaN(r)||"boolean"==typeof r?c="".concat(r,","):"string"==typeof r&&(c="'".concat(r,"',"))),s==e.length-1?c=c.substring(0,c.length-1):u=!1,c})).join("")):"function"!=typeof e&&"object"==a(e)&&(l=Object.keys(e).map((function(r,s,c){var u=e[r],l="";return"function"==typeof u||("object"==a(u)?l="".concat(n).concat(o).concat(r,": ").concat(i(u,t+1),","):"number"==typeof u&&!isNaN(u)||"boolean"==typeof u?l="".concat(n).concat(o).concat(r,": ").concat(u,","):"string"==typeof u&&(l="".concat(n).concat(o).concat(r,": '").concat(u,"',"))),s==c.length-1&&(l=l.substring(0,l.length-1)),l})).join(""));var f=r.length;return o.length>=f&&(o=o.substring(0,o.length-f)),c&&!u||(h=n+o+h),"".concat(d).concat(l).concat(h)}n("a15b"),n("d81d"),n("99af"),n("b64b"),e.exports={formatConfig:i}},"79fa":function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return h})),n.d(t,"a",(function(){return d}));n("159b"),n("ac1f"),n("1276"),n("a15b"),n("4de4"),n("2ca0"),n("b64b");var a=n("8bbf"),i=n.n(a),r=n("a925"),o=n("08e1"),s=n.n(o),c=(n("6db9"),n("89a5"));function u(e,t){i.a.use(r["a"]);var n={locale:e,fallbackLocale:t,silentFallbackWarn:!0};return new r["a"](n)}function l(e,t,n){return t.forEach((function(t){var a=Object(c["b"])(t.fullPath).split("."),i="path"===n?t[n].split("/").filter((function(e){return!e.startsWith(":")&&""!=e})).join("."):t[n];e.assignProps(a,i),t.children&&l(e,t.children,n)})),e}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e.forEach((function(e){var n="/"===e.path.substring(0,1);e.fullPath=n?e.path:"/"===t?t+e.path:t+"/"+e.path,e.children&&d(e.children,e.fullPath)}))}function h(e,t){d(t);var n=l(new Object,t,"name"),a=l(new Object,t,"path");e.mergeLocaleMessage("CN",n),e.mergeLocaleMessage("US",a);var i=s.a.messages;Object.keys(i).forEach((function(t){e.mergeLocaleMessage(t,i[t])}))}},8423:function(e,t,n){"use strict";n("8b0c")},"89a5":function(e,t,n){"use strict";n.d(t,"e",(function(){return f})),n.d(t,"d",(function(){return p})),n.d(t,"b",(function(){return v})),n.d(t,"c",(function(){return y})),n.d(t,"a",(function(){return g})),n.d(t,"f",(function(){return h}));var a=n("2909"),i=n("5530"),r=n("53ca"),o=(n("159b"),n("9911"),n("b64b"),n("b0c0"),n("7db0"),n("07ac"),n("d81d"),n("2ca0"),n("99af"),n("4de4"),n("ac1f"),n("1276"),n("a15b"),n("a09f")),s=n("79fa"),c=n("6389"),u=n.n(c),l=(n("3c4e"),n("be67")),d={router:void 0,i18n:void 0,store:void 0};function h(e){var t=e.router,n=e.store,a=e.i18n;d.router=t,d.store=n,d.i18n=a}function f(e,t){var n=[];return e.forEach((function(e){var a=void 0,o={};"string"===typeof e?(a=t[e],o={path:a&&a.path||e,router:e}):"object"===Object(r["a"])(e)&&(a=t[e.router],o=e),a||(console.warn("can't find register for router ".concat(o.router,", please register it in advance.")),a="string"===typeof e?{path:e,name:e}:e);var s=Object(i["a"])({authority:a.authority,icon:a.icon,page:a.page,link:a.link,params:a.params,query:a.query},a.meta),c=Object(i["a"])({authority:o.authority,icon:o.icon,page:o.page,link:o.link,params:o.params,query:o.query},o.meta);Object.keys(c).forEach((function(e){void 0!==c[e]&&null!==c[e]&&""!==c[e]||delete c[e]})),Object.assign(s,c);var u={path:o.path||a.path||o.router,name:o.name||a.name,component:a.component,redirect:o.redirect||a.redirect,meta:Object(i["a"])(Object(i["a"])({},s),{},{authority:s.authority||"*"})};(o.invisible||a.invisible)&&(u.meta.invisible=!0),o.children&&o.children.length>0&&(u.children=f(o.children,t)),n.push(u)})),n}function p(e){if(arguments.length>0){var t=arguments[0];(t.router||t.i18n||t.store)&&(e=arguments[1],console.error("the usage of signature loadRoutes({router, store, i18n}, routesConfig) is out of date, please use the new signature: loadRoutes(routesConfig)."),console.error("方法签名 loadRoutes({router, store, i18n}, routesConfig) 的用法已过时, 请使用新的方法签名 loadRoutes(routesConfig)。"))}var n=d.router,a=d.store,r=d.i18n;e?a.commit("account/setRoutesConfig",e):e=a.getters["account/routesConfig"];var c=a.state.setting.asyncRoutes;if(c&&e&&e.length>0){var h=f(e,o["a"]),p=m(l["default"].routes,h);g(p),n.options=Object(i["a"])(Object(i["a"])({},n.options),{},{routes:p}),n.matcher=new u.a(Object(i["a"])(Object(i["a"])({},n.options),{},{routes:[]})).matcher,n.addRoutes(p)}Object(s["c"])(r,n.options.routes);var b=n.options.routes.find((function(e){return"/"===e.path})),v=b&&b.children;v&&a.commit("setting/setMenuData",v)}function m(e,t){var n={};return e.forEach((function(e){return n[e.path]=e})),t.forEach((function(e){return n[e.path]=e})),Object.values(n)}function g(e){e.forEach((function(e){var t=e.path;t.startsWith("/")||"*"===t||(e.path="/"+t)})),b(e)}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e.forEach((function(e){var n=e.meta,i=t[t.length-1]||{permission:"*"};if(n){var o={};if(n.authority){if("string"===typeof n.authority)o.permission=n.authority;else if("object"===Object(r["a"])(n.authority)){o=n.authority;var s=o,c=s.role;"string"===typeof c&&(o.role=[c]),o.permission||o.role||(o=i)}}else o=i;n.authority=o}else{var u=i;e.meta={authority:u}}e.meta.pAuthorities=t,e.children&&b(e.children,[].concat(Object(a["a"])(t),[e.meta.authority]))}))}function v(e){var t=e.split("/").filter((function(e){return!e.startsWith(":")&&""!=e}));return t.push("name"),t.join(".")}function y(e,t){var n=e.beforeEach,a=e.afterEach,i=t.router;n.forEach((function(e){e&&"function"===typeof e&&i.beforeEach((function(n,a,i){return e(n,a,i,t)}))})),a.forEach((function(e){e&&"function"===typeof e&&i.afterEach((function(n,a){return e(n,a,t)}))}))}},"8b0c":function(e,t,n){},"8bbf":function(e,t){e.exports=Vue},"93d6":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return u}));var a=n("1da1"),i=(n("96cf"),n("7424")),r=n("b775");function o(e,t){return s.apply(this,arguments)}function s(){return s=Object(a["a"])(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(r["e"])(i["LOGIN"],r["a"].POST,{username:t,password:n}));case 1:case"end":return e.stop()}}),e)}))),s.apply(this,arguments)}function c(){localStorage.removeItem("admin.routes"),localStorage.removeItem("admin.permissions"),localStorage.removeItem("admin.roles"),Object(r["d"])()}function u(e){return l.apply(this,arguments)}function l(){return l=Object(a["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(r["e"])(i["GetRoles"],r["a"].POST,{value:t}));case 1:case"end":return e.stop()}}),e)}))),l.apply(this,arguments)}},"940f":function(e,t,n){},"95e8":function(e,t,n){},"98c7":function(e,t,n){"use strict";n("6324")},9965:function(e,t,n){},"9bdf":function(e,t,n){},"9d12":function(e,t,n){var a=n("ded3").default,i=n("448a").default;n("99af");var r=n("6a71"),o=n("f121"),s=o.theme,c=n("bc8f"),u=c.getMenuColors,l=c.getAntdColors,d=c.getThemeToggleColors,h=c.getFunctionalColors,f=n("6364"),p=f.ANTD;function m(e,t){var n=e||s.color,a=t||s.mode,r=d(n,a),o=[].concat(i(r.mainColors),i(r.subColors),i(r.menuColors),i(r.contentColors),i(r.rgbColors),i(r.functionalColors.success),i(r.functionalColors.warning),i(r.functionalColors.error));return o}function g(e,t){var n=r.changer.changeColor({newColors:m(e,t)});return n}function b(e){var t=e||s.color,n=l(t,s.mode),i=u(t,s.mode),r=h(s.mode),o=r.success,c=r.warning,d=r.error,f=n[5];return a({"primary-color":f,"primary-1":n[0],"primary-2":n[1],"primary-3":n[2],"primary-4":n[3],"primary-5":n[4],"primary-6":n[5],"primary-7":n[6],"primary-8":n[7],"primary-9":n[8],"primary-10":n[9],"info-color":f,"success-color":o[5],"warning-color":c[5],"error-color":d[5],"alert-info-bg-color":n[0],"alert-info-border-color":n[2],"alert-success-bg-color":o[0],"alert-success-border-color":o[2],"alert-warning-bg-color":c[0],"alert-warning-border-color":c[2],"alert-error-bg-color":d[0],"alert-error-border-color":d[2],"processing-color":f,"menu-dark-submenu-bg":i[0],"layout-header-background":i[1],"layout-trigger-background":i[2],"btn-danger-bg":d[4],"btn-danger-border":d[4]},p.theme[s.mode])}function v(e){if(e&&e.theme){var t=e.theme,n=t.color,a=t.mode;n=n||s.color,a=a||s.mode,g(n,a)}}function y(e){var t={};try{var n=localStorage.getItem("admin.setting");t=JSON.parse(n)}catch(a){console.error(a)}return e&&v(t),t}e.exports={getThemeColors:m,changeThemeColor:g,modifyVars:b,loadLocalTheme:v,getLocalSetting:y}},a078:function(e,t){e.exports={theme:{color:"#13c2c2",mode:"dark"},multiPage:!0,animate:{name:"lightSpeed",direction:"left"}}},a08b:function(e,t,n){},a09f:function(e,t,n){"use strict";n("d3b7"),n("3ca3"),n("ddb0");var a={tabs:function(){return n.e("chunk-2d0f0f76").then(n.bind(null,"9f2e"))},blank:function(){return Promise.resolve().then(n.bind(null,"c7f3"))},page:function(){return Promise.resolve().then(n.bind(null,"c8c3"))}},i={login:{authority:"*",path:"/login",component:function(){return n.e("chunk-0b3ada66").then(n.bind(null,"80c1"))}},demo:{name:"演示页",renderMenu:!1,component:function(){return n.e("chunk-18c845f4").then(n.bind(null,"757d"))}},exp403:{authority:"*",name:"exp403",path:"403",component:function(){return n.e("chunk-710b7a7b").then(n.bind(null,"3f9a"))}},exp404:{name:"exp404",path:"404",component:function(){return n.e("chunk-18dbf8d8").then(n.bind(null,"a42a"))}},exp500:{name:"exp500",path:"500",component:function(){return n.e("chunk-73a47564").then(n.bind(null,"5827"))}},root:{path:"/",name:"首页",redirect:"/login",component:a.tabs},parent1:{name:"父级路由1",icon:"dashboard",component:a.blank},parent2:{name:"父级路由2",icon:"form",component:a.page},exception:{name:"异常页",icon:"warning",component:a.blank}};t["a"]=i},aa1d:function(e,t,n){"use strict";n("9bdf")},aeab:function(e,t,n){"use strict";n("0914")},afa6:function(e,t,n){},afe7:function(e,t,n){"use strict";n("ba87")},b0c2:function(e,t){e.exports=ClipboardJS},b262:function(e,t,n){"use strict";n("14f5")},b2bf:function(e,t,n){"use strict";n("5293")},b775:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"e",(function(){return h})),n.d(t,"f",(function(){return p})),n.d(t,"d",(function(){return m})),n.d(t,"b",(function(){return g})),n.d(t,"c",(function(){return b}));var a=n("5530"),i=n("1da1"),r=(n("96cf"),n("159b"),n("d3b7"),n("ac1f"),n("1276"),n("5319"),n("cebe")),o=n.n(r),s=n("be65"),c=n.n(s),u="Authorization";o.a.defaults.timeout=5e3,o.a.defaults.withCredentials=!0,o.a.defaults.xsrfHeaderName=u,o.a.defaults.xsrfCookieName=u;var l={BEARER:"Bearer",BASIC:"basic",AUTH1:"auth1",AUTH2:"auth2"},d={GET:"get",POST:"post"};function h(e,t,n,a){return f.apply(this,arguments)}function f(){return f=Object(i["a"])(regeneratorRuntime.mark((function e(t,n,i,r){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:e.t0=n,e.next=e.t0===d.GET?3:e.t0===d.POST?4:6;break;case 3:return e.abrupt("return",o.a.get(t,Object(a["a"])({params:i},r)));case 4:return console.info("request url",t),e.abrupt("return",o.a.post(t,i,r));case 6:return e.abrupt("return",o.a.get(t,Object(a["a"])({params:i},r)));case 7:case"end":return e.stop()}}),e)}))),f.apply(this,arguments)}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.BEARER;switch(t){case l.BEARER:c.a.set(u,e.token,{expires:e.expireAt});break;case l.BASIC:case l.AUTH1:case l.AUTH2:default:break}}function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.BEARER;switch(e){case l.BEARER:c.a.remove(u);break;case l.BASIC:case l.AUTH1:case l.AUTH2:default:break}}function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.BEARER;switch(e){case l.BEARER:if(c.a.get(u))return!0;break;case l.BASIC:case l.AUTH1:case l.AUTH2:default:break}return!1}function b(e,t){var n=e.request,a=e.response;n.forEach((function(e){var n=e.onFulfilled,a=e.onRejected;n&&"function"===typeof n||(n=function(e){return e}),a&&"function"===typeof a||(a=function(e){return Promise.reject(e)}),o.a.interceptors.request.use((function(e){return n(e,t)}),(function(e){return a(e,t)}))})),a.forEach((function(e){var n=e.onFulfilled,a=e.onRejected;n&&"function"===typeof n||(n=function(e){return e}),a&&"function"===typeof a||(a=function(e){return Promise.reject(e)}),o.a.interceptors.response.use((function(e){return n(e,t)}),(function(e){return a(e,t)}))}))}},b826:function(e,t,n){},ba87:function(e,t,n){},bc84:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("admin-layout",[n("contextmenu",{attrs:{itemList:e.menuItemList,visible:e.menuVisible},on:{"update:visible":function(t){e.menuVisible=t},select:e.onMenuSelect}}),e.multiPage?n("tabs-head",{attrs:{active:e.activePage,"page-list":e.pageList},on:{change:e.changePage,close:e.remove,refresh:e.refresh,contextmenu:e.onContextmenu}}):e._e(),n("div",{class:["tabs-view-content",e.layout,e.pageWidth],style:"margin-top: "+(e.multiPage?-24:0)+"px"},[n("page-toggle-transition",{attrs:{disabled:e.animate.disabled,animate:e.animate.name,direction:e.animate.direction}},[e.multiPage&&e.cachePage?n("a-keep-alive",{attrs:{"exclude-keys":e.excludeKeys},model:{value:e.clearCaches,callback:function(t){e.clearCaches=t},expression:"clearCaches"}},[e.refreshing?e._e():n("router-view",{key:e.$route.path,ref:"tabContent"})],1):e.refreshing?e._e():n("router-view",{ref:"tabContent"})],1)],1)],1)},i=[],r=n("5530"),o=(n("c740"),n("7db0"),n("d81d"),n("a434"),n("4de4"),n("caad"),n("2532"),n("ac1f"),n("1276"),n("159b"),n("4d63"),n("25f0"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-layout",{class:["admin-layout","beauty-scroll"]},[e.isMobile?n("drawer",{model:{value:e.drawerOpen,callback:function(t){e.drawerOpen=t},expression:"drawerOpen"}},[n("side-menu",{attrs:{theme:e.theme.mode,menuData:e.menuData,collapsed:!1,collapsible:!1},on:{menuSelect:e.onMenuSelect}})],1):"side"===e.layout||"mix"===e.layout?n("side-menu",{class:[e.fixedSideBar?"fixed-side":""],attrs:{theme:e.theme.mode,menuData:e.sideMenuData,collapsed:e.collapsed,collapsible:!0}}):e._e(),e.fixedSideBar&&!e.isMobile?n("div",{staticClass:"virtual-side",style:"width: "+e.sideMenuWidth+"; min-width: "+e.sideMenuWidth+";max-width: "+e.sideMenuWidth+";"}):e._e(),e.hideSetting?e._e():n("drawer",{attrs:{placement:"right"},model:{value:e.showSetting,callback:function(t){e.showSetting=t},expression:"showSetting"}},[n("div",{staticClass:"setting",attrs:{slot:"handler"},slot:"handler"},[n("a-icon",{attrs:{type:e.showSetting?"close":"setting"}})],1),n("setting")],1),n("a-layout",{staticClass:"admin-layout-main beauty-scroll"},[n("admin-header",{class:[{"fixed-tabs":e.fixedTabs,"fixed-header":e.fixedHeader,"multi-page":e.multiPage}],style:e.headerStyle,attrs:{menuData:e.headMenuData,collapsed:e.collapsed},on:{toggleCollapse:e.toggleCollapse}}),n("a-layout-header",{directives:[{name:"show",rawName:"v-show",value:e.fixedHeader,expression:"fixedHeader"}],class:["virtual-header",{"fixed-tabs":e.fixedTabs,"fixed-header":e.fixedHeader,"multi-page":e.multiPage}]}),n("a-layout-content",{staticClass:"admin-layout-content",style:"min-height: "+e.minHeight+"px;"},[n("div",{staticStyle:{position:"relative"}},[e._t("default")],2)]),n("a-layout-footer",{staticStyle:{padding:"0px"}},[n("page-footer",{attrs:{"link-list":e.footerLinks,copyright:e.copyright}})],1)],1)],1)}),s=[],c=n("b85c"),u=(n("99af"),n("fb6a"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-layout-header",{class:[e.headerTheme,"admin-header"]},[a("div",{class:["admin-header-wide",e.layout,e.pageWidth]},[e.isMobile||"head"===e.layout?a("router-link",{class:["logo",e.isMobile?null:"pc",e.headerTheme],attrs:{to:"/"}},[a("img",{attrs:{width:"32",src:n("4ffd")}}),e.isMobile?e._e():a("h1",[e._v(e._s(e.systemName))])]):e._e(),e.isMobile?a("a-divider",{attrs:{type:"vertical"}}):e._e(),"head"!==e.layout?a("a-icon",{staticClass:"trigger",attrs:{type:e.collapsed?"menu-unfold":"menu-fold"},on:{click:e.toggleCollapse}}):e._e(),"side"===e.layout||e.isMobile?e._e():a("div",{staticClass:"admin-header-menu",style:"width: "+e.menuWidth+";"},[a("i-menu",{staticClass:"head-menu",attrs:{theme:e.headerTheme,mode:"horizontal",options:e.menuData},on:{select:e.onSelect}})],1),a("div",{class:["admin-header-right",e.headerTheme]},[a("header-search",{staticClass:"header-item",on:{active:function(t){return e.searchActive=t}}}),a("a-tooltip",{staticClass:"header-item",attrs:{title:"帮助文档",placement:"bottom"}},[a("a",{attrs:{href:"https://iczer.gitee.io/vue-antd-admin-docs/",target:"_blank"}},[a("a-icon",{attrs:{type:"question-circle-o"}})],1)]),a("header-notice",{staticClass:"header-item"}),a("header-avatar",{staticClass:"header-item"}),a("a-dropdown",{staticClass:"lang header-item"},[a("div",[a("a-icon",{attrs:{type:"global"}}),e._v(" "+e._s(e.langAlias)+" ")],1),a("a-menu",{attrs:{slot:"overlay","selected-keys":[e.lang]},on:{click:function(t){return e.setLang(t.key)}},slot:"overlay"},e._l(e.langList,(function(t){return a("a-menu-item",{key:t.key},[e._v(e._s(t.key.toLowerCase()+" "+t.name))])})),1)],1)],1)],1)])}),l=[],d=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"header-search"},[n("a-icon",{staticClass:"search-icon",attrs:{type:"search"},on:{click:e.enterSearchMode}}),n("a-auto-complete",{ref:"input",class:["search-input",e.searchMode?"enter":"leave"],attrs:{getPopupContainer:function(t){return t.parentNode||e.document.body},dataSource:e.dataSource,placeholder:"站内搜索"},on:{blur:e.leaveSearchMode}})],1)},h=[],f={name:"HeaderSearch",data:function(){return{dataSource:["选项一","选项二"],searchMode:!1}},methods:{enterSearchMode:function(){var e=this;this.searchMode=!0,this.$emit("active",!0),setTimeout((function(){return e.$refs.input.focus()}),300)},leaveSearchMode:function(){var e=this;this.searchMode=!1,setTimeout((function(){return e.$emit("active",!1)}),300)}}},p=f,m=(n("d157"),n("2877")),g=Object(m["a"])(p,d,h,!1,null,null,null),b=g.exports,v=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-dropdown",{attrs:{trigger:["click"]},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}},[n("div",{attrs:{slot:"overlay"},slot:"overlay"},[n("a-spin",{attrs:{spinning:e.loading}},[n("a-tabs",{staticClass:"dropdown-tabs",style:{width:"297px"},attrs:{tabBarStyle:{textAlign:"center"}}},[n("a-tab-pane",{key:"1",attrs:{tab:"通知"}},[n("a-list",{staticClass:"tab-pane"},[n("a-list-item",[n("a-list-item-meta",{attrs:{title:"你收到了 14 份新周报",description:"一年前"}},[n("a-avatar",{staticStyle:{"background-color":"white"},attrs:{slot:"avatar",src:"https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png"},slot:"avatar"})],1)],1),n("a-list-item",[n("a-list-item-meta",{attrs:{title:"你推荐的 曲妮妮 已通过第三轮面试",description:"一年前"}},[n("a-avatar",{staticStyle:{"background-color":"white"},attrs:{slot:"avatar",src:"https://gw.alipayobjects.com/zos/rmsportal/OKJXDXrmkNshAMvwtvhu.png"},slot:"avatar"})],1)],1),n("a-list-item",[n("a-list-item-meta",{attrs:{title:"这种模板可以区分多种通知类型",description:"一年前"}},[n("a-avatar",{staticStyle:{"background-color":"white"},attrs:{slot:"avatar",src:"https://gw.alipayobjects.com/zos/rmsportal/kISTdvpyTAhtGxpovNWd.png"},slot:"avatar"})],1)],1)],1)],1),n("a-tab-pane",{key:"2",attrs:{tab:"消息"}},[n("a-list",{staticClass:"tab-pane"})],1),n("a-tab-pane",{key:"3",attrs:{tab:"待办"}},[n("a-list",{staticClass:"tab-pane"})],1)],1)],1)],1),n("span",{staticClass:"header-notice",on:{click:e.fetchNotice}},[n("a-badge",{staticClass:"notice-badge",attrs:{count:"12"}},[n("a-icon",{class:["header-notice-icon"],attrs:{type:"bell"}})],1)],1)])},y=[],k={name:"HeaderNotice",data:function(){return{loading:!1,show:!1}},computed:{},methods:{fetchNotice:function(){var e=this;this.loading?this.loading=!1:(this.loadding=!0,setTimeout((function(){e.loadding=!1}),1e3))}}},x=k,C=(n("2d27"),Object(m["a"])(x,v,y,!1,null,null,null)),O=C.exports,w=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-dropdown",[n("div",{staticClass:"header-avatar",staticStyle:{cursor:"pointer"}},[n("a-avatar",{staticClass:"avatar",attrs:{size:"small",shape:"circle",src:e.user.avatar}}),n("span",{staticClass:"name"},[e._v(e._s(e.user.name))])],1),n("a-menu",{class:["avatar-menu"],attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",[n("a-icon",{attrs:{type:"user"}}),n("span",[e._v("个人中心")])],1),n("a-menu-item",[n("a-icon",{attrs:{type:"setting"}}),n("span",[e._v("设置")])],1),n("a-menu-divider"),n("a-menu-item",{on:{click:e.logout}},[n("a-icon",{staticStyle:{"margin-right":"8px"},attrs:{type:"poweroff"}}),n("span",[e._v("退出登录")])],1)],1)],1)},j=[],S=n("5880"),P=n("93d6"),_={name:"HeaderAvatar",computed:Object(r["a"])({},Object(S["mapGetters"])("account",["user"])),methods:{logout:function(){Object(P["c"])(),this.$router.push("/login")}}},$=_,T=(n("fc32"),Object(m["a"])($,w,j,!1,null,null,null)),L=T.exports,M=n("3835"),E=(n("4fad"),n("5319"),n("b64b"),n("9911"),n("55f1")),A=n("0c63"),H=n("694b"),I=n.n(H),N=n("89a5"),R=E["a"].Item,K=E["a"].SubMenu,B=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;return Object.entries(t).forEach((function(e){var t=Object(M["a"])(e,2),a=t[0],i=t[1];n=n.replace(new RegExp(":".concat(a),"g"),i)})),n},D=function e(t){var n={};return t.forEach((function(t){if(n[t.fullPath]=t,t.children&&t.children.length>0){var a=e(t.children);Object.assign(n,a)}})),n},q={name:"IMenu",props:{options:{type:Array,required:!0},theme:{type:String,required:!1,default:"dark"},mode:{type:String,required:!1,default:"inline"},collapsed:{type:Boolean,required:!1,default:!1},i18n:Object,openKeys:Array},data:function(){return{selectedKeys:[],sOpenKeys:[],cachedOpenKeys:[]}},computed:{menuTheme:function(){return"light"==this.theme?this.theme:"dark"},routesMap:function(){return D(this.options)}},created:function(){var e=this;if(this.updateMenu(),this.options.length>0&&!this.options[0].fullPath&&this.formatOptions(this.options,""),this.i18n&&this.i18n.messages){var t=this.i18n.messages;Object.keys(t).forEach((function(n){e.$i18n.mergeLocaleMessage(n,t[n])}))}},watch:{options:function(e){e.length>0&&!e[0].fullPath&&this.formatOptions(this.options,"")},i18n:function(e){var t=this;if(e&&e.messages){var n=this.i18n.messages;Object.keys(n).forEach((function(e){t.$i18n.mergeLocaleMessage(e,n[e])}))}},collapsed:function(e){e?(this.cachedOpenKeys=this.sOpenKeys,this.sOpenKeys=[]):this.sOpenKeys=this.cachedOpenKeys},$route:function(){this.updateMenu()},sOpenKeys:function(e){this.$emit("openChange",e),this.$emit("update:openKeys",e)}},methods:{renderIcon:function(e,t,n){if(this.$scopedSlots.icon&&t&&"none"!==t){var a=this.$scopedSlots.icon({icon:t,key:n});return a.forEach((function(e){e.data.class=e.data.class?e.data.class:[],e.data.class.push("anticon")})),a}return t&&"none"!=t?e(A["a"],{props:{type:t}}):null},renderMenuItem:function(e,t){var n="router-link",a=B(t.fullPath,t.meta.params),i={props:{to:{path:a,query:t.meta.query}},attrs:{style:"overflow:hidden;white-space:normal;text-overflow:clip;"}};return t.meta&&t.meta.link&&(n="a",i={attrs:{style:"overflow:hidden;white-space:normal;text-overflow:clip;",href:t.meta.link,target:"_blank"}}),e(R,{key:t.fullPath},[e(n,i,[this.renderIcon(e,t.meta?t.meta.icon:"none",t.fullPath),this.$t(Object(N["b"])(t.fullPath))])])},renderSubMenu:function(e,t){var n=this,a=[e("span",{slot:"title",attrs:{style:"overflow:hidden;white-space:normal;text-overflow:clip;"}},[this.renderIcon(e,t.meta?t.meta.icon:"none",t.fullPath),this.$t(Object(N["b"])(t.fullPath))])],i=[];return t.children.forEach((function(t){i.push(n.renderItem(e,t))})),e(K,{key:t.fullPath},a.concat(i))},renderItem:function(e,t){var n=t.meta;if(!n||!n.invisible){var a=!1,i=t.children;if(void 0!=i)for(var r=0;r<i.length;r++){var o=i[r].meta;if(!o||!o.invisible){a=!0;break}}return t.children&&a?this.renderSubMenu(e,t):this.renderMenuItem(e,t)}},renderMenu:function(e,t){var n=this,a=[];return t.forEach((function(t,i){a.push(n.renderItem(e,t,"0",i))})),a},formatOptions:function(e,t){var n=this;e.forEach((function(e){var a="/"==e.path.substring(0,1);e.fullPath=a?e.path:t+"/"+e.path,e.children&&n.formatOptions(e.children,e.fullPath)}))},updateMenu:function(){this.selectedKeys=this.getSelectedKeys();var e=this.selectedKeys.filter((function(e){return""!==e}));e=e.slice(0,e.length-1),I()(e,this.sOpenKeys)||(this.collapsed||"horizontal"===this.mode?this.cachedOpenKeys=e:this.sOpenKeys=e)},getSelectedKeys:function(){var e=this.$route.matched,t=e[e.length-1],n=this.routesMap[t.path];if(n.meta&&n.meta.highlight){n=this.routesMap[n.meta.highlight];var a=this.$router.resolve({path:n.fullPath});e=a.resolved&&a.resolved.matched||e}return e.map((function(e){return e.path}))}},render:function(e){var t=this;return e(E["a"],{props:{theme:this.menuTheme,mode:this.$props.mode,selectedKeys:this.selectedKeys,openKeys:this.openKeys?this.openKeys:this.sOpenKeys},on:{"update:openKeys":function(e){t.sOpenKeys=e},click:function(e){e.selectedKeys=[e.key],t.$emit("select",e)}}},this.renderMenu(e,this.options))}},F={name:"AdminHeader",components:{IMenu:q,HeaderAvatar:L,HeaderNotice:O,HeaderSearch:b},props:["collapsed","menuData"],data:function(){return{langList:[{key:"CN",name:"简体中文",alias:"简体"},{key:"HK",name:"繁體中文",alias:"繁體"},{key:"US",name:"English",alias:"English"}],searchActive:!1}},computed:Object(r["a"])(Object(r["a"])({},Object(S["mapState"])("setting",["theme","isMobile","layout","systemName","lang","pageWidth"])),{},{headerTheme:function(){return"side"!=this.layout||"dark"!=this.theme.mode||this.isMobile?this.theme.mode:"light"},langAlias:function(){var e=this,t=this.langList.find((function(t){return t.key==e.lang}));return t.alias},menuWidth:function(){var e=this.layout,t=this.searchActive,n="head"===e?"100% - 188px":"100%",a=t?"600px":"400px";return"calc(".concat(n," - ").concat(a,")")}}),methods:Object(r["a"])({toggleCollapse:function(){this.$emit("toggleCollapse")},onSelect:function(e){this.$emit("menuSelect",e)}},Object(S["mapMutations"])("setting",["setLang"]))},W=F,U=(n("8423"),Object(m["a"])(W,u,l,!1,null,"ba1e3ea2",null)),z=U.exports,G=n("613e"),J=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{class:["mask",e.visible?"open":"close"],on:{click:e.close}}),n("div",{class:["drawer",e.placement,e.visible?"open":"close"]},[n("div",{ref:"drawer",staticClass:"content beauty-scroll"},[e._t("default")],2),e.showHandler?n("div",{ref:"handler",class:["handler-container",e.placement,e.visible?"open":"close"],on:{click:e.toggle}},[e.$slots.handler?e._t("handler"):n("div",{staticClass:"handler"},[n("a-icon",{attrs:{type:e.visible?"close":"bars"}})],1)],2):e._e()])])},V=[],X={name:"Drawer",data:function(){return{}},model:{prop:"visible",event:"change"},props:{visible:{type:Boolean,required:!1,default:!1},placement:{type:String,required:!1,default:"left"},showHandler:{type:Boolean,required:!1,default:!0}},methods:{open:function(){this.$emit("change",!0)},close:function(){this.$emit("change",!1)},toggle:function(){this.$emit("change",!this.visible)}}},Y=X,Z=(n("c071"),Object(m["a"])(Y,J,V,!1,null,"430cd41a",null)),Q=Z.exports,ee=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a-layout-sider",{class:["side-menu","beauty-scroll",e.isMobile?null:"shadow"],attrs:{theme:e.sideTheme,width:"256px",collapsible:e.collapsible,trigger:null},model:{value:e.collapsed,callback:function(t){e.collapsed=t},expression:"collapsed"}},[a("div",{class:["logo",e.theme]},[a("router-link",{attrs:{to:"/dashboard/workplace"}},[a("img",{attrs:{src:n("4ffd")}}),a("h1",[e._v(e._s(e.systemName))])])],1),a("i-menu",{staticClass:"menu",attrs:{theme:e.theme,collapsed:e.collapsed,options:e.menuData},on:{select:e.onSelect}})],1)},te=[],ne={name:"SideMenu",components:{IMenu:q},props:{collapsible:{type:Boolean,required:!1,default:!1},collapsed:{type:Boolean,required:!1,default:!1},menuData:{type:Array,required:!0},theme:{type:String,required:!1,default:"dark"}},computed:Object(r["a"])({sideTheme:function(){return"light"==this.theme?this.theme:"dark"}},Object(S["mapState"])("setting",["isMobile","systemName"])),methods:{onSelect:function(e){this.$emit("menuSelect",e)}}},ae=ne,ie=(n("6a50"),Object(m["a"])(ae,ee,te,!1,null,"28794974",null)),re=ie.exports,oe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"side-setting"},[n("setting-item",[n("a-button",{attrs:{type:"primary",icon:"save"},on:{click:e.saveSetting}},[e._v(e._s(e.$t("save")))]),n("a-button",{staticStyle:{float:"right"},attrs:{type:"dashed",icon:"redo"},on:{click:e.resetSetting}},[e._v(e._s(e.$t("reset")))])],1),n("setting-item",{attrs:{title:e.$t("theme.title")}},[n("img-checkbox-group",{attrs:{"default-values":[e.theme.mode]},on:{change:function(t){return e.setTheme(Object.assign({},e.theme,{mode:t[0]}))}}},[n("img-checkbox",{attrs:{title:e.$t("theme.dark"),img:"https://gw.alipayobjects.com/zos/rmsportal/LCkqqYNmvBEbokSDscrm.svg",value:"dark"}}),n("img-checkbox",{attrs:{title:e.$t("theme.light"),img:"https://gw.alipayobjects.com/zos/rmsportal/jpRkZQMyYRryryPNtyIC.svg",value:"light"}}),n("img-checkbox",{attrs:{title:e.$t("theme.night"),img:"https://gw.alipayobjects.com/zos/antfincdn/hmKaLQvmY2/LCkqqYNmvBEbokSDscrm.svg",value:"night"}})],1)],1),n("setting-item",{attrs:{title:e.$t("theme.color")}},[n("color-checkbox-group",{attrs:{defaultValues:[e.palettes.indexOf(e.theme.color)],multiple:!1},on:{change:function(t,n){return e.setTheme(Object.assign({},e.theme,{color:n[0]}))}}},e._l(e.palettes,(function(e,t){return n("color-checkbox",{key:t,attrs:{color:e,value:t}})})),1)],1),n("a-divider"),n("setting-item",{attrs:{title:e.$t("navigate.title")}},[n("img-checkbox-group",{attrs:{"default-values":[e.layout]},on:{change:function(t){return e.setLayout(t[0])}}},[n("img-checkbox",{attrs:{title:e.$t("navigate.side"),img:"https://gw.alipayobjects.com/zos/rmsportal/JopDzEhOqwOjeNTXkoje.svg",value:"side"}}),n("img-checkbox",{attrs:{title:e.$t("navigate.head"),img:"https://gw.alipayobjects.com/zos/rmsportal/KDNDBbriJhLwuqMoxcAr.svg",value:"head"}}),n("img-checkbox",{attrs:{title:e.$t("navigate.mix"),img:"https://gw.alipayobjects.com/zos/antfincdn/x8Ob%26B8cy8/LCkqqYNmvBEbokSDscrm.svg",value:"mix"}})],1)],1),n("setting-item",[n("a-list",{attrs:{split:!1}},[n("a-list-item",[e._v(" "+e._s(e.$t("navigate.content.title"))+" "),n("a-select",{staticClass:"select-item",attrs:{slot:"actions",getPopupContainer:e.getPopupContainer,value:e.pageWidth,size:"small"},on:{change:e.setPageWidth},slot:"actions"},[n("a-select-option",{attrs:{value:"fluid"}},[e._v(e._s(e.$t("navigate.content.fluid")))]),n("a-select-option",{attrs:{value:"fixed"}},[e._v(e._s(e.$t("navigate.content.fixed")))])],1)],1),n("a-list-item",[e._v(" "+e._s(e.$t("navigate.fixedHeader"))+" "),n("a-switch",{attrs:{slot:"actions",checked:e.fixedHeader,size:"small"},on:{change:e.setFixedHeader},slot:"actions"})],1),n("a-list-item",[e._v(" "+e._s(e.$t("navigate.fixedSideBar"))+" "),n("a-switch",{attrs:{slot:"actions",checked:e.fixedSideBar,size:"small"},on:{change:e.setFixedSideBar},slot:"actions"})],1)],1)],1),n("a-divider"),n("setting-item",{attrs:{title:e.$t("other.title")}},[n("a-list",{attrs:{split:!1}},[n("a-list-item",[e._v(" "+e._s(e.$t("other.weekMode"))+" "),n("a-switch",{attrs:{slot:"actions",checked:e.weekMode,size:"small"},on:{change:e.setWeekMode},slot:"actions"})],1),n("a-list-item",[e._v(" "+e._s(e.$t("other.multiPages"))+" "),n("a-switch",{attrs:{slot:"actions",checked:e.multiPage,size:"small"},on:{change:e.setMultiPage},slot:"actions"})],1),n("a-list-item",[e._v(" "+e._s(e.$t("other.hideSetting"))+" "),n("a-switch",{attrs:{slot:"actions",checked:e.hideSetting,size:"small"},on:{change:e.setHideSetting},slot:"actions"})],1)],1)],1),n("a-divider"),n("setting-item",{attrs:{title:e.$t("animate.title")}},[n("a-list",{attrs:{split:!1}},[n("a-list-item",[e._v(" "+e._s(e.$t("animate.disable"))+" "),n("a-switch",{attrs:{slot:"actions",checked:e.animate.disabled,size:"small"},on:{change:function(t){return e.setAnimate(Object.assign({},e.animate,{disabled:t}))}},slot:"actions"})],1),n("a-list-item",[e._v(" "+e._s(e.$t("animate.effect"))+" "),n("a-select",{staticClass:"select-item",attrs:{slot:"actions",value:e.animate.name,getPopupContainer:e.getPopupContainer,size:"small"},on:{change:function(t){return e.setAnimate(Object.assign({},e.animate,{name:t}))}},slot:"actions"},e._l(e.animates,(function(t,a){return n("a-select-option",{key:a,attrs:{value:t.name}},[e._v(e._s(t.alias))])})),1)],1),n("a-list-item",[e._v(" "+e._s(e.$t("animate.direction"))+" "),n("a-select",{staticClass:"select-item",attrs:{slot:"actions",value:e.animate.direction,getPopupContainer:e.getPopupContainer,size:"small"},on:{change:function(t){return e.setAnimate(Object.assign({},e.animate,{direction:t}))}},slot:"actions"},e._l(e.directions,(function(t,a){return n("a-select-option",{key:a,attrs:{value:t}},[e._v(e._s(t))])})),1)],1)],1)],1),e.isDev?n("a-alert",{staticStyle:{"max-width":"240px",margin:"-16px 0 8px","word-break":"break-all"},attrs:{type:"warning",message:e.$t("alert")}}):e._e(),e.isDev?n("a-button",{staticStyle:{width:"100%"},attrs:{id:"copyBtn","data-clipboard-text":e.copyConfig,icon:"copy"},on:{click:e.copyCode}},[e._v(e._s(e.$t("copy")))]):e._e()],1)},se=[],ce=(n("b0c0"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"setting-item"},[e.title?n("h3",{staticClass:"title"},[e._v(e._s(e.title))]):e._e(),e._t("default")],2)}),ue=[],le={name:"SettingItem",props:["title"]},de=le,he=(n("6744"),Object(m["a"])(de,ce,ue,!1,null,"0437ff7f",null)),fe=he.exports,pe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"theme-color",style:{backgroundColor:e.color},on:{click:e.toggle}},[e.sChecked?n("a-icon",{attrs:{type:"check"}}):e._e()],1)},me=[],ge=(n("d3b7"),n("ddb0"),n("a9e3"),{name:"ColorCheckboxGroup",props:{defaultValues:{type:Array,required:!1,default:function(){return[]}},multiple:{type:Boolean,required:!1,default:!1}},data:function(){return{values:[],options:[]}},computed:{colors:function(){var e=[];return this.options.forEach((function(t){t.sChecked&&e.push(t.color)})),e}},provide:function(){return{groupContext:this}},watch:{values:function(e){this.$emit("change",e,this.colors)}},methods:{handleChange:function(e){e.checked?this.multiple?this.values.push(e.value):(this.values=[e.value],this.options.forEach((function(t){t.value!=e.value&&(t.sChecked=!1)}))):this.values.indexOf(e.value)>-1&&(this.values=this.values.filter((function(t){return t!=e.value})))}},render:function(e){var t=e("div",{attrs:{style:"clear: both"}});return e("div",{},[this.$slots.default,t])}}),be={name:"ColorCheckbox",Group:ge,props:{color:{type:String,required:!0},value:{type:[String,Number],required:!0},checked:{type:Boolean,required:!1,default:!1}},data:function(){return{sChecked:this.initChecked()}},computed:{},inject:["groupContext"],watch:{sChecked:function(){var e={value:this.value,color:this.color,checked:this.sChecked};this.$emit("change",e);var t=this.groupContext;t&&t.handleChange(e)}},created:function(){var e=this.groupContext;e&&e.options.push(this)},methods:{toggle:function(){!this.groupContext.multiple&&this.sChecked||(this.sChecked=!this.sChecked)},initChecked:function(){var e=this.groupContext;return e?e.multiple?e.defaultValues.indexOf(this.value)>-1:e.defaultValues[0]==this.value:this.checked}}},ve=be,ye=(n("aeab"),Object(m["a"])(ve,pe,me,!1,null,"63784944",null)),ke=ye.exports,xe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-tooltip",{attrs:{title:e.title,overlayStyle:{zIndex:2001}}},[n("div",{staticClass:"img-check-box",on:{click:e.toggle}},[n("img",{attrs:{src:e.img}}),e.sChecked?n("div",{staticClass:"check-item"},[n("a-icon",{attrs:{type:"check"}})],1):e._e()])])},Ce=[],Oe={name:"ImgCheckboxGroup",props:{multiple:{type:Boolean,required:!1,default:!1},defaultValues:{type:Array,required:!1,default:function(){return[]}}},data:function(){return{values:[],options:[]}},provide:function(){return{groupContext:this}},watch:{values:function(e){this.$emit("change",e)}},methods:{handleChange:function(e){e.checked?this.multiple?this.values.push(e.value):(this.values=[e.value],this.options.forEach((function(t){t.value!=e.value&&(t.sChecked=!1)}))):this.values.indexOf(e.value)>-1&&(this.values=this.values.filter((function(t){return t!=e.value})))}},render:function(e){return e("div",{attrs:{style:"display: flex"}},[this.$slots.default])}},we={name:"ImgCheckbox",Group:Oe,props:{checked:{type:Boolean,required:!1,default:!1},img:{type:String,required:!0},value:{required:!0},title:String},data:function(){return{sChecked:this.initChecked()}},inject:["groupContext"],watch:{sChecked:function(){var e={value:this.value,checked:this.sChecked};this.$emit("change",e);var t=this.groupContext;t&&t.handleChange(e)}},created:function(){var e=this.groupContext;e&&(this.sChecked=e.defaultValues.length>0?e.defaultValues.indexOf(this.value)>=0:this.sChecked,e.options.push(this))},methods:{toggle:function(){!this.groupContext.multiple&&this.sChecked||(this.sChecked=!this.sChecked)},initChecked:function(){var e=this.groupContext;return e?e.multiple?e.defaultValues.indexOf(this.value)>-1:e.defaultValues[0]==this.value:this.checked}}},je=we,Se=(n("dbcf"),Object(m["a"])(je,xe,Ce,!1,null,"1acd8c25",null)),Pe=Se.exports,_e=n("b0c2"),$e=n.n(_e),Te=n("7878"),Le=n("6364"),Me=n("a078"),Ee=n.n(Me),Ae=n("3c4e"),He=n.n(Ae),Ie=ke.Group,Ne=Pe.Group,Re={name:"Setting",i18n:n("d87f"),components:{ImgCheckboxGroup:Ne,ImgCheckbox:Pe,ColorCheckboxGroup:Ie,ColorCheckbox:ke,SettingItem:fe},data:function(){return{copyConfig:"Sorry, you have copied nothing O(∩_∩)O~",isDev:!1}},computed:Object(r["a"])({directions:function(){var e=this;return this.animates.find((function(t){return t.name==e.animate.name})).directions}},Object(S["mapState"])("setting",["theme","layout","animate","animates","palettes","multiPage","weekMode","fixedHeader","fixedSideBar","hideSetting","pageWidth"])),watch:{"animate.name":function(e){this.setAnimate({name:e,direction:this.directions[0]})}},methods:Object(r["a"])({getPopupContainer:function(){return this.$el.parentNode},copyCode:function(){var e=this,t=this.extractConfig(!1);this.copyConfig="// 自定义配置,参考 ./default/setting.config.js,需要自定义的属性在这里配置即可\n module.exports = ".concat(Object(Te["formatConfig"])(t),"\n ");var n=new $e.a("#copyBtn");n.on("success",(function(){e.$message.success("复制成功,覆盖文件 src/config/config.js 然后重启项目即可生效").then((function(){var t=localStorage.getItem("admin.setting");t&&(console.warn("检测到本地有历史保存的主题配置,想要要拷贝的配置代码生效,您可能需要先重置配置"),e.$message.warn("检测到本地有历史保存的主题配置,想要要拷贝的配置代码生效,您可能需要先重置配置",5))})),n.destroy()}))},saveSetting:function(){var e=this.$message.loading("正在保存到本地,请稍后...",0),t=this.extractConfig(!0);localStorage.setItem("admin.setting",JSON.stringify(t)),setTimeout(e,800)},resetSetting:function(){this.$confirm({title:"重置主题会刷新页面,当前页面内容不会保留,确认重置?",onOk:function(){localStorage.removeItem("admin.setting"),window.location.reload()}})},extractConfig:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t={},n=this.$store.state.setting,a=e?He()(Le["setting"],Ee.a):Le["setting"];return Object.keys(n).forEach((function(e){var i=a[e],r=n[e];void 0==i||I()(i,r)||(t[e]=r)})),t}},Object(S["mapMutations"])("setting",["setTheme","setLayout","setMultiPage","setWeekMode","setFixedSideBar","setFixedHeader","setAnimate","setHideSetting","setPageWidth"]))},Ke=Re,Be=(n("568b"),Object(m["a"])(Ke,oe,se,!1,null,"f749d4fe",null)),De=Be.exports,qe={name:"AdminLayout",components:{Setting:De,SideMenu:re,Drawer:Q,PageFooter:G["a"],AdminHeader:z},data:function(){return{minHeight:window.innerHeight-64-122,collapsed:!1,showSetting:!1,drawerOpen:!1}},provide:function(){return{adminLayout:this}},watch:{$route:function(e){this.setActivated(e)},layout:function(){this.setActivated(this.$route)},isMobile:function(e){e||(this.drawerOpen=!1)}},computed:Object(r["a"])(Object(r["a"])(Object(r["a"])({},Object(S["mapState"])("setting",["isMobile","theme","layout","footerLinks","copyright","fixedHeader","fixedSideBar","fixedTabs","hideSetting","multiPage"])),Object(S["mapGetters"])("setting",["firstMenu","subMenu","menuData"])),{},{sideMenuWidth:function(){return this.collapsed?"80px":"256px"},headerStyle:function(){var e=this.fixedHeader&&"head"!==this.layout&&!this.isMobile?"calc(100% - ".concat(this.sideMenuWidth,")"):"100%",t=this.fixedHeader?"fixed":"static";return"width: ".concat(e,"; position: ").concat(t,";")},headMenuData:function(){var e=this.layout,t=this.menuData,n=this.firstMenu;return"mix"===e?n:t},sideMenuData:function(){var e=this.layout,t=this.menuData,n=this.subMenu;return"mix"===e?n:t}}),methods:Object(r["a"])(Object(r["a"])({},Object(S["mapMutations"])("setting",["correctPageMinHeight","setActivatedFirst"])),{},{toggleCollapse:function(){this.collapsed=!this.collapsed},onMenuSelect:function(){this.toggleCollapse()},setActivated:function(e){var t=this;if("mix"===this.layout){var n=e.matched;n=n.slice(0,n.length-1);var a,i=this.firstMenu,r=Object(c["a"])(i);try{var o=function(){var e=a.value;if(-1!==n.findIndex((function(t){return t.path===e.fullPath})))return t.setActivatedFirst(e.fullPath),"break"};for(r.s();!(a=r.n()).done;){var s=o();if("break"===s)break}}catch(u){r.e(u)}finally{r.f()}}}}),created:function(){this.correctPageMinHeight(this.minHeight-24),this.setActivated(this.$route)},beforeDestroy:function(){this.correctPageMinHeight(24-this.minHeight)}},Fe=qe,We=(n("ec28"),Object(m["a"])(Fe,o,s,!1,null,"7e439701",null)),Ue=We.exports,ze=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-menu",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"contextmenu",style:e.style,attrs:{selectedKeys:e.selectedKeys},on:{click:e.handleClick}},e._l(e.itemList,(function(t){return n("a-menu-item",{key:t.key},[t.icon?n("a-icon",{attrs:{type:t.icon}}):e._e(),n("span",[e._v(e._s(t.text))])],1)})),1)},Ge=[],Je={name:"Contextmenu",props:{visible:{type:Boolean,required:!1,default:!1},itemList:{type:Array,required:!0,default:function(){return[]}}},data:function(){return{left:0,top:0,target:null,meta:null,selectedKeys:[]}},computed:{style:function(){return{left:this.left+"px",top:this.top+"px"}}},created:function(){window.addEventListener("click",this.closeMenu),window.addEventListener("contextmenu",this.setPosition)},beforeDestroy:function(){window.removeEventListener("click",this.closeMenu),window.removeEventListener("contextmenu",this.setPosition)},methods:{closeMenu:function(){this.$emit("update:visible",!1)},setPosition:function(e){this.left=e.clientX,this.top=e.clientY,this.target=e.target,this.meta=e.meta},handleClick:function(e){var t=e.key;this.$emit("select",t,this.target,this.meta),this.closeMenu()}}},Ve=Je,Xe=(n("98c7"),Object(m["a"])(Ve,ze,Ge,!1,null,"c63a6fc2",null)),Ye=Xe.exports,Ze=n("7664"),Qe=n("ca00"),et=[String,RegExp,Array];function tt(e,t){if(Array.isArray(e)){if(e.indexOf(t)>-1)return!0;var n,a=Object(c["a"])(e);try{for(a.s();!(n=a.n()).done;){var i=n.value;if(Object(Qe["c"])(i)&&i.test(t))return!0}}catch(r){a.e(r)}finally{a.f()}return!1}return"string"===typeof e?e.split(",").indexOf(t)>-1:!!Object(Qe["c"])(e)&&e.test(t)}function nt(e){return e&&(e.Ctor.options.name||e.tag)}function at(e){var t=e.componentOptions,n=e.key;return null==n?t.Ctor.cid+(t.tag?"::".concat(t.tag):""):n+t.Ctor.cid}function it(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(Object(Qe["b"])(n)&&(Object(Qe["b"])(n.componentOptions)||n.isAsyncPlaceholder))return n}}function rt(e,t){var n=e.cache,a=e.keys,i=e._vnode;for(var r in n){var o=n[r];if(o){var s=nt(o.componentOptions),c=at(o);s&&!t(s,c)&&st(n,r,a,i)}}}function ot(e,t,n){var a=e[t];a&&a.componentInstance.$destroy(),e[t]=null,Object(Qe["d"])(n,t)}function st(e,t,n,a){var i=e[t];!i||a&&i.tag===a.tag||i.componentInstance.$destroy(),e[t]=null,Object(Qe["d"])(n,t)}var ct={name:"AKeepAlive",abstract:!0,model:{prop:"clearCaches",event:"clear"},props:{include:et,exclude:et,excludeKeys:et,max:[String,Number],clearCaches:Array},watch:{clearCaches:function(e){if(e&&e.length>0){var t=this.cache,n=this.keys;e.forEach((function(e){ot(t,e,n)})),this.$emit("clear",[])}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)st(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){rt(e,(function(e){return tt(t,e)}))})),this.$watch("exclude",(function(t){rt(e,(function(e){return!tt(t,e)}))})),this.$watch("excludeKeys",(function(t){rt(e,(function(e,n){return!tt(t,n)}))}))},render:function(){var e=this.$slots.default,t=it(e),n=t&&t.componentOptions;if(n){var a=nt(n),i=at(t),r=this.include,o=this.exclude,s=this.excludeKeys;if(r&&(!a||!tt(r,a))||o&&a&&tt(o,a)||s&&i&&tt(s,i))return t;var c=this.cache,u=this.keys,l=null==t.key?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):t.key+n.Ctor.cid;c[l]?(t.componentInstance=c[l].componentInstance,Object(Qe["d"])(u,l),u.push(l)):(c[l]=t,u.push(l),this.max&&u.length>parseInt(this.max)&&st(c,u[0],u,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},ut=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["tabs-head",e.layout,e.pageWidth]},[n("a-tabs",{class:["tabs-container",e.layout,e.pageWidth,{affixed:e.affixed,"fixed-header":e.fixedHeader,collapsed:e.adminLayout.collapsed}],attrs:{type:"editable-card","active-key":e.active,"hide-add":!0}},[n("a-tooltip",{attrs:{slot:"tabBarExtraContent",placement:"left",title:e.lockTitle},slot:"tabBarExtraContent"},[n("a-icon",{staticClass:"header-lock",attrs:{theme:"filled",type:e.fixedTabs?"lock":"unlock"},on:{click:e.onLockClick}})],1),e._l(e.pageList,(function(t){return n("a-tab-pane",{key:t.path},[n("div",{staticClass:"tab",attrs:{slot:"tab"},on:{contextmenu:function(n){return e.onContextmenu(t.path,n)}},slot:"tab"},[n("a-icon",{class:["icon-sync",{hide:t.path!==e.active&&!t.loading}],attrs:{type:t.loading?"loading":"sync"},on:{click:function(n){return e.onRefresh(t)}}}),n("div",{staticClass:"title",on:{click:function(n){return e.onTabClick(t.path)}}},[e._v(e._s(e.pageName(t)))]),t.unclose?e._e():n("a-icon",{staticClass:"icon-close",attrs:{type:"close"},on:{click:function(n){return e.onClose(t.path)}}})],1)])}))],2),e.affixed?n("div",{staticClass:"virtual-tabs"}):e._e()],1)},lt=[],dt={name:"TabsHead",i18n:{messages:{CN:{lock:"点击锁定页签头",unlock:"点击解除锁定"},HK:{lock:"點擊鎖定頁簽頭",unlock:"點擊解除鎖定"},US:{lock:"click to lock the tabs head",unlock:"click to unlock"}}},props:{pageList:Array,active:String,fixed:Boolean},data:function(){return{affixed:!1}},inject:["adminLayout"],created:function(){this.affixed=this.fixedTabs},computed:Object(r["a"])(Object(r["a"])({},Object(S["mapState"])("setting",["layout","pageWidth","fixedHeader","fixedTabs","customTitles"])),{},{lockTitle:function(){return this.$t(this.fixedTabs?"unlock":"lock")}}),methods:Object(r["a"])(Object(r["a"])({},Object(S["mapMutations"])("setting",["setFixedTabs"])),{},{onLockClick:function(){var e=this;this.setFixedTabs(!this.fixedTabs),this.fixedTabs?setTimeout((function(){e.affixed=!0}),200):this.affixed=!1},onTabClick:function(e){this.active!==e&&this.$emit("change",e)},onClose:function(e){this.$emit("close",e)},onRefresh:function(e){this.$emit("refresh",e.path,e)},onContextmenu:function(e,t){this.$emit("contextmenu",e,t)},pageName:function(e){var t=e.fullPath.split("?")[0],n=this.customTitles.find((function(e){return e.path===t}));return n&&n.title||e.title||this.$t(Object(N["b"])(e.keyPath))}})},ht=dt,ft=(n("b262"),Object(m["a"])(ht,ut,lt,!1,null,"a35498a8",null)),pt=ft.exports,mt={name:"TabsView",i18n:n("6dd7"),components:{TabsHead:pt,PageToggleTransition:Ze["a"],Contextmenu:Ye,AdminLayout:Ue,AKeepAlive:ct},data:function(){return{clearCaches:[],pageList:[],activePage:"",menuVisible:!1,refreshing:!1,excludeKeys:[]}},computed:Object(r["a"])(Object(r["a"])({},Object(S["mapState"])("setting",["multiPage","cachePage","animate","layout","pageWidth"])),{},{menuItemList:function(){return[{key:"1",icon:"vertical-right",text:this.$t("closeLeft")},{key:"2",icon:"vertical-left",text:this.$t("closeRight")},{key:"3",icon:"close",text:this.$t("closeOthers")},{key:"4",icon:"sync",text:this.$t("refresh")}]},tabsOffset:function(){return this.multiPage?24:0}}),created:function(){var e,t,n=this;this.loadCacheConfig(null===(e=this.$router)||void 0===e||null===(t=e.options)||void 0===t?void 0:t.routes),this.loadCachedTabs();var a=this.$route;-1===this.pageList.findIndex((function(e){return e.path===a.path}))&&this.pageList.push(this.createPage(a)),this.activePage=a.path,this.multiPage&&(this.$nextTick((function(){n.setCachedKey(a)})),this.addListener())},mounted:function(){this.correctPageMinHeight(-this.tabsOffset)},beforeDestroy:function(){this.removeListener(),this.correctPageMinHeight(this.tabsOffset)},watch:{"$router.options.routes":function(e){this.excludeKeys=[],this.loadCacheConfig(e)},$route:function(e){var t=this;this.activePage=e.path;var n=this.pageList.find((function(t){return t.path===e.path}));this.multiPage?n?n.fullPath=e.fullPath:n||this.pageList.push(this.createPage(e)):this.pageList=[this.createPage(e)],this.multiPage&&this.$nextTick((function(){t.setCachedKey(e)}))},multiPage:function(e){e?this.addListener():(this.pageList=[this.createPage(this.$route)],this.removeListener())},tabsOffset:function(e,t){this.correctPageMinHeight(t-e)}},methods:Object(r["a"])({changePage:function(e){this.activePage=e;var t=this.pageList.find((function(t){return t.path===e}));this.$router.push(t.fullPath)},remove:function(e,t){if(1===this.pageList.length)return this.$message.warning(this.$t("warn"));var n=this.pageList.findIndex((function(t){return t.path===e}));this.clearCaches=this.pageList.splice(n,1).map((function(e){return e.cachedKey})),t?this.$router.push(t):e===this.activePage&&(n=n>=this.pageList.length?this.pageList.length-1:n,this.activePage=this.pageList[n].path,this.$router.push(this.activePage))},refresh:function(e,t){t=t||this.pageList.find((function(t){return t.path===e})),t.loading=!0,this.clearCache(t),e===this.activePage?this.reloadContent((function(){return t.loading=!1})):setTimeout((function(){return t.loading=!1}),500)},onContextmenu:function(e,t){e&&(t.preventDefault(),t.meta=e,this.menuVisible=!0)},onMenuSelect:function(e,t,n){switch(e){case"1":this.closeLeft(n);break;case"2":this.closeRight(n);break;case"3":this.closeOthers(n);break;case"4":this.refresh(n);break;default:break}},closeOthers:function(e){var t=this.pageList.filter((function(t){return t.path!==e&&!t.unclose}));this.clearCaches=t.map((function(e){return e.cachedKey})),this.pageList=this.pageList.filter((function(e){return!t.includes(e)})),this.activePage!=e&&(this.activePage=e,this.$router.push(this.activePage))},closeLeft:function(e){var t=this,n=this.pageList.findIndex((function(t){return t.path===e})),a=this.pageList.filter((function(e,t){return t<n&&!e.unclose}));this.clearCaches=a.map((function(e){return e.cachedKey})),this.pageList=this.pageList.filter((function(e){return!a.includes(e)})),this.pageList.find((function(e){return e.path===t.activePage}))||(this.activePage=e,this.$router.push(this.activePage))},closeRight:function(e){var t=this,n=this.pageList.findIndex((function(t){return t.path===e})),a=this.pageList.filter((function(e,t){return t>n&&!e.unclose}));this.clearCaches=a.map((function(e){return e.cachedKey})),this.pageList=this.pageList.filter((function(e){return!a.includes(e)})),this.pageList.find((function(e){return e.path===t.activePage}))||(this.activePage=e,this.$router.push(this.activePage))},clearCache:function(e){e._init_=!1,this.clearCaches=[e.cachedKey]},reloadContent:function(e){var t=this;this.refreshing=!0,setTimeout((function(){t.refreshing=!1,t.$nextTick((function(){t.setCachedKey(t.$route),"function"===typeof e&&e.apply(t,[])}))}),200)},pageName:function(e){return this.$t(Object(N["b"])(e.keyPath))},addListener:function(){window.addEventListener("page:close",this.closePageListener),window.addEventListener("page:refresh",this.refreshPageListener),window.addEventListener("unload",this.unloadListener)},removeListener:function(){window.removeEventListener("page:close",this.closePageListener),window.removeEventListener("page:refresh",this.refreshPageListener),window.removeEventListener("unload",this.unloadListener)},closePageListener:function(e){var t=e.detail,n=t.closeRoute,a=t.nextRoute,i="string"===typeof n?n:n.path,r=i&&i.split("?")[0];this.remove(r,a)},refreshPageListener:function(e){var t=e.detail.pageKey,n=t&&t.split("?")[0];this.refresh(n)},unloadListener:function(){var e=this.pageList.map((function(e){return Object(r["a"])(Object(r["a"])({},e),{},{_init_:!1})}));sessionStorage.setItem("admin.tabs",JSON.stringify(e))},createPage:function(e){return{keyPath:e.matched[e.matched.length-1].path,fullPath:e.fullPath,loading:!1,path:e.path,title:e.meta&&e.meta.page&&e.meta.page.title,unclose:e.meta&&e.meta.page&&!1===e.meta.page.closable}},setCachedKey:function(e){var t=this.pageList.find((function(t){return t.path===e.path}));if(t.unclose=e.meta&&e.meta.page&&!1===e.meta.page.closable,!t._init_){var n=this.$refs.tabContent.$vnode;t.cachedKey=n.key+n.componentOptions.Ctor.cid,t._init_=!0}},loadCachedTabs:function(){var e=sessionStorage.getItem("admin.tabs");if(e)try{var t=JSON.parse(e);t.length>0&&(this.pageList=t)}catch(n){console.warn("failed to load cached tabs, got exception:",n)}finally{sessionStorage.removeItem("admin.tabs")}},loadCacheConfig:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.forEach((function(e){var a,i,r,o,s=null===(a=null!==(i=null===(r=e.meta)||void 0===r||null===(o=r.page)||void 0===o?void 0:o.cacheAble)&&void 0!==i?i:n)||void 0===a||a;s||t.excludeKeys.push(new RegExp("".concat(e.path,"\\d+$"))),e.children&&t.loadCacheConfig(e.children,s)}))}},Object(S["mapMutations"])("setting",["correctPageMinHeight"]))},gt=mt,bt=(n("f92f"),Object(m["a"])(gt,a,i,!1,null,"40f2925a",null));t["a"]=bt.exports},bc8f:function(e,t,n){var a=n("448a").default;n("d81d"),n("b64b"),n("a15b"),n("d3b7"),n("6062"),n("3ca3"),n("ddb0"),n("fb6a"),n("ac1f"),n("1276");var i=n("13e8"),r=n("009a"),o=r.generate,s=n("6364"),c=s.ADMIN,u=s.ANTD,l=n("f121"),d=c.theme.mode;function h(e,t){var n=t&&t==d.NIGHT?{theme:"dark"}:void 0;return o(e,n)}function f(e){var t=e&&e==d.NIGHT?{theme:"dark"}:void 0,n=u.primary,a=n.success,i=n.warning,r=n.error,s=l.theme,c=s.success,h=s.warning,f=s.error;a=a&&c,i=a&&h,r=a&&f;var p=o(a,t),m=o(i,t),g=o(r,t);return{success:p,warning:m,error:g}}function p(e,t){return t==d.NIGHT?u.primary.night.menuColors:e==u.primary.color?u.primary.dark.menuColors:[i.darken(e,.93),i.darken(e,.83),i.darken(e,.73)]}function m(e,t){var n=h(e,t),i=n[5],r=h(i,d.LIGHT),o=p(e,t),s=u.theme[t],c=Object.keys(s).map((function(e){return s[e]})).map((function(e){return b(e)?e:g(e).join(",")}));c=a(new Set(c));var l=[g(i).join(",")],m=f(t);return{primary:i,mainColors:n,subColors:r,menuColors:o,contentColors:c,rgbColors:l,functionalColors:m}}function g(e){if(b(e))return i.toNum3(e);var t="";v(e)?t=e.slice(5,e.length):y(e)&&(t=e.slice(6,e.lastIndexOf(",")));var n=t.split(","),a=parseInt(n[0]),r=parseInt(n[1]),o=parseInt(n[2]);return[a,r,o]}function b(e){return e.length>=4&&"#"==e[0]}function v(e){return e.length>=10&&"rgb"==e.slice(0,3)}function y(e){return e.length>=13&&"rgba"==e.slice(0,4)}e.exports={isHex:b,isRgb:v,isRgba:y,toNum3:g,getAntdColors:h,getMenuColors:p,getThemeToggleColors:m,getFunctionalColors:f}},be65:function(e,t){e.exports=Cookies},be67:function(e,t,n){"use strict";n.r(t);var a=n("a09f"),i=n("89a5"),r=["login","root",{router:"exp404",path:"*",name:"404"},{router:"exp403",path:"/403",name:"403"}],o={routes:Object(i["e"])(r,a["a"])};t["default"]=o},c071:function(e,t,n){"use strict";n("9965")},c480:function(e,t,n){},c5d8:function(e,t,n){},c7f3:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("page-toggle-transition",{attrs:{disabled:e.animate.disabled,animate:e.animate.name,direction:e.animate.direction}},[n("router-view")],1)},i=[],r=n("5530"),o=n("7664"),s=n("5880"),c={name:"BlankView",components:{PageToggleTransition:o["a"]},computed:Object(r["a"])({},Object(s["mapState"])("setting",["multiPage","animate"]))},u=c,l=n("2877"),d=Object(l["a"])(u,a,i,!1,null,"2812dbbd",null);t["default"]=d.exports},c8c3:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("page-layout",{attrs:{desc:e.desc,linkList:e.linkList}},[this.extraImage&&!e.isMobile?n("div",{staticClass:"extraImg",attrs:{slot:"extra"},slot:"extra"},[n("img",{attrs:{src:e.extraImage}})]):e._e(),n("page-toggle-transition",{attrs:{disabled:e.animate.disabled,animate:e.animate.name,direction:e.animate.direction}},[n("router-view",{ref:"page"})],1)],1)},i=[],r=n("5530"),o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"page-layout"},[n("page-header",{ref:"pageHeader",style:"margin-top: "+(e.multiPage?0:-24)+"px",attrs:{breadcrumb:e.breadcrumb,title:e.pageTitle,logo:e.logo,avatar:e.avatar}},[e._t("action",null,{slot:"action"}),e._t("headerContent",null,{slot:"content"}),!this.$slots.headerContent&&e.desc?n("div",{attrs:{slot:"content"},slot:"content"},[n("p",[e._v(e._s(e.desc))]),this.linkList?n("div",{staticClass:"link"},[e._l(e.linkList,(function(t,a){return[n("a",{key:a,attrs:{href:t.href}},[n("a-icon",{attrs:{type:t.icon}}),e._v(e._s(t.title))],1)]}))],2):e._e()]):e._e(),this.$slots.extra?e._t("extra",null,{slot:"extra"}):e._e()],2),n("div",{ref:"page",class:["page-content",e.layout,e.pageWidth]},[e._t("default")],2)],1)},s=[],c=(n("159b"),n("4de4"),n("caad"),n("2532"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["page-header",e.layout,e.pageWidth]},[n("div",{staticClass:"page-header-wide"},[n("div",{staticClass:"breadcrumb"},[n("a-breadcrumb",e._l(e.breadcrumb,(function(t,a){return n("a-breadcrumb-item",{key:a},[n("span",[e._v(e._s(t))])])})),1)],1),n("div",{staticClass:"detail"},[n("div",{staticClass:"main"},[n("div",{staticClass:"row"},[e.showPageTitle&&e.title?n("h1",{staticClass:"title"},[e._v(e._s(e.title))]):e._e(),n("div",{staticClass:"action"},[e._t("action")],2)]),n("div",{staticClass:"row"},[this.$slots.content?n("div",{staticClass:"content"},[e.avatar?n("div",{staticClass:"avatar"},[n("a-avatar",{attrs:{src:e.avatar,size:72}})],1):e._e(),e._t("content")],2):e._e(),this.$slots.extra?n("div",{staticClass:"extra"},[e._t("extra")],2):e._e()])])])])])}),u=[],l=n("5880"),d={name:"PageHeader",props:{title:{type:[String,Boolean],required:!1},breadcrumb:{type:Array,required:!1},logo:{type:String,required:!1},avatar:{type:String,required:!1}},computed:Object(r["a"])({},Object(l["mapState"])("setting",["layout","showPageTitle","pageWidth"]))},h=d,f=(n("6593"),n("2877")),p=Object(f["a"])(h,c,u,!1,null,"40581fd6",null),m=p.exports,g=n("89a5"),b={name:"PageLayout",components:{PageHeader:m},props:["desc","logo","title","avatar","linkList","extraImage"],data:function(){return{page:{},pageHeaderHeight:0}},watch:{$route:function(){this.page=this.$route.meta.page}},updated:function(){this._inactive||this.updatePageHeight()},activated:function(){this.updatePageHeight()},deactivated:function(){this.updatePageHeight(0)},mounted:function(){this.updatePageHeight()},created:function(){this.page=this.$route.meta.page},beforeDestroy:function(){this.updatePageHeight(0)},computed:Object(r["a"])(Object(r["a"])({},Object(l["mapState"])("setting",["layout","multiPage","pageMinHeight","pageWidth","customTitles"])),{},{pageTitle:function(){var e=this.page&&this.page.title;return this.customTitle||e&&this.$t(e)||this.title||this.routeName},routeName:function(){var e=this.$route;return this.$t(Object(g["b"])(e.matched[e.matched.length-1].path))},breadcrumb:function(){var e=this,t=this.page,n=t&&t.breadcrumb;if(n){var a=[];return n.forEach((function(t){a.push(e.$t(t))})),a}return this.getRouteBreadcrumb()},marginCorrect:function(){return this.multiPage?24:0}}),methods:Object(r["a"])(Object(r["a"])({},Object(l["mapMutations"])("setting",["correctPageMinHeight"])),{},{getRouteBreadcrumb:function(){var e=this,t=this.$route.matched,n=this.$route.path,a=[];t.filter((function(e){return n.includes(e.path)})).forEach((function(t){var n=0===t.path.length?"/home":t.path;a.push(e.$t(Object(g["b"])(n)))}));var i=this.page&&this.page.title;return(this.customTitle||i)&&(a[a.length-1]=this.customTitle||i),a},updatePageHeight:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$refs.pageHeader.$el.offsetHeight+this.marginCorrect;this.correctPageMinHeight(this.pageHeaderHeight-e),this.pageHeaderHeight=e}})},v=b,y=(n("aa1d"),Object(f["a"])(v,o,s,!1,null,null,null)),k=y.exports,x=n("7664"),C={name:"PageView",components:{PageToggleTransition:x["a"],PageLayout:k},data:function(){return{page:{}}},computed:Object(r["a"])(Object(r["a"])({},Object(l["mapState"])("setting",["isMobile","multiPage","animate"])),{},{desc:function(){return this.page.desc},linkList:function(){return this.page.linkList},extraImage:function(){return this.page.extraImage}}),mounted:function(){this.page=this.$refs.page},updated:function(){this.page=this.$refs.page}},O=C,w=(n("7076"),Object(f["a"])(O,a,i,!1,null,"38fc72ea",null));t["default"]=w.exports},ca00:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return c}));n("a434"),n("d3b7");var a=n("8e95"),i=n.n(a);function r(e){return void 0!==e&&null!==e}function o(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}function s(e){return"[object RegExp]"===u.call(e)}function c(e){var t={match:function(){e&&e(!0)},unmatch:function(){e&&e(!1)}};i.a.register("only screen and (max-width: 767.99px)",t)}var u=Object.prototype.toString},cebe:function(e,t){e.exports=axios},cf8d:function(e,t,n){},d157:function(e,t,n){"use strict";n("e6d9")},d87f:function(e,t){e.exports={messages:{CN:{theme:{title:"整体风格设置",light:"亮色菜单风格",dark:"暗色菜单风格",night:"深夜模式",color:"主题色"},navigate:{title:"导航设置",side:"侧边导航",head:"顶部导航",mix:"混合导航",content:{title:"内容区域宽度",fluid:"流式",fixed:"定宽"},fixedHeader:"固定Header",fixedSideBar:"固定侧边栏"},other:{title:"其他设置",weekMode:"色弱模式",multiPages:"多页签模式",hideSetting:"隐藏设置抽屉"},animate:{title:"页面切换动画",disable:"禁用动画",effect:"动画效果",direction:"动画方向"},alert:"拷贝配置后,直接覆盖文件 src/config/config.js 中的全部内容,然后重启即可。(注意:仅会拷贝与默认配置不同的项)",copy:"拷贝配置",save:"保存配置",reset:"重置配置"},HK:{theme:{title:"整體風格設置",light:"亮色菜單風格",dark:"暗色菜單風格",night:"深夜模式",color:"主題色"},navigate:{title:"導航設置",side:"側邊導航",head:"頂部導航",content:{title:"內容區域寬度",fluid:"流式",fixed:"定寬"},fixedHeader:"固定Header",fixedSideBar:"固定側邊欄"},other:{title:"其他設置",weekMode:"色弱模式",multiPages:"多頁簽模式",hideSetting:"隱藏設置抽屜"},animate:{title:"頁面切換動畫",disable:"禁用動畫",effect:"動畫效果",direction:"動畫方向"},alert:"拷貝配置后,直接覆蓋文件 src/config/config.js 中的全部內容,然後重啟即可。(注意:僅會拷貝與默認配置不同的項)",copy:"拷貝配置",save:"保存配置",reset:"重置配置"},US:{theme:{title:"Page Style Setting",light:"Light Style",dark:"Dark Style",night:"Night Style",color:"Theme Color"},navigate:{title:"Navigation Mode",side:"Side Menu Layout",head:"Top Menu Layout",mix:"Mix Menu Layout",content:{title:"Content Width",fluid:"Fluid",fixed:"Fixed"},fixedHeader:"Fixed Header",fixedSideBar:"Fixed SideBar"},other:{title:"Other Setting",weekMode:"Week Mode",multiPages:"Multi Pages",hideSetting:"Hide Setting Drawer"},animate:{title:"Page Toggle Animation",disable:"Disable",effect:"Effect",direction:"Direction"},alert:"After copying the configuration code, directly cover all contents in the file src/config/config.js, then restart the server. (Note: only items that are different from the default configuration will be copied)",copy:"Copy Setting",save:"Save",reset:"Reset"}}}},dbcf:function(e,t,n){"use strict";n("21a7")},e1a0:function(e,t){var n={primary:{color:"#1890ff",warning:"#faad14",success:"#52c41a",error:"#f5222d",light:{menuColors:["#000c17","#001529","#002140"]},dark:{menuColors:["#000c17","#001529","#002140"]},night:{menuColors:["#151515","#1f1f1f","#1e1e1e"]}},theme:{dark:{"layout-body-background":"#f0f2f5","body-background":"#fff","component-background":"#fff","heading-color":"rgba(0, 0, 0, 0.85)","text-color":"rgba(0, 0, 0, 0.65)","text-color-inverse":"#fff","text-color-secondary":"rgba(0, 0, 0, 0.45)","shadow-color":"rgba(0, 0, 0, 0.15)","border-color-split":"#f0f0f0","background-color-light":"#fafafa","background-color-base":"#f5f5f5","table-selected-row-bg":"#fafafa","table-expanded-row-bg":"#fbfbfb","checkbox-check-color":"#fff","disabled-color":"rgba(0, 0, 0, 0.25)","menu-dark-color":"rgba(254, 254, 254, 0.65)","menu-dark-highlight-color":"#fefefe","menu-dark-arrow-color":"#fefefe","btn-primary-color":"#fff"},light:{"layout-body-background":"#f0f2f5","body-background":"#fff","component-background":"#fff","heading-color":"rgba(0, 0, 0, 0.85)","text-color":"rgba(0, 0, 0, 0.65)","text-color-inverse":"#fff","text-color-secondary":"rgba(0, 0, 0, 0.45)","shadow-color":"rgba(0, 0, 0, 0.15)","border-color-split":"#f0f0f0","background-color-light":"#fafafa","background-color-base":"#f5f5f5","table-selected-row-bg":"#fafafa","table-expanded-row-bg":"#fbfbfb","checkbox-check-color":"#fff","disabled-color":"rgba(0, 0, 0, 0.25)","menu-dark-color":"rgba(1, 1, 1, 0.65)","menu-dark-highlight-color":"#fefefe","menu-dark-arrow-color":"#fefefe","btn-primary-color":"#fff"},night:{"layout-body-background":"#000","body-background":"#141414","component-background":"#141414","heading-color":"rgba(255, 255, 255, 0.85)","text-color":"rgba(255, 255, 255, 0.85)","text-color-inverse":"#141414","text-color-secondary":"rgba(255, 255, 255, 0.45)","shadow-color":"rgba(255, 255, 255, 0.15)","border-color-split":"#303030","background-color-light":"#ffffff0a","background-color-base":"#2a2a2a","table-selected-row-bg":"#ffffff0a","table-expanded-row-bg":"#ffffff0b","checkbox-check-color":"#141414","disabled-color":"rgba(255, 255, 255, 0.25)","menu-dark-color":"rgba(254, 254, 254, 0.65)","menu-dark-highlight-color":"#fefefe","menu-dark-arrow-color":"#fefefe","btn-primary-color":"#141414"}}};e.exports=n},e68a:function(e,t,n){},e6d9:function(e,t,n){},ec28:function(e,t,n){"use strict";n("b826")},f121:function(e,t,n){var a=n("3c4e"),i=n("a078"),r=n("6364"),o=r.setting,s=a(o,i);e.exports=s},f92f:function(e,t,n){"use strict";n("afa6")},fc32:function(e,t,n){"use strict";n("1ff8")},fcaa:function(e,t){e.exports={lang:"CN",theme:{color:"#1890ff",mode:"dark",success:"#52c41a",warning:"#faad14",error:"#f5222f"},layout:"side",fixedHeader:!1,fixedSideBar:!0,fixedTabs:!1,pageWidth:"fixed",weekMode:!1,multiPage:!1,cachePage:!0,hideSetting:!1,systemName:"物业ERP",copyright:"2021 路涛科技",asyncRoutes:!1,showPageTitle:!0,filterMenu:!0,animate:{disabled:!1,name:"bounce",direction:"left"},footerLinks:[]}}});