webpackJsonp([9],{COUk:function(e,t){},FUhY:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=n("lbHh"),s=n.n(l),o={data:function(){return{screenfull:!1,layout:s.a.get("layout")?s.a.get("layout"):"固定布局"}},computed:{isCollapse:function(){return this.$store.state.sys.isCollapse},menu:function(){return this.$store.state.sys.menu},active:function(){return this.$route.path}},methods:{toggleScreen:function(){if(this.screenfull)document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():this.$message({type:"warning",message:"请升级浏览器，不然我是不会理你的！"}),this.screenfull=!1;else{var e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.msRequestFullscreen?e.msRequestFullscreen():this.$message({type:"warning",message:"除了让你升级浏览器对方没什么好说的！"}),this.screenfull=!0}},handlerIsCollapse:function(){this.$store.commit("IS_COLLAPSE")},handleLayout:function(){var e="固定布局"===this.layout?"基础布局":"固定布局";this.$store.commit("LAYOUT",e),window.location.reload()},handleOpen:function(e,t){console.log(e,t)},handleSelect:function(e){this.$router.push(e)},handleClose:function(e,t){console.log(e,t)},logout:function(){s.a.remove("userid"),window.location.reload()}},mounted:function(){"guest"===this.$store.state.sys.role&&this.$notify.info({title:"消息",message:"游客没有权限查看所有菜单",offset:60,duration:0})}},a={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-container",[n("el-aside",{staticClass:"horizontal-collapse-transition",style:{width:e.isCollapse?"64px":"200px"}},[n("el-menu",{staticClass:"el-menu-vertical-demo",attrs:{"background-color":"#545c64","text-color":"#fff","active-text-color":"#ffd04b","default-active":e.active,collapse:e.isCollapse},on:{select:e.handleSelect,open:e.handleOpen,close:e.handleClose}},e._l(e.menu,function(t,l){return n("el-submenu",{directives:[{name:"show",rawName:"v-show",value:!t.meta.hidden,expression:"!sub.meta.hidden"}],key:l,attrs:{index:l+"@"}},[n("div",{attrs:{slot:"title"},slot:"title"},[n("i",{staticClass:"el-icon iconfont",class:t.meta.icon}),e._v(" "),n("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(t.meta.title))])]),e._v(" "),e._l(t.children,function(t){return e.menu?n("el-menu-item",{key:t.path,attrs:{index:t.path}},[e._v(e._s(t.meta.title))]):e._e()})],2)}))],1),e._v(" "),n("el-container",[n("el-header",[n("v-icon",{staticClass:"menu",attrs:{name:"icon-xuanxiang"},nativeOn:{click:function(t){return e.handlerIsCollapse(t)}}}),e._v(" "),n("div",{staticClass:"logout"},[n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.screenfull?"还原":"全屏",placement:"top-end"}},[n("v-icon",{attrs:{name:e.screenfull?"icon-smallscreen":"icon-send"},nativeOn:{click:function(t){return e.toggleScreen(t)}}})],1),e._v(" "),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"布局",placement:"top-end"}},[n("v-icon",{attrs:{name:"icon-workbench"},nativeOn:{click:function(t){return e.handleLayout(t)}}})],1),e._v(" "),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"退出",placement:"top-end"}},[n("v-icon",{attrs:{name:"icon-tuichu1"},nativeOn:{click:function(t){return e.logout(t)}}})],1)],1)],1),e._v(" "),n("el-main",[n("router-view")],1)],1)],1)},staticRenderFns:[]};var c=n("VU/8")(o,a,!1,function(e){n("COUk")},"data-v-abeac354",null);t.default=c.exports}});