BookingService/frontend/dist/static/js/app.c3c48851.js

2 lines
42 KiB
JavaScript

(function(e){function t(t){for(var a,i,s=t[0],c=t[1],l=t[2],u=0,d=[];u<s.length;u++)i=s[u],r[i]&&d.push(r[i][0]),r[i]=0;for(a in c)Object.prototype.hasOwnProperty.call(c,a)&&(e[a]=c[a]);p&&p(t);while(d.length)d.shift()();return o.push.apply(o,l||[]),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/"+({asider:"asider",fail:"fail",user:"user"}[e]||e)+"."+{asider:"0aaae6b5","chunk-2d209ade":"3e698d10",fail:"40be6fc6",user:"d638c020"}[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={fail:1,user: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/"+({asider:"asider",fail:"fail",user:"user"}[e]||e)+"."+{asider:"31d6cfe0","chunk-2d209ade":"31d6cfe0",fail:"4c41990b",user:"d3b41a87"}[e]+".css",r=c.p+a,o=document.getElementsByTagName("link"),s=0;s<o.length;s++){var l=o[s],u=l.getAttribute("data-href")||l.getAttribute("href");if("stylesheet"===l.rel&&(u===a||u===r))return t()}var d=document.getElementsByTagName("style");for(s=0;s<d.length;s++){l=d[s],u=l.getAttribute("data-href");if(u===a||u===r)return t()}var p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.onload=t,p.onerror=function(t){var a=t&&t.target&&t.target.src||r,o=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");o.request=a,delete i[e],p.parentNode.removeChild(p),n(o)},p.href=r;var m=document.getElementsByTagName("head")[0];m.appendChild(p)}).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 l,u=document.createElement("script");u.charset="utf-8",u.timeout=120,c.nc&&u.setAttribute("nonce",c.nc),u.src=s(e),l=function(t){u.onerror=u.onload=null,clearTimeout(d);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,o=new Error("Loading chunk "+e+" failed.\n("+a+": "+i+")");o.type=a,o.request=i,n[1](o)}r[e]=void 0}};var d=setTimeout(function(){l({type:"timeout",target:u})},12e4);u.onerror=u.onload=l,document.head.appendChild(u)}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 l=window["webpackJsonp"]=window["webpackJsonp"]||[],u=l.push.bind(l);l.push=t,l=l.slice();for(var d=0;d<l.length;d++)t(l[d]);var p=u;o.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},"034f":function(e,t,n){"use strict";var a=n("64a9"),i=n.n(a);i.a},"19b6":function(e,t,n){},"1e26":function(e,t,n){"use strict";var a=n("a92f"),i=n.n(a);i.a},"1ec6":function(e,t,n){},2278:function(e,t,n){},"344b":function(e,t,n){},"56d7":function(e,t,n){"use strict";n.r(t);n("cadf"),n("551c"),n("f751"),n("097d");var a,i,r=n("2b0e"),o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-locale-provider",{attrs:{locale:e.locale}},[n("div",{attrs:{id:"app"}},[n("router-view")],1)])},s=[],c=n("677e"),l=n.n(c),u=n("8e95"),d=n.n(u),p={DESKTOP:"desktop",TABLET:"tablet",MOBILE:"mobile"},m=function(e){var t={match:function(){e&&e(p.DESKTOP)}},n={match:function(){e&&e(p.TABLET)}},a={match:function(){e&&e(p.MOBILE)}};d.a.register("screen and (max-width: 576px)",a).register("screen and (min-width: 576px) and (max-width: 1199px)",n).register("screen and (min-width: 1200px)",t)},h={data:function(){return{locale:l.a}},mounted:function(){var e=this.$store;m(function(t){switch(t){case p.DESKTOP:e.commit("TOGGLE_DEVICE","desktop"),e.dispatch("setSidebar",!0);break;case p.TABLET:e.commit("TOGGLE_DEVICE","tablet"),e.dispatch("setSidebar",!1);break;case p.MOBILE:default:e.commit("TOGGLE_DEVICE","mobile"),e.dispatch("setSidebar",!0);break}})}},f=h,g=(n("034f"),n("2877")),b=Object(g["a"])(f,o,s,!1,null,null,null),v=b.exports,_=n("8c4f"),y=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["user-layout-wrapper",e.device],attrs:{id:"userLayout"}},[n("div",{staticClass:"container"},[e._m(0),n("route-view"),n("div",{staticClass:"footer"},[e._v("\n Copyright\n "),n("a-icon",{attrs:{type:"copyright"}}),e._v("\n "+e._s(e.year)+"\n "),e._m(1)],1)],1)])},E=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"top"},[a("div",{staticClass:"header"},[a("a",{attrs:{href:"/"}},[a("img",{staticClass:"logo",attrs:{src:n("9b19"),alt:"logo"}}),a("span",{staticClass:"title"},[e._v("建筑咨询管理系统")])])]),a("div",{staticClass:"desc"},[e._v("\n 详细介绍\n ")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",[n("a",{attrs:{href:"https://ie.wh.sdu.edu.cn/",target:"_blank"}},[e._v("山东大学(威海)机电与信息工程学院")]),e._v("\n 荣誉出品")])}],T={name:"RouteView",data:function(){return{}},render:function(){var e=arguments[0],t=this.$route.meta,n=this.$store.getters,a=e("keep-alive",[e("router-view")]),i=e("router-view");return t.keepAlive||n.multiTab?a:i}},k=T,C=Object(g["a"])(k,a,i,!1,null,null,null),L=C.exports,O=n("cebc"),x=n("2f62"),S={computed:Object(O["a"])({},Object(x["d"])({layoutMode:function(e){return e.app.layout},navTheme:function(e){return e.app.theme},primaryColor:function(e){return e.app.color},colorWeak:function(e){return e.app.weak},fixedHeader:function(e){return e.app.fixedHeader},fixSiderbar:function(e){return e.app.fixSiderbar},fixSidebar:function(e){return e.app.fixSiderbar},contentWidth:function(e){return e.app.contentWidth},autoHideHeader:function(e){return e.app.autoHideHeader},sidebarOpened:function(e){return e.app.sidebar},multiTab:function(e){return e.app.multiTab}})),methods:{isTopMenu:function(){return"topmenu"===this.layoutMode},isSideMenu:function(){return!this.isTopMenu()}}},w={computed:Object(O["a"])({},Object(x["d"])({device:function(e){return e.app.device}})),methods:{isMobile:function(){return this.device===p.MOBILE},isDesktop:function(){return this.device===p.DESKTOP},isTablet:function(){return this.device===p.TABLET}}},D={name:"UserLayout",components:{RouteView:L},mixins:[w],data:function(){return{year:(new Date).getFullYear()}},mounted:function(){document.body.classList.add("userLayout")},beforeDestroy:function(){document.body.classList.remove("userLayout")}},I=D,G=(n("c247"),Object(g["a"])(I,y,E,!1,null,"57143c36",null)),A=G.exports,$=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("router-view")],1)},M=[],H={name:"BlankLayout"},R=H,j=Object(g["a"])(R,$,M,!1,null,"a06b4a0c",null),B=(j.exports,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("global-layout",[e.$store.getters.multiTab?n("multi-tab"):e._e(),n("transition",{attrs:{name:"page-transition"}},[n("route-view")],1)],1)}),P=[],F=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{margin:"-23px -24px 24px -24px"}},[n("a-tabs",{attrs:{hideAdd:"",type:"editable-card",tabBarStyle:{background:"#FFF",margin:0,paddingLeft:"16px",paddingTop:"1px"}},on:{edit:e.onEdit},model:{value:e.activeKey,callback:function(t){e.activeKey=t},expression:"activeKey"}},e._l(e.pages,function(t){return n("a-tab-pane",{key:t.fullPath,style:{height:0},attrs:{tab:t.meta.title,closable:e.pages.length>1}})}),1)],1)},K=[],q={name:"MultiTab",data:function(){return{fullPathList:[],pages:[],activeKey:"",newTabIndex:0}},created:function(){this.pages.push(this.$route),this.fullPathList.push(this.$route.fullPath)},methods:{onEdit:function(e,t){this[t](e)},remove:function(e){1!==this.pages.length&&(this.pages=this.pages.filter(function(t){return t.fullPath!==e}),this.fullPathList=this.fullPathList.filter(function(t){return t!==e}))}},watch:{$route:function(e){this.activeKey=e.fullPath,this.fullPathList.indexOf(e.fullPath)<0&&(this.fullPathList.push(e.fullPath),this.pages.push(e))},activeKey:function(e){this.$router.push({path:e})}}},U=q,N=Object(g["a"])(U,F,K,!1,null,null,null),Y=N.exports,W=Y,X=function(){var e=this,t=this,n=t.$createElement,a=t._self._c||n;return a("a-layout",{staticClass:"layout",class:[t.device]},[t.isSideMenu()?[t.isMobile()?a("a-drawer",{attrs:{wrapClassName:"drawer-sider "+t.navTheme,closable:!1,visible:t.collapsed,placement:"left"},on:{close:function(){return e.collapsed=!1}}},[a("side-menu",{attrs:{menus:t.menus,theme:t.navTheme,collapsed:!1,collapsible:!0,mode:"inline"},on:{menuSelect:t.menuSelect}})],1):a("side-menu",{attrs:{mode:"inline",menus:t.menus,theme:t.navTheme,collapsed:t.collapsed,collapsible:!0}})]:[t.isMobile()?a("a-drawer",{attrs:{wrapClassName:"drawer-sider "+t.navTheme,placement:"left",closable:!1,visible:t.collapsed},on:{close:function(){return e.collapsed=!1}}},[a("side-menu",{attrs:{menus:t.menus,theme:t.navTheme,collapsed:!1,collapsible:!0,mode:"inline"},on:{menuSelect:t.menuSelect}})],1):t._e()],a("a-layout",{class:[t.layoutMode,"content-width-"+t.contentWidth],style:{paddingLeft:t.contentPaddingLeft,minHeight:"100vh"}},[a("global-header",{attrs:{mode:t.layoutMode,menus:t.menus,theme:t.navTheme,collapsed:t.collapsed,device:t.device},on:{toggle:t.toggle}}),a("a-layout-content",{style:{margin:(t.$store.getters.multiTab,"24px 24px 0"),height:"100%",paddingTop:t.fixedHeader?"64px":"0"}},[t._t("default")],2),a("a-layout-footer",{staticStyle:{padding:"0"}},[a("global-footer")],1)],1)],2)},V=[],z=(n("7514"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-layout-sider",{class:["sider",e.isDesktop()?null:"shadow",e.theme,e.fixSiderbar?"ant-fixed-sidemenu":null],attrs:{width:"256px",collapsible:e.collapsible,trigger:null},model:{value:e.collapsed,callback:function(t){e.collapsed=t},expression:"collapsed"}},[n("logo"),n("s-menu",{staticStyle:{padding:"16px 0px"},attrs:{collapsed:e.collapsed,menu:e.menus,theme:e.theme,mode:e.mode},on:{select:e.onSelect}})],1)}),J=[],Q=n("1fca"),Z=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"logo"},[a("router-link",{attrs:{to:{name:"dashboard"}}},[a("img",{attrs:{src:n("9b19"),alt:"logo"}}),e.showTitle?a("h1",[e._v(e._s(e.title))]):e._e()])],1)},ee=[],te={name:"Logo",props:{title:{type:String,default:"建筑咨询管理系统",required:!1},showTitle:{type:Boolean,default:!0,required:!1}}},ne=te,ae=Object(g["a"])(ne,Z,ee,!1,null,null,null),ie=ae.exports,re=(n("6762"),n("2fdb"),n("7f7f"),n("55f1")),oe=n("0c63"),se=re["a"].Item,ce=re["a"].SubMenu,le={name:"SMenu",props:{menu:{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}},data:function(){return{openKeys:[],selectedKeys:[],cachedOpenKeys:[]}},computed:{rootSubmenuKeys:function(e){var t=[];return e.menu.forEach(function(e){return t.push(e.path)}),t}},created:function(){this.updateMenu()},watch:{collapsed:function(e){e?(this.cachedOpenKeys=this.openKeys.concat(),this.openKeys=[]):this.openKeys=this.cachedOpenKeys},$route:function(){this.updateMenu()}},methods:{renderIcon:function(e,t){return"none"===t||void 0===t?null:e(oe["a"],{props:{type:void 0!==t?t:""}})},renderMenuItem:function(e,t,n,a){return e(se,{key:t.path?t.path:"item_"+n+"_"+a},[e("router-link",{attrs:{to:{name:t.name}}},[this.renderIcon(e,t.meta.icon),e("span",[t.meta.title])])])},renderSubMenu:function(e,t,n,a){var i=this,r=[e("span",{slot:"title"},[this.renderIcon(e,t.meta.icon),e("span",[t.meta.title])])],o=[],s=n+"_"+a;return t.alwaysShow||t.children.forEach(function(t,n){o.push(i.renderItem(e,t,s,n))}),e(ce,{key:t.path?t.path:"submenu_"+n+"_"+a},r.concat(o))},renderItem:function(e,t,n,a){if(!t.hidden)return t.children&&!t.alwaysShow?this.renderSubMenu(e,t,n,a):this.renderMenuItem(e,t,n,a)},renderMenu:function(e,t){var n=this,a=[];return t.forEach(function(t,i){t.hidden||a.push(n.renderItem(e,t,"0",i))}),a},onOpenChange:function(e){var t=this,n=e.find(function(e){return!t.openKeys.includes(e)});this.rootSubmenuKeys.includes(n)?this.openKeys=n?[n]:[]:this.openKeys=e},updateMenu:function(){var e=this.$route.matched.concat();e.length>=4&&this.$route.meta.hidden?(e.pop(),this.selectedKeys=[e[2].path]):this.selectedKeys=[e.pop().path];var t=[];"inline"===this.mode&&e.forEach(function(e){t.push(e.path)}),this.collapsed?this.cachedOpenKeys=t:this.openKeys=t}},render:function(e){var t=this;return e(re["a"],{props:{theme:this.$props.theme,mode:this.$props.mode,openKeys:this.openKeys,selectedKeys:this.selectedKeys},on:{openChange:this.onOpenChange,select:function(e){t.selectedKeys=e.selectedKeys,t.$emit("select",e)}}},this.renderMenu(e,this.menu))}},ue={name:"SideMenu",components:{ALayoutSider:Q["a"],Logo:ie,SMenu:le},mixins:[S,w],props:{mode:{type:String,required:!1,default:"inline"},theme:{type:String,required:!1,default:"dark"},collapsible:{type:Boolean,required:!1,default:!1},collapsed:{type:Boolean,required:!1,default:!1},menus:{type:Array,required:!0}},methods:{onSelect:function(e){this.$emit("menuSelect",e)}}},de=ue,pe=Object(g["a"])(de,z,J,!1,null,null,null),me=pe.exports,he=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.headerBarFixed?e._e():n("a-layout-header",{class:[e.fixedHeader&&"ant-header-fixedHeader",e.sidebarOpened?"ant-header-side-opened":"ant-header-side-closed"],style:{padding:"0"}},["sidemenu"===e.mode?n("div",{staticClass:"header"},["mobile"===e.device?n("a-icon",{staticClass:"trigger",attrs:{type:e.collapsed?"menu-fold":"menu-unfold"},on:{click:e.toggle}}):n("a-icon",{staticClass:"trigger",attrs:{type:e.collapsed?"menu-unfold":"menu-fold"},on:{click:e.toggle}}),n("user-menu")],1):n("div",{class:["top-nav-header-index",e.theme]},[n("div",{staticClass:"header-index-wide"},[n("div",{staticClass:"header-index-left"},[n("logo",{staticClass:"top-nav-header",attrs:{"show-title":"mobile"!==e.device}}),"mobile"!==e.device?n("s-menu",{attrs:{mode:"horizontal",menu:e.menus,theme:e.theme}}):n("a-icon",{staticClass:"trigger",attrs:{type:e.collapsed?"menu-fold":"menu-unfold"},on:{click:e.toggle}})],1),n("user-menu",{staticClass:"header-index-right"})],1)])])},fe=[],ge=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"user-wrapper"},[n("span",{staticClass:"action"},[n("router-link",{attrs:{to:{name:"help"}}},[n("a-icon",{attrs:{type:"question-circle-o"}})],1)],1),n("a-dropdown",[n("span",{staticClass:"action ant-dropdown-link user-dropdown-menu"},[n("a-icon",{attrs:{type:"user"}}),n("span",[e._v(" "+e._s(e.nickname()))])],1),n("a-menu",{staticClass:"user-dropdown-menu-wrapper",attrs:{slot:"overlay"},slot:"overlay"},[n("a-menu-item",{key:"0"},[n("router-link",{attrs:{to:{name:"setting"}}},[n("a-icon",{attrs:{type:"setting"}}),n("span",[e._v("设置")])],1)],1),n("a-menu-item",{key:"1"},[n("a",{on:{click:e.handleLogout}},[n("a-icon",{attrs:{type:"logout"}}),n("span",[e._v("注销")])],1)])],1)],1)],1)},be=[],ve={name:"UserMenu",methods:Object(O["a"])({},Object(x["b"])(["Logout"]),Object(x["c"])(["nickname","avatar"]),{handleLogout:function(){var e=this;this.$confirm({title:"提示",content:"真的要注销登录吗 ?",onOk:function(){return e.Logout({}).then(function(){window.location.reload()}).catch(function(t){e.$message.error({title:"错误",description:t.message})})},onCancel:function(){}})}})},_e=ve,ye=Object(g["a"])(_e,ge,be,!1,null,null,null),Ee=ye.exports,Te={name:"GlobalHeader",components:{UserMenu:Ee,SMenu:le,Logo:ie},mixins:[S],props:{mode:{type:String,default:"sidemenu"},menus:{type:Array,required:!0},theme:{type:String,required:!1,default:"dark"},collapsed:{type:Boolean,required:!1,default:!1},device:{type:String,required:!1,default:"desktop"}},data:function(){return{headerBarFixed:!1}},mounted:function(){window.addEventListener("scroll",this.handleScroll)},methods:{handleScroll:function(){if(this.autoHideHeader){var e=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop;this.headerBarFixed=e>100}else this.headerBarFixed=!1},toggle:function(){this.$emit("toggle")}}},ke=Te,Ce=Object(g["a"])(ke,he,fe,!1,null,"79f6a91f",null),Le=Ce.exports,Oe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"footer"},[n("div",{staticClass:"copyright"},[e._v("\n Copyright\n "),n("a-icon",{attrs:{type:"copyright"}}),e._v("\n "+e._s(e.year)+"\n "),e._m(0)],1)])},xe=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",[n("a",{attrs:{href:"https://ie.wh.sdu.edu.cn/",target:"_blank"}},[e._v("山东大学(威海)机电与信息工程学院")]),e._v("\n 荣誉出品\n ")])}],Se={name:"LayoutFooter",data:function(){return{year:(new Date).getFullYear()}}},we=Se,De=(n("1e26"),Object(g["a"])(we,Oe,xe,!1,null,"75708014",null)),Ie=De.exports,Ge=n("ca00"),Ae={name:"GlobalLayout",components:{SideMenu:me,GlobalHeader:Le,GlobalFooter:Ie},mixins:[S,w],data:function(){return{collapsed:!1,menus:[]}},computed:Object(O["a"])({},Object(x["d"])({mainMenu:function(e){return e.permission.addRouters}}),{contentPaddingLeft:function(){return!this.fixSidebar||this.isMobile()?"0":this.sidebarOpened?"256px":"80px"}}),watch:{sidebarOpened:function(e){this.collapsed=!e}},created:function(){this.menus=this.mainMenu.find(function(e){return"/"===e.path}).children,this.collapsed=!this.sidebarOpened},methods:Object(O["a"])({},Object(x["b"])(["setSidebar"]),{toggle:function(){this.collapsed=!this.collapsed,this.setSidebar(!this.collapsed),Object(Ge["b"])()},paddingCalc:function(){var e="";return e=this.sidebarOpened?this.isDesktop()?"256px":"80px":(this.isMobile()?"0":this.fixSidebar&&"80px")||"0",console.log("left",e),e},menuSelect:function(){this.isDesktop()||(this.collapsed=!1)}})},$e=Ae,Me=(n("f491"),Object(g["a"])($e,X,V,!1,null,null,null)),He=Me.exports,Re={name:"BasicLayout",components:{RouteView:L,MultiTab:W,GlobalLayout:He},data:function(){return{}}},je=Re,Be=(n("dac0"),Object(g["a"])(je,B,P,!1,null,null,null)),Pe=Be.exports,Fe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("page-layout",{attrs:{desc:e.description,title:e.getTitle,"link-list":e.linkList,search:e.search,tabs:e.tabs}},[n("div",{staticClass:"extra-img",attrs:{slot:"extra"},slot:"extra"},["undefined"!==typeof e.extraImage?n("img",{attrs:{src:e.extraImage}}):e._e()]),n("route-view",{ref:"content"})],1)},Ke=[],qe=(n("386d"),n("b445")),Ue={name:"PageContent",components:{RouteView:L,PageLayout:qe["a"]},data:function(){return{title:"",description:"",linkList:[],extraImage:"",search:!1,tabs:{}}},mounted:function(){this.getPageHeaderInfo()},updated:function(){this.getPageHeaderInfo()},computed:{getTitle:function(){return this.$route.meta.title}},methods:{getPageHeaderInfo:function(){this.title=this.$route.meta.title;var e=this.$refs.content&&this.$refs.content.$children[0];e&&(this.description=e.description,this.linkList=e.linkList,this.extraImage=e.extraImage,this.search=!0===e.search,this.tabs=e.tabs)}}},Ne=Ue,Ye=(n("72b7"),Object(g["a"])(Ne,Fe,Ke,!1,null,"e699c54e",null)),We=Ye.exports,Xe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("page-layout",{attrs:{title:"仪表盘"}},[n("a-button",{on:{click:function(t){return e.handleClick()}}},[e._v("测试")])],1)},Ve=[],ze={name:"Dashboard",components:{PageLayout:qe["a"]},methods:{handleClick:function(){var e=this.$store.getters.role;-1===e.permissionList.indexOf("project_selected")&&e.permissionList.push("project_selected"),this.$store.commit("SET_ROLE",e),this.$store.dispatch("GenerateRoutes",{roles:e}),nt.addRoutes(this.$store.getters.addRouters),nt.push({name:"detail"})}}},Je=ze,Qe=Object(g["a"])(Je,Xe,Ve,!1,null,null,null),Ze=Qe.exports,et=[{path:"/",name:"index",component:Pe,meta:{title:"首页"},redirect:"/project",children:[{path:"/dashboard",name:"dashboard",component:Ze,meta:{title:"仪表盘",icon:"dashboard",permission:["dashboard"]}},{path:"/project",name:"project",component:function(){return n.e("asider").then(n.bind(null,"b7bc"))},meta:{title:"项目",icon:"table"}},{path:"/detail",name:"detail",component:We,meta:{title:"详情",icon:"profile",permission:["detail","project_selected"]}},{path:"/decision",name:"decision",component:We,meta:{title:"决策",icon:"audit",permission:["decision","project_selected"]}},{path:"/implement",name:"implement",component:We,meta:{title:"实施",icon:"tool",permission:["implement","project_selected"]},children:[{path:"1",name:"1",component:function(){return n.e("asider").then(n.bind(null,"a9a1"))},meta:{title:"报批报建"}},{path:"2",name:"2",component:function(){return n.e("chunk-2d209ade").then(n.bind(null,"a9a1"))},meta:{title:"招标采购"}},{path:"3",name:"3",component:function(){return n.e("chunk-2d209ade").then(n.bind(null,"a9a1"))},meta:{title:"设计管理"}},{path:"4",name:"4",component:function(){return n.e("chunk-2d209ade").then(n.bind(null,"a9a1"))},meta:{title:"投资管理"}},{path:"5",name:"5",component:function(){return n.e("chunk-2d209ade").then(n.bind(null,"a9a1"))},meta:{title:"进度管理"}},{path:"6",name:"6",component:function(){return n.e("chunk-2d209ade").then(n.bind(null,"a9a1"))},meta:{title:"质量管理"}},{path:"7",name:"7",component:function(){return n.e("chunk-2d209ade").then(n.bind(null,"a9a1"))},meta:{title:"安全管理"}},{path:"8",name:"8",component:function(){return n.e("chunk-2d209ade").then(n.bind(null,"a9a1"))},meta:{title:"合同管理"}},{path:"9",name:"9",component:function(){return n.e("chunk-2d209ade").then(n.bind(null,"a9a1"))},meta:{title:"应急管理"}},{path:"10",name:"10",component:function(){return n.e("chunk-2d209ade").then(n.bind(null,"a9a1"))},meta:{title:"来往函件"}},{path:"11",name:"11",component:function(){return n.e("chunk-2d209ade").then(n.bind(null,"a9a1"))},meta:{title:"周月报表"}}]},{path:"/completion",name:"completion",component:We,meta:{title:"竣工",icon:"bank",permission:["completion","project_selected"]}},{path:"/video",name:"video",component:We,meta:{title:"视频",icon:"video-camera",permission:["video","project_selected"]}},{path:"/account",name:"account",component:We,meta:{title:"用户",icon:"user",permission:["account"]}},{path:"/setting",name:"setting",component:We,meta:{title:"设置",icon:"setting"}},{path:"/help",name:"help",component:We,meta:{title:"帮助",icon:"question-circle"}}]},{path:"*",redirect:"/404",hidden:!0}],tt=[{path:"/user",component:A,redirect:"/user/login",hidden:!0,children:[{path:"login",name:"login",component:function(){return n.e("user").then(n.bind(null,"ac2a"))}}]},{path:"/404",component:function(){return n.e("fail").then(n.bind(null,"cc89"))}}];r["a"].use(_["a"]);var nt=new _["a"]({mode:"hash",base:"/",scrollBehavior:function(){return{y:0}},routes:tt}),at="SIDEBAR_TYPE",it="DEFAULT_THEME",rt="DEFAULT_LAYOUT_MODE",ot="DEFAULT_COLOR",st="DEFAULT_COLOR_WEAK",ct="DEFAULT_FIXED_HEADER",lt="DEFAULT_FIXED_SIDEMENU",ut="DEFAULT_FIXED_HEADER_HIDDEN",dt="DEFAULT_CONTENT_WIDTH_TYPE",pt="DEFAULT_MULTI_TAB",mt={state:{sidebar:!0,device:"desktop",theme:"",layout:"",contentWidth:"",fixedHeader:!1,fixSiderbar:!1,autoHideHeader:!1,color:null,weak:!1,multiTab:!0},mutations:{SET_SIDEBAR_TYPE:function(e,t){e.sidebar=t,r["a"].ls.set(at,t)},CLOSE_SIDEBAR:function(e){r["a"].ls.set(at,!0),e.sidebar=!1},TOGGLE_DEVICE:function(e,t){e.device=t},TOGGLE_THEME:function(e,t){r["a"].ls.set(it,t),e.theme=t},TOGGLE_LAYOUT_MODE:function(e,t){r["a"].ls.set(rt,t),e.layout=t},TOGGLE_FIXED_HEADER:function(e,t){r["a"].ls.set(ct,t),e.fixedHeader=t},TOGGLE_FIXED_SIDERBAR:function(e,t){r["a"].ls.set(lt,t),e.fixSiderbar=t},TOGGLE_FIXED_HEADER_HIDDEN:function(e,t){r["a"].ls.set(ut,t),e.autoHideHeader=t},TOGGLE_CONTENT_WIDTH:function(e,t){r["a"].ls.set(dt,t),e.contentWidth=t},TOGGLE_COLOR:function(e,t){r["a"].ls.set(ot,t),e.color=t},TOGGLE_WEAK:function(e,t){r["a"].ls.set(st,t),e.weak=t},TOGGLE_MULTI_TAB:function(e,t){r["a"].ls.set(pt,t),e.multiTab=t}},actions:{setSidebar:function(e,t){var n=e.commit;n("SET_SIDEBAR_TYPE",t)},CloseSidebar:function(e){var t=e.commit;t("CLOSE_SIDEBAR")},ToggleDevice:function(e,t){var n=e.commit;n("TOGGLE_DEVICE",t)},ToggleTheme:function(e,t){var n=e.commit;n("TOGGLE_THEME",t)},ToggleLayoutMode:function(e,t){var n=e.commit;n("TOGGLE_LAYOUT_MODE",t)},ToggleFixedHeader:function(e,t){var n=e.commit;t||n("TOGGLE_FIXED_HEADER_HIDDEN",!1),n("TOGGLE_FIXED_HEADER",t)},ToggleFixSiderbar:function(e,t){var n=e.commit;n("TOGGLE_FIXED_SIDERBAR",t)},ToggleFixedHeaderHidden:function(e,t){var n=e.commit;n("TOGGLE_FIXED_HEADER_HIDDEN",t)},ToggleContentWidth:function(e,t){var n=e.commit;n("TOGGLE_CONTENT_WIDTH",t)},ToggleColor:function(e,t){var n=e.commit;n("TOGGLE_COLOR",t)},ToggleWeak:function(e,t){var n=e.commit;n("TOGGLE_WEAK",t)},ToggleMultiTab:function(e,t){var n=e.commit;n("TOGGLE_MULTI_TAB",t)}}},ht=mt,ft=n("795b"),gt=n.n(ft),bt=(n("6b54"),n("06db"),n("f499")),vt=n.n(bt),_t=(n("28a5"),n("6d93"),"/api/");function yt(e){var t=null;if(document.cookie&&""!==document.cookie)for(var n=document.cookie.split(";"),a=0;a<n.length;a++){var i=n[a].trim();if(i.substring(0,e.length+1)===e+"="){t=decodeURIComponent(i.substring(e.length+1));break}}return t}function Et(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=null,r={"Content-Type":"application/json"};return/^(GET|HEAD|OPTIONS|TRACE)$/.test(t.toUpperCase())||(r["X-CSRFToken"]=yt("csrftoken")),n&&(i=vt()(n)),a&&(e+="?"+new URLSearchParams(a).toString()),fetch(_t+e,{credentials:"include",headers:r,method:t,body:i}).then(function(e){if(403!==e.status&&401!==e.status)return e.json();Message.error({duration:5e3,showClose:!0,message:"用户未登录"}),nt.push({name:"login"})}).catch(function(e){console.log("fetchAPI function ERROR: "+e),Message.error({duration:0,showClose:!0,message:e})})}var Tt={login:function(e,t){return Et("user/login/","post",{username:e,password:t})},logout:function(){return Et("user/logout/","get")},getInfo:function(){return Et("user/","get")}},kt={error:"",result:{msg:"",id:"1",username:"张家豪",last_login:1534837621348,date_joined:1497160610259,role:{name:"admin",description:"拥有所有权限",permissions:[{name:"dashboard",description:"仪表盘页面权限",actions:[{name:"add",description:"新增"},{name:"query",description:"查询"},{name:"get",description:"详情"},{name:"update",description:"修改"},{name:"delete",description:"删除"}]},{roleId:"admin",name:"exception",description:"异常页面权限",actions:[{name:"add",description:"新增",defaultCheck:!1},{name:"query",description:"查询",defaultCheck:!1},{name:"get",description:"详情",defaultCheck:!1},{name:"update",description:"修改",defaultCheck:!1},{name:"delete",description:"删除",defaultCheck:!1}],actionList:null,dataAccess:null},{roleId:"admin",name:"result",description:"结果页面权限",actions:[{name:"add",description:"新增",defaultCheck:!1},{name:"query",description:"查询",defaultCheck:!1},{name:"get",description:"详情",defaultCheck:!1},{name:"update",description:"修改",defaultCheck:!1},{name:"delete",description:"删除",defaultCheck:!1}],actionList:null,dataAccess:null},{roleId:"admin",name:"project",description:"项目页面权限",actions:[{name:"add",description:"新增",defaultCheck:!1},{name:"query",description:"查询",defaultCheck:!1},{name:"get",description:"详情",defaultCheck:!1},{name:"update",description:"修改",defaultCheck:!1},{name:"delete",description:"删除",defaultCheck:!1}],actionList:null,dataAccess:null},{roleId:"admin",name:"detail",description:"详情页面权限",actions:[{name:"add",description:"新增",defaultCheck:!1},{name:"import",description:"导入",defaultCheck:!1},{name:"get",description:"详情",defaultCheck:!1},{name:"update",description:"修改",defaultCheck:!1}],actionList:null,dataAccess:null},{roleId:"admin",name:"decision",description:"决策页面权限",actions:[{name:"add",description:"新增",defaultCheck:!1},{name:"get",description:"详情",defaultCheck:!1},{name:"query",description:"查询",defaultCheck:!1},{name:"update",description:"修改",defaultCheck:!1},{name:"delete",description:"删除",defaultCheck:!1}],actionList:null,dataAccess:null},{roleId:"admin",name:"implement",description:"施工页面权限",actions:[{name:"add",description:"新增",defaultCheck:!1},{name:"query",description:"查询",defaultCheck:!1},{name:"get",description:"详情",defaultCheck:!1},{name:"update",description:"修改",defaultCheck:!1},{name:"delete",description:"删除",defaultCheck:!1}],actionList:null,dataAccess:null},{roleId:"admin",name:"completion",description:"竣工页面权限",actions:[{name:"add",description:"新增",defaultCheck:!1},{name:"get",description:"详情",defaultCheck:!1},{name:"update",description:"修改",defaultCheck:!1},{name:"delete",description:"删除",defaultCheck:!1}],actionList:null,dataAccess:null},{roleId:"admin",name:"video",description:"视频页面权限",actions:[{name:"add",description:"新增",defaultCheck:!1},{name:"get",description:"详情",defaultCheck:!1},{name:"update",description:"修改",defaultCheck:!1},{name:"delete",description:"删除",defaultCheck:!1}],actionList:null,dataAccess:null},{roleId:"admin",name:"account",description:"用户页面权限",actions:[{name:"add",description:"新增",defaultCheck:!1},{name:"get",description:"详情",defaultCheck:!1},{name:"query",description:"查询",defaultCheck:!1},{name:"update",description:"修改",defaultCheck:!1},{name:"delete",description:"删除",defaultCheck:!1}],actionList:null,dataAccess:null},{roleId:"admin",name:"setting",description:"设置页面权限",actions:[{name:"add",description:"新增",defaultCheck:!1},{name:"import",description:"导入",defaultCheck:!1},{name:"get",description:"详情",defaultCheck:!1},{name:"update",description:"修改",defaultCheck:!1},{name:"delete",description:"删除",defaultCheck:!1},{name:"export",description:"导出",defaultCheck:!1}],actionList:null,dataAccess:null},{roleId:"admin",name:"help",description:"帮助页面权限",actions:[{name:"add",description:"新增",defaultCheck:!1},{name:"import",description:"导入",defaultCheck:!1},{name:"get",description:"详情",defaultCheck:!1},{name:"update",description:"修改",defaultCheck:!1},{name:"delete",description:"删除",defaultCheck:!1},{name:"export",description:"导出",defaultCheck:!1}],actionList:null,dataAccess:null}]}},status:200,timestamp:1534844188679},Ct={state:{id:"",name:"",role:[]},mutations:{SET_ID:function(e,t){e.id=t},SET_NAME:function(e,t){e.name=t},SET_ROLE:function(e,t){e.role=t}},actions:{Login:function(e,t){e.commit;return new gt.a(function(e,n){Tt.login(t.username,t.password).then(function(t){t.error||"登陆成功!"!==t.data.msg?n(t.error):e(t.data)}).catch(function(e){n(e)})})},GetInfo:function(e){var t=e.commit;return new gt.a(function(e,n){var a=kt.result;if(a.role&&a.role.permissions.length>0){var i=a.role;i.permissions=a.role.permissions,i.permissions.map(function(e){null!=e.actions&&e.actions.length>0&&(e.actionList=e.actions.map(function(e){return e.name}))}),i.permissionList=i.permissions.map(function(e){return e.name}),t("SET_ROLE",a.role),t("SET_ID",a.id),t("SET_NAME",a.username)}else n(new Error("getInfo: roles must be a non-null array !"));e(kt)})},Logout:function(e){var t=e.commit;return new gt.a(function(e){t("SET_ID",""),t("SET_NAME",""),t("SET_ROLE",[]),Tt.logout().then(function(){e()}).catch(function(){e()})})}}},Lt=Ct,Ot=n("2ef0"),xt=n.n(Ot);function St(e,t){var n=!0;return t.meta&&t.meta.permission&&t.meta.permission.forEach(function(t){-1===e.indexOf(t)&&(n=!1)}),n}function wt(e,t){return e.filter(function(e){return!!St(t.permissionList,e)&&(e.children&&e.children.length&&(e.children=wt(e.children,t)),!0)})}var Dt={state:{routers:tt,addRouters:[]},mutations:{SET_ROUTERS:function(e,t){e.routers=e.addRouters.concat(t),e.addRouters=t}},actions:{GenerateRoutes:function(e,t){var n=e.commit;e.state;return new gt.a(function(e){var a=t.roles,i=wt(xt.a.cloneDeep(et),a);n("SET_ROUTERS",i),e()})}}},It=Dt,Gt={device:function(e){return e.app.device},theme:function(e){return e.app.theme},color:function(e){return e.app.color},multiTab:function(e){return e.app.multiTab},nickname:function(e){return e.user.name},role:function(e){return e.user.role},addRouters:function(e){return e.permission.addRouters}},At=Gt;r["a"].use(x["a"]);var $t=new x["a"].Store({modules:{app:ht,user:Lt,permission:It},state:{},mutations:{},actions:{},getters:At}),Mt=n("bc3a"),Ht=n.n(Mt),Rt=n("d847"),jt=n.n(Rt),Bt={vm:{},install:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];var t=arguments.length>2?arguments[2]:void 0;this.installed||(this.installed=!0,t?(e.axios=t,jt()(e.prototype,{axios:{get:function(){return t}},$http:{get:function(){return t}}})):console.error("You have to install axios"))}},Pt=n("56cd"),Ft=Ht.a.create({baseURL:"/api",timeout:6e3}),Kt=function(e){if(e.response){var t=e.response.data,n=r["a"].ls.get(void 0);403===e.response.status&&Pt["a"].error({message:"Forbidden",description:t.message}),401===e.response.status&&(Pt["a"].error({message:"Unauthorized",description:"Authorization verification failed"}),n&&$t.dispatch("Logout").then(function(){setTimeout(function(){window.location.reload()},1500)}))}return gt.a.reject(e)};Ft.interceptors.request.use(function(e){var t=r["a"].ls.get(void 0);return t&&(e.headers["Access-Token"]=t),e},Kt),Ft.interceptors.response.use(function(e){return e.data},Kt);var qt={vm:{},install:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.use(Bt,t,Ft)}},Ut=n("c16e"),Nt=n.n(Ut),Yt={primaryColor:"#1890FF",navTheme:"dark",layout:"sidemenu",contentWidth:"Fixed",fixedHeader:!1,fixSiderbar:!1,autoHideHeader:!1,colorWeak:!1,multiTab:!1,storageOptions:{namespace:"pro__",name:"ls",storage:"local"}},Wt=n("f23d"),Xt=n("3654"),Vt=(n("3aed"),n("4eb5")),zt=n.n(Vt),Jt=(n("20d6"),n("768b")),Qt={add:{key:"add",label:"新增"},delete:{key:"delete",label:"删除"},edit:{key:"edit",label:"修改"},query:{key:"query",label:"查询"},get:{key:"get",label:"详情"},enable:{key:"enable",label:"启用"},disable:{key:"disable",label:"禁用"},import:{key:"import",label:"导入"},export:{key:"export",label:"导出"}};function Zt(e){Zt.installed||(!e.prototype.$auth&&jt()(e.prototype,{$auth:{get:function(){var e=this;return function(t){var n=t.split("."),a=Object(Jt["a"])(n,2),i=a[0],r=a[1],o=e.$store.getters.roles.permissions;return o.find(function(e){return e.name===i}).actionList.findIndex(function(e){return e===r}),!1}}}}),!e.prototype.$enum&&jt()(e.prototype,{$enum:{get:function(){return function(e){var t=Qt;return e&&e.split(".").forEach(function(e){t=t&&t[e]||null}),t}}}}))}var en=Zt;function tn(){$t.commit("SET_SIDEBAR_TYPE",r["a"].ls.get(at,!0)),$t.commit("TOGGLE_THEME",r["a"].ls.get(it,Yt.navTheme)),$t.commit("TOGGLE_LAYOUT_MODE",r["a"].ls.get(rt,Yt.layout)),$t.commit("TOGGLE_FIXED_HEADER",r["a"].ls.get(ct,Yt.fixedHeader)),$t.commit("TOGGLE_FIXED_SIDERBAR",r["a"].ls.get(lt,Yt.fixSiderbar)),$t.commit("TOGGLE_CONTENT_WIDTH",r["a"].ls.get(dt,Yt.contentWidth)),$t.commit("TOGGLE_FIXED_HEADER_HIDDEN",r["a"].ls.get(ut,Yt.autoHideHeader)),$t.commit("TOGGLE_WEAK",r["a"].ls.get(st,Yt.colorWeak)),$t.commit("TOGGLE_COLOR",r["a"].ls.get(ot,Yt.primaryColor)),$t.commit("TOGGLE_MULTI_TAB",r["a"].ls.get(pt,Yt.multiTab))}zt.a.config.autoSetContainer=!0,r["a"].use(Wt["a"]),r["a"].use(Xt["a"]),r["a"].use(Nt.a,Yt.storageOptions),r["a"].use(zt.a),r["a"].use(en);var nn=n("323e"),an=n.n(nn);n("a5d8");an.a.configure({showSpinner:!1});var rn=["login"];nt.beforeEach(function(e,t,n){an.a.start();var a=-1!==window.document.cookie.search("sessionid");a?"/user/login"===e.path?(n({path:"/project"}),an.a.done()):0===$t.getters.role.length?$t.dispatch("GetInfo").then(function(a){var i=a.result&&a.result.role;$t.dispatch("GenerateRoutes",{roles:i}).then(function(){nt.addRoutes($t.getters.addRouters);var a=decodeURIComponent(t.query.redirect||e.path);e.path===a?n(Object(O["a"])({},e,{replace:!0})):n({path:a})})}).catch(function(){Pt["a"].error({message:"错误",description:"请求用户信息失败,请重试"}),$t.dispatch("Logout").then(function(){n({path:"/user/login",query:{redirect:e.fullPath}})})}):n():rn.includes(e.name)?n():(n({path:"/user/login",query:{redirect:e.fullPath}}),an.a.done())}),nt.afterEach(function(){an.a.done()});r["a"].directive("action",{bind:function(e,t,n){var a=t.arg,i=$t.getters.role,r=n.context.$route.meta.permission,o=[];i.permissions.forEach(function(e){e.name===r[0]&&(o=e.actionList)}),o.indexOf(a)<0&&setTimeout(function(){null==e.parentNode?e.style.display="none":e.parentNode.removeChild(e)},10)}}),n("a481");var on=n("c1df"),sn=n.n(on);n("5c3a");sn.a.locale("zh-cn"),r["a"].filter("NumberFormat",function(e){if(!e)return"0";var t=e.toString().replace(/(\d)(?=(?:\d{3})+$)/g,"$1,");return t}),r["a"].filter("dayjs",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss";return sn()(e).format(t)}),r["a"].filter("moment",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss";return sn()(e).format(t)}),r["a"].config.productionTip=!1,r["a"].use(qt,nt),new r["a"]({router:nt,store:$t,created:function(){tn()},render:function(e){return e(v)}}).$mount("#app")},6086:function(e,t,n){"use strict";var a=n("f27b"),i=n.n(a);i.a},"64a9":function(e,t,n){},"72b7":function(e,t,n){"use strict";var a=n("19b6"),i=n.n(a);i.a},"9b19":function(e,t,n){e.exports=n.p+"static/img/logo.ffe9256f.svg"},a92f:function(e,t,n){},b445:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{style:e.$route.meta.pageHeader?null:"margin: -24px -24px 0px;"},[e.$route.meta.pageHeader?e._e():n("page-header",{attrs:{title:e.title,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",{staticStyle:{"font-size":"14px",color:"rgba(0,0,0,.65)"}},[e._v(e._s(e.desc))]),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}}),n("span",[e._v(e._s(t.title))])],1)]})],2)]):e._e(),e._t("extra",null,{slot:"extra"}),n("div",{attrs:{slot:"pageMenu"},slot:"pageMenu"},[e.search?n("div",{staticClass:"page-menu-search"},[n("a-input-search",{staticStyle:{width:"80%","max-width":"522px"},attrs:{placeholder:"请输入...",size:"large",enterButton:"搜索"}})],1):e._e(),e.tabs&&e.tabs.items?n("div",{staticClass:"page-menu-tabs"},[n("a-tabs",{attrs:{tabBarStyle:{margin:0},activeKey:e.tabs.active()},on:{change:e.tabs.callback}},e._l(e.tabs.items,function(e){return n("a-tab-pane",{key:e.key,attrs:{tab:e.title}})}),1)],1):e._e()])],2),n("div",{staticClass:"content"},[n("div",{class:["page-header-index-wide"]},[e._t("default")],2)])],1)},i=[],r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"page-header"},[n("div",{staticClass:"page-header-index-wide"},[n("a-breadcrumb",{staticClass:"breadcrumb"},e._l(e.breadList,function(t,a){return n("a-breadcrumb-item",{key:a},[t.name!=e.name?n("router-link",{attrs:{to:{path:t.path}}},[e._v("\n "+e._s(t.meta.title)+"\n ")]):n("span",[e._v(e._s(t.meta.title))])],1)}),1),n("div",{staticClass:"detail"},[e.$route.meta.hiddenHeaderContent?e._e():n("div",{staticClass:"main"},[n("div",{staticClass:"row"},[e.logo?n("img",{staticClass:"logo",attrs:{src:e.logo}}):e._e(),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"},[e.avatar?n("div",{staticClass:"avatar"},[n("a-avatar",{attrs:{src:e.avatar}})],1):e._e(),this.$slots.content?n("div",{staticClass:"headerContent"},[e._t("content")],2):e._e(),this.$slots.extra?n("div",{staticClass:"extra"},[e._t("extra")],2):e._e()]),n("div",[e._t("pageMenu")],2)])])],1)])},o=[],s=(n("7f7f"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-breadcrumb",{staticClass:"breadcrumb"},e._l(e.breadList,function(t,a){return n("a-breadcrumb-item",{key:a},[t.name!=e.name?n("router-link",{attrs:{to:{path:t.path}}},[e._v("\n "+e._s(t.meta.title)+"\n ")]):n("span",[e._v(e._s(t.meta.title))])],1)}),1)}),c=[],l={data:function(){return{name:"",breadList:[]}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var e=this;console.log("this.$route.matched",this.$route.matched),this.breadList=[],this.breadList.push({name:"index",path:"/dashboard/",meta:{title:"首页"}}),this.name=this.$route.name,this.$route.matched.forEach(function(t){e.breadList.push(t)})}},watch:{$route:function(){this.getBreadcrumb()}}},u=l,d=n("2877"),p=Object(d["a"])(u,s,c,!1,null,"5c1ed6b2",null),m=p.exports,h={name:"PageHeader",components:{"s-breadcrumb":m},props:{title:{type:String,default:"",required:!1},breadcrumb:{type:Array,default:null,required:!1},logo:{type:String,default:"",required:!1},avatar:{type:String,default:"",required:!1}},data:function(){return{name:"",breadList:[]}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var e=this;this.breadList=[],this.name=this.$route.name,this.$route.matched.forEach(function(t){e.breadList.push(t)})}},watch:{$route:function(){this.getBreadcrumb()}}},f=h,g=(n("d5fb"),Object(d["a"])(f,r,o,!1,null,"4b0da4d2",null)),b=g.exports,v={name:"LayoutContent",components:{PageHeader:b},props:{desc:{type:String,default:null},logo:{type:String,default:null},title:{type:String,default:null},avatar:{type:String,default:null},linkList:{type:Array,default:null},extraImage:{type:String,default:null},search:{type:Boolean,default:!1},tabs:{type:Object,default:function(){return{}}}},methods:{}},_=v,y=(n("6086"),Object(d["a"])(_,a,i,!1,null,"16b69a6a",null));t["a"]=y.exports},c247:function(e,t,n){"use strict";var a=n("2278"),i=n.n(a);i.a},ca00:function(e,t,n){"use strict";function a(){var e=new Date,t=e.getHours();return t<9?"早上好":t<=11?"上午好":t<=13?"中午好":t<20?"下午好":"晚上好"}function i(){var e=document.createEvent("HTMLEvents");e.initEvent("resize",!0,!0),e.eventType="message",window.dispatchEvent(e)}n.d(t,"a",function(){return a}),n.d(t,"b",function(){return i})},d5fb:function(e,t,n){"use strict";var a=n("1ec6"),i=n.n(a);i.a},dac0:function(e,t,n){"use strict";var a=n("e221"),i=n.n(a);i.a},e221:function(e,t,n){},f27b:function(e,t,n){},f491:function(e,t,n){"use strict";var a=n("344b"),i=n.n(a);i.a}});
//# sourceMappingURL=app.c3c48851.js.map