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

3 years ago
(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",{sta
//# sourceMappingURL=chunk-8e1020a0.1cd27049.js.map