You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
9.7 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8e1020a0"],{"47a1":function(t,e,n){},"4dcb":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"wrapper"},[n("com-header"),n("com-sidebar",{staticClass:"sidebar"}),n("div",{staticClass:"main",style:{left:t.collapse?"64px":"200px"}},[n("com-tags"),n("keep-alive",{attrs:{include:t.tagComponent}},[n("router-view",{staticClass:"main-cont"})],1)],1)],1)},i=[],o=n("b85c"),s=(n("b0c0"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-header",[n("span",{staticClass:"btn-collapse",attrs:{title:t.collapse?"展开侧边栏":"收起侧边栏"},on:{click:t.collapseChage}},[n("i",{staticClass:"el-icon-menu"})]),n("h3",{staticClass:"header-title margin-l-10"},[t._v("MAA")]),n("div",{staticClass:"header-right"},[n("div",{staticClass:"btn-info"},[n("el-tooltip",{attrs:{placement:"bottom"}},[n("span",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.message?"有"+t.message+"条消息":"消息中心"))]),n("router-link",{attrs:{to:"/info"}},[n("i",{staticClass:"el-icon-bell"})])],1),t.message?n("span",{staticClass:"btn-info-tip"}):t._e()],1),n("img",{staticClass:"header-portrait",attrs:{src:"portrait.jpg",alt:"用户头像"}}),n("el-dropdown",{on:{command:t.handleCommand}},[n("span",{staticClass:"el-dropdown-link"},[t._v(" "+t._s(t.username)+" "),n("i",{staticClass:"el-icon-caret-bottom"})]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("a",{attrs:{href:"https://github.com/nut77/vue2-elementui-admin",target:"_blank"}},[n("el-dropdown-item",[t._v("项目仓库")])],1),n("el-dropdown-item",{attrs:{divided:"",command:"loginout"}},[t._v("退出登录")])],1)],1)],1)])}),r=[],l=n("2b0e"),c=new l["default"],u={name:"Header",data:function(){return{message:1,username:localStorage.getItem("username"),collapse:!1}},methods:{collapseChage:function(){this.collapse=!this.collapse,c.$emit("collapse",this.collapse)},handleCommand:function(t){"loginout"==t&&(localStorage.removeItem("username"),this.$router.push("/login"))}}},d=u,h=(n("fa82"),n("2877")),f=Object(h["a"])(d,s,r,!1,null,"133f1952",null),p=f.exports,m=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-aside",{attrs:{width:"auto",height:"auto"}},[n("el-menu",{attrs:{collapse:t.isCollapse,"default-active":t.onRoutes,"background-color":"#232323","text-color":"#ccc","active-text-color":"#ddd","unique-opened":"",router:""}},[t._l(t.items,(function(e){return[e.subItems?[n("el-submenu",{key:e.path,attrs:{index:e.path}},[n("template",{slot:"title"},[n("i",{class:e.icon}),n("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(e.title))])]),t._l(e.subItems,(function(e,a){return n("el-menu-item",{key:a,attrs:{index:e.path}},[t._v(" "+t._s(e.title)+" ")])}))],2)]:[n("el-menu-item",{key:e.path,attrs:{index:e.path}},[n("i",{class:e.icon}),n("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(e.title))])])]]}))],2)],1)},g=[],v={name:"Sidebar",data:function(){return{isCollapse:!1,items:[{title:"系统首页",path:"/index",icon:"el-icon-setting"},{title:"echarts图表",path:"echarts",icon:"el-icon-star-on",subItems:[{title:"简单图表",path:"/chart-simple"},{title:"复杂图表",path:"/chart-complex"}]},{title:"tab选项卡",path:"/tab",icon:"el-icon-message"},{title:"表格",path:"/table",icon:"el-icon-tickets"},{title:"错误页面",path:"/error",icon:"el-icon-warning"},{title:"404页面",path:"/404",icon:"el-icon-error"},{title:"我的帐本",path:"/accountBill",icon:"el-icon-tickets"},{title:"其他",path:"/test",icon:"el-icon-paperclip"},{title:"Exchange",path:"/exchange",icon:"el-icon-magic-stick"},{title:"收藏夹",path:"/favorites",icon:"el-icon-magic-stick"}]}},computed:{onRoutes:function(){return this.$route.fullPath}},created:function(){var t=this;c.$on("collapse",(function(e){t.isCollapse=e}))}},b=v,w=(n("cae7"),Object(h["a"])(b,m,g,!1,null,"f6a8d23a",null)),y=w.exports,_=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.showTag?n("div",{staticClass:"main-tags"},[n("ul",{staticClass:"tag-list"},t._l(t.tagList,(function(e,a){return n("li",{key:a,staticClass:"tag-item",class:{active:t.isActive(e.path)}},[n("router-link",{staticClass:"tag-item-title",attrs:{to:e.path}},[t._v(" "+t._s(e.title)+" ")]),n("i",{staticClass:"el-icon-close",on:{click:function(e){return t.closeTag(a)}}})],1)})),0),n("el-dropdown",{on:{command:t.handleTag}},[n("el-button",{attrs:{size:"mini",type:"primary"}},[t._v(" 标签选项"),n("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{attrs:{command:"closeOther"}},[t._v("关闭其他")]),n("el-dropdown-item",{attrs:{command:"closeAll"}},[t._v("关闭所有")])],1)],1)],1):t._e()},C=[],x=(n("a434"),n("4de4"),{name:"Tags",data:function(){return{tagList:[],collapse:!1,initTag:{title:"系统首页",path:"/index",name:"Home"}}},methods:{isActive:function(t){return t===this.$route.fullPath},closeTag:function(t){var e=this.tagList.splice(t,1)[0],n=this.tagList[t]?this.tagList[t]:this.tagList[t-1];n?e.path===this.$route.fullPath&&this.$router.push(n.path):this.closeAll()},closeAll:function(){this.tagList=[this.initTag],this.$router.push("/index")},closeOther:function(){var t=this,e=this.tagList.filter((function(e){return e.path===t.$route.fullPath}));this.tagList=e},setTag:function(t){var e=this,n=this.tagList.some((function(t){return t.path===e.$route.fullPath}));!n&&this.tagList.push({title:t.meta.title,path:t.fullPath,name:t.matched[1].components.default.name}),c.$emit("tags",this.tagList)},handleTag:function(t){"closeOther"===t?this.closeOther():this.closeAll()}},computed:{showTag:function(){return this.tagList.length>0}},watch:{$route:function(t){this.setTag(t)}},created:function(){this.setTag(this.$route)}}),A=x,$=(n("d098"),Object(h["a"])(A,_,C,!1,null,"773576b9",null)),k=$.exports,T={name:"Base",components:{comHeader:p,comSidebar:y,comTags:k},data:function(){return{collapse:!1,tagComponent:[]}},created:function(){var t=this;c.$on("collapse",(function(e){t.collapse=e})),c.$on("tags",(function(e){var n,a=Object(o["a"])(e);try{for(a.s();!(n=a.n()).done;){var i=n.value;i.name&&t.tagComponent.push(i.name)}}catch(s){a.e(s)}finally{a.f()}}))}},L=T,O=(n("902f"),Object(h["a"])(L,a,i,!1,null,"77d7f57e",null));e["default"]=O.exports},"4de4":function(t,e,n){"use strict";var a=n("23e7"),i=n("b727").filter,o=n("1dde"),s=o("filter");a({target:"Array",proto:!0,forced:!s},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(t,e,n){"use strict";var a=n("0366"),i=n("7b0b"),o=n("9bdd"),s=n("e95a"),r=n("50c4"),l=n("8418"),c=n("35a1");t.exports=function(t){var e,n,u,d,h,f,p=i(t),m="function"==typeof this?this:Array,g=arguments.length,v=g>1?arguments[1]:void 0,b=void 0!==v,w=c(p),y=0;if(b&&(v=a(v,g>2?arguments[2]:void 0,2)),void 0==w||m==Array&&s(w))for(e=r(p.length),n=new m(e);e>y;y++)f=b?v(p[y],y):p[y],l(n,y,f);else for(d=w.call(p),h=d.next,n=new m;!(u=h.call(d)).done;y++)f=b?o(d,v,[u.value,y],!0):u.value,l(n,y,f);return n.length=y,n}},8073:function(t,e,n){},"902f":function(t,e,n){"use strict";n("8073")},"95bd":function(t,e,n){},"979d":function(t,e,n){},"9bdd":function(t,e,n){var a=n("825a"),i=n("2a62");t.exports=function(t,e,n,o){try{return o?e(a(n)[0],n[1]):e(n)}catch(s){throw i(t),s}}},a434:function(t,e,n){"use strict";var a=n("23e7"),i=n("23cb"),o=n("a691"),s=n("50c4"),r=n("7b0b"),l=n("65f0"),c=n("8418"),u=n("1dde"),d=u("splice"),h=Math.max,f=Math.min,p=9007199254740991,m="Maximum allowed length exceeded";a({target:"Array",proto:!0,forced:!d},{splice:function(t,e){var n,a,u,d,g,v,b=r(this),w=s(b.length),y=i(t,w),_=arguments.length;if(0===_?n=a=0:1===_?(n=0,a=w-y):(n=_-2,a=f(h(o(e),0),w-y)),w+n-a>p)throw TypeError(m);for(u=l(b,a),d=0;d<a;d++)g=y+d,g in b&&c(u,d,b[g]);if(u.length=a,n<a){for(d=y;d<w-a;d++)g=d+a,v=d+n,g in b?b[v]=b[g]:delete b[v];for(d=w;d>w-a+n;d--)delete b[d-1]}else if(n>a)for(d=w-a;d>y;d--)g=d+a-1,v=d+n-1,g in b?b[v]=b[g]:delete b[v];for(d=0;d<n;d++)b[d+y]=arguments[d+2];return b.length=w-a+n,u}})},a630:function(t,e,n){var a=n("23e7"),i=n("4df4"),o=n("1c7e"),s=!o((function(t){Array.from(t)}));a({target:"Array",stat:!0,forced:s},{from:i})},b0c0:function(t,e,n){var a=n("83ab"),i=n("9bf2").f,o=Function.prototype,s=o.toString,r=/^\s*function ([^ (]*)/,l="name";a&&!(l in o)&&i(o,l,{configurable:!0,get:function(){try{return s.call(this).match(r)[1]}catch(t){return""}}})},b85c:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("fb6a"),n("b0c0"),n("a630");function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n<e;n++)a[n]=t[n];return a}function i(t,e){if(t){if("string"===typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}function o(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=i(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var a=0,o=function(){};return{s:o,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,r=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return r=t.done,t},e:function(t){l=!0,s=t},f:function(){try{r||null==n["return"]||n["return"]()}finally{if(l)throw s}}}}},cae7:function(t,e,n){"use strict";n("95bd")},d098:function(t,e,n){"use strict";n("47a1")},fa82:function(t,e,n){"use strict";n("979d")}}]);
//# sourceMappingURL=chunk-8e1020a0.1cd27049.js.map