chunk-241ed1ca.f85a20d4.js 5.0 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-241ed1ca"],{"01c0":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("CHeader",{attrs:{fixed:"","with-subheader":"",light:""}},[n("CToggler",{staticClass:"ml-3 d-lg-none",attrs:{"in-header":""},on:{click:function(t){return e.$store.commit("toggleSidebarMobile")}}}),n("CToggler",{staticClass:"ml-3 d-md-down-none",attrs:{"in-header":""},on:{click:function(t){return e.$store.commit("toggleSidebarDesktop")}}}),n("CHeaderBrand",{staticClass:"mx-auto d-lg-none",attrs:{to:"/"}},[n("h3",[e._v("慕测实验室管理平台")])]),n("CHeaderNav",{staticClass:"d-md-down-none mr-auto"}),n("CHeaderNav",{staticClass:"mr-4"},[n("TheHeaderDropdownAccnt")],1)],1)},r=[],o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("CDropdown",{staticClass:"c-header-nav-items",attrs:{inNav:"",placement:"bottom-end","add-menu-classes":"pt-0"},scopedSlots:e._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"}}),e._v(e._s(e.userName))],1)],1)])]},proxy:!0}])},[n("CDropdownHeader",{staticClass:"text-center",attrs:{tag:"div",color:"light"}},[n("strong",[e._v("设置")])]),n("CDropdownItem",{on:{click:e.jumpToAccountSetting}},[n("CIcon",{attrs:{name:"cil-user"}}),e._v(" 账号设置 ")],1),e.checkPerm("CREATE")?n("CDropdownItem",{on:{click:e.jumpToUserManager}},[n("CIcon",{attrs:{name:"cil-user"}}),e._v(" 用户管理 ")],1):e._e(),n("CDropdownDivider"),n("CDropdownItem",{on:{click:e.logOut}},[n("CIcon",{attrs:{name:"cil-lock-locked"}}),e._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(e){return Object(s["a"])(localStorage.getItem("identity"),e)},jumpToAccountSetting:function(){this.$router.push("/accountSetting")},jumpToUserManager:function(){this.$router.push("/userManage")},logOut:function(){localStorage.clear(),this.$router.push("/pages/login")}}},l=c,u=(n("eab8"),n("2877")),d=Object(u["a"])(l,o,i,!1,null,"a36641b0",null),m=d.exports,C={name:"TheHeader",components:{TheHeaderDropdownAccnt:m}},h=C,p=Object(u["a"])(h,a,r,!1,null,null,null);t["a"]=p.exports},"0932":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;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);t["a"]=c.exports},2377:function(e,t,n){},"5b7e":function(e,t,n){"use strict";n("2377")},de67:function(e,t,n){},e350:function(e,t,n){"use strict";function a(e,t){var n=r[e];return n.includes(t)}n.d(t,"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(e,t,n){"use strict";n("de67")},f593:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;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:e.$route.path})],1)],1)],1)]),n("TheFooter")],1)],1)},r=[],o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("CSidebar",{attrs:{fixed:"",minimize:e.minimize,show:e.show},on:{"update:show":function(t){return e.$store.commit("set",["sidebarShow",t])}}},[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":e.$options.nav}}),n("CSidebarMinimizer",{staticClass:"d-md-down-none",nativeOn:{click:function(t){return e.$store.commit("set",["sidebarMinimize",!e.minimize])}}})],1)},i=[],s=[{_name:"CSidebarNav",_children:[{_name:"CSidebarNavItem",name:"首页",to:"/dashboard",icon:"cil-speedometer"},{_name:"CSidebarNavTitle",_children:["管理"]},{_name:"CSidebarNavItem",name:"测试项目",to:"/softwares",icon:"cil-drop"},{_name:"CSidebarNavItem",name:"测试计划",to:"/testPlans",icon:"cil-pencil"},{_name:"CSidebarNavItem",name:"测试任务",to:"/testTasks",icon:"cil-bell"},{_name:"CSidebarNavItem",name:"不合格项",to:"/testNoPass",icon:"cil-ban"},{_name:"CSidebarNavItem",name:"班级",to:"/class",icon:"cil-bell"}]}],c={name:"TheSidebar",nav:s,computed:{show:function(){return this.$store.state.sidebarShow},minimize:function(){return this.$store.state.sidebarMinimize}}},l=c,u=n("2877"),d=Object(u["a"])(l,o,i,!1,null,null,null),m=d.exports,C=n("01c0"),h=n("0932"),p={name:"TheContainer",components:{TheSidebar:m,TheHeader:C["a"],TheFooter:h["a"]}},b=p,f=(n("5b7e"),Object(u["a"])(b,a,r,!1,null,"3b21ac01",null));t["default"]=f.exports}}]);