chunk-0281b3aa.222c60e8.js 4.6 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0281b3aa"],{"01c0":function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("CHeader",{attrs:{fixed:"","with-subheader":"",light:""}},[n("CToggler",{staticClass:"ml-3 d-lg-none",attrs:{"in-header":""},on:{click:function(e){return t.$store.commit("toggleSidebarMobile")}}}),n("CToggler",{staticClass:"ml-3 d-md-down-none",attrs:{"in-header":""},on:{click:function(e){return t.$store.commit("toggleSidebarDesktop")}}}),n("CHeaderBrand",{staticClass:"mx-auto d-lg-none",attrs:{to:"/"}},[n("h3",[t._v("慕测实验室管理平台")])]),n("CHeaderNav",{staticClass:"d-md-down-none mr-auto"}),n("CHeaderNav",{staticClass:"mr-4"},[n("TheHeaderDropdownAccnt")],1)],1)},r=[],o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("CDropdown",{staticClass:"c-header-nav-items",attrs:{inNav:"",placement:"bottom-end","add-menu-classes":"pt-0"},scopedSlots:t._u([{key:"toggler",fn:function(){return[n("CHeaderNavLink",[n("div",{staticClass:"c-avatar"},[n("el-button",{staticStyle:{"margin-right":"60px"}},[n("CIcon",{attrs:{name:"cil-user"}}),t._v(t._s(t.userName))],1)],1)])]},proxy:!0}])},[n("CDropdownHeader",{staticClass:"text-center",attrs:{tag:"div",color:"light"}},[n("strong",[t._v("设置")])]),n("CDropdownItem",{on:{click:t.jumpToAccountSetting}},[n("CIcon",{attrs:{name:"cil-user"}}),t._v(" 账号设置 ")],1),t.checkPerm("CREATE")?n("CDropdownItem",{on:{click:t.jumpToUserManager}},[n("CIcon",{attrs:{name:"cil-user"}}),t._v(" 用户管理 ")],1):t._e(),n("CDropdownDivider"),n("CDropdownItem",{on:{click:t.logOut}},[n("CIcon",{attrs:{name:"cil-lock-locked"}}),t._v(" 登出 ")],1)],1)},i=[],s=n("e350"),c={name:"TheHeaderDropdownAccnt",data:function(){return{itemsCount:42,userName:""}},mounted:function(){this.userName=localStorage.getItem("userName")},methods:{checkPerm:function(t){return Object(s["a"])(localStorage.getItem("identity"),t)},jumpToAccountSetting:function(){this.$router.push("/accountSetting")},jumpToUserManager:function(){this.$router.push("/userManage")},logOut:function(){localStorage.clear(),this.$router.push("/pages/login")}}},u=c,l=(n("eab8"),n("2877")),d=Object(l["a"])(u,o,i,!1,null,"a36641b0",null),m=d.exports,C={name:"TheHeader",components:{TheHeaderDropdownAccnt:m}},h=C,p=Object(l["a"])(h,a,r,!1,null,null,null);e["a"]=p.exports},"0932":function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("CFooter",{attrs:{fixed:!1}},[n("div"),n("div",{staticClass:"mfs-auto"})])},r=[],o={name:"TheFooter"},i=o,s=n("2877"),c=Object(s["a"])(i,a,r,!1,null,null,null);e["a"]=c.exports},"3d8c":function(t,e,n){"use strict";n("da53")},"78fd":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:"c-app"},[n("TheSidebar"),n("CWrapper",[n("TheHeader"),n("div",{staticClass:"c-body"},[n("main",{staticClass:"c-main"},[n("CContainer",{attrs:{fluid:""}},[n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view",{key:t.$route.path})],1)],1)],1)]),n("TheFooter")],1)],1)},r=[],o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("CSidebar",{attrs:{fixed:"",minimize:t.minimize,show:t.show},on:{"update:show":function(e){return t.$store.commit("set",["sidebarShow",e])}}},[n("CSidebarBrand",{staticClass:"d-md-down-none",staticStyle:{position:"relative",opacity:"1"},attrs:{to:"/dashboard"}},[n("img",{staticStyle:{width:"100%"},attrs:{src:"/logo.jpg",alt:""}})]),n("CRenderFunction",{attrs:{flat:"","content-to-render":t.$options.nav}}),n("CSidebarMinimizer",{staticClass:"d-md-down-none",nativeOn:{click:function(e){return t.$store.commit("set",["sidebarMinimize",!t.minimize])}}})],1)},i=[],s=[{_name:"CSidebarNav",_children:[{_name:"CSidebarNavItem",name:"账号设置",to:"/accountSetting",icon:"cil-user"}]}],c={name:"TheSidebar3",nav:s,computed:{show:function(){return this.$store.state.sidebarShow},minimize:function(){return this.$store.state.sidebarMinimize}}},u=c,l=n("2877"),d=Object(l["a"])(u,o,i,!1,null,null,null),m=d.exports,C=n("01c0"),h=n("0932"),p={name:"TheContainer3",components:{TheSidebar:m,TheHeader:C["a"],TheFooter:h["a"]}},f=p,E=(n("3d8c"),Object(l["a"])(f,a,r,!1,null,"fc5d6588",null));e["default"]=E.exports},da53:function(t,e,n){},de67:function(t,e,n){},e350:function(t,e,n){"use strict";function a(t,e){var n=r[t];return n.includes(e)}n.d(e,"a",(function(){return a}));var r=[["CHECK","EDIT","DELETE","CREATE","EXECUTE","DELETE","CONFIRM","EXPORT"],["CHECK","EDIT","DELETE","CREATE","EXECUTE","DELETE","CONFIRM","EXPORT"],["CHECK","EXECUTE"]]},eab8:function(t,e,n){"use strict";n("de67")}}]);