1 line
7.0 KiB
JavaScript
1 line
7.0 KiB
JavaScript
|
webpackJsonp([57],{YbVU:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=s("oZaA"),n=s("E4LH"),a={data:function(){return{dynamicMenuRoutes:[]}},components:{SubMenu:i.default},computed:{sidebarLayoutSkin:{get:function(){return this.$store.state.common.sidebarLayoutSkin}},sidebarFold:{get:function(){return this.$store.state.common.sidebarFold}},menuList:{get:function(){return this.$store.state.common.menuList},set:function(t){this.$store.commit("common/updateMenuList",t)}},menuActiveName:{get:function(){return this.$store.state.common.menuActiveName},set:function(t){this.$store.commit("common/updateMenuActiveName",t)}},mainTabs:{get:function(){return this.$store.state.common.mainTabs},set:function(t){this.$store.commit("common/updateMainTabs",t)}},mainTabsActiveName:{get:function(){return this.$store.state.common.mainTabsActiveName},set:function(t){this.$store.commit("common/updateMainTabsActiveName",t)}}},watch:{$route:"routeHandle"},created:function(){this.menuList=JSON.parse(sessionStorage.getItem("menuList")||"[]"),this.dynamicMenuRoutes=JSON.parse(sessionStorage.getItem("dynamicMenuRoutes")||"[]"),this.routeHandle(this.$route)},methods:{routeHandle:function(t){if(t.meta.isTab){var e=this.mainTabs.filter(function(e){return e.name===t.name})[0];if(!e){if(t.meta.isDynamic&&!(t=this.dynamicMenuRoutes.filter(function(e){return e.name===t.name})[0]))return console.error("未能找到可用标签页!");e={menuId:t.meta.menuId||t.name,name:t.name,title:t.meta.title,type:Object(n.c)(t.meta.iframeUrl)?"iframe":"module",iframeUrl:t.meta.iframeUrl||"",params:t.params,query:t.query},this.mainTabs=this.mainTabs.concat(e)}this.menuActiveName=e.menuId+"",this.mainTabsActiveName=e.name}}}},o={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("aside",{staticClass:"site-sidebar",class:"site-sidebar--"+t.sidebarLayoutSkin},[s("div",{staticClass:"site-sidebar__inner"},[s("el-menu",{staticClass:"site-sidebar__menu",attrs:{"default-active":t.menuActiveName||"home",collapse:t.sidebarFold,collapseTransition:!1}},[s("el-menu-item",{attrs:{index:"home"},on:{click:function(e){t.$router.push({name:"home"})}}},[s("icon-svg",{staticClass:"site-sidebar__menu-icon",attrs:{name:"shouye"}}),t._v(" "),s("span",{attrs:{slot:"title"},slot:"title"},[t._v("首页")])],1),t._v(" "),s("el-menu-item",{attrs:{index:"schedule"},on:{click:function(e){t.$router.push({name:"schedule"})}}},[s("icon-svg",{staticClass:"site-sidebar__menu-icon",attrs:{name:"job"}}),t._v(" "),s("span",{attrs:{slot:"title"},slot:"title"},[t._v("定时任务")])],1),t._v(" "),s("el-menu-item",{attrs:{index:"OperationMonitor"},on:{click:function(e){t.$router.push({name:"OperationMonitor"})}}},[s("icon-svg",{staticClass:"site-sidebar__menu-icon",attrs:{name:"zaijiagong"}}),t._v(" "),s("span",{attrs:{slot:"title"},slot:"title"},[t._v("运行监控")])],1),t._v(" "),s("el-menu-item",{attrs:{index:"instock"},on:{click:function(e){t.$router.push({name:"instock"})}}},[s("icon-svg",{staticClass:"site-sidebar__menu-icon",attrs:{name:"sousuo"}}),t._v(" "),s("span",{attrs:{slot:"title"},slot:"title"},[t._v("扫码入库")])],1),t._v(" "),s("el-submenu",{attrs:{index:"info"}},[s("template",{slot:"title"},[s("icon-svg",{staticClass:"site-sidebar__menu-icon",attrs:{name:"shoucang"}}),t._v(" "),s("span",[t._v("基础信息")])],1),t._v(" "),s("el-menu-item",{attrs:{index:"demo-ueditor"},on:{click:function(e){t.$router.push({name:"mtequipmentinfo"})}}},[s("icon-svg",{staticClass:"site-sidebar__menu-icon",attrs:{name:"editor"}}),t._v(" "),s("span",{attrs:{slot:"title"},slot:"title"},[t._v("设备基础信息")])],1),t._v(" "),s("el-menu-item",{attrs:{index:"demo-ueditor"},on:{click:function(e){t.$router.push({name:"mtproduct"})}}},[s("icon-svg",{staticClass:"site-sidebar__menu-icon",attrs:{name:"editor"}}),t._v(" "),s("span",{attrs:{slot:"title"},slot:"title"},[t._v("产品基础信息")])],1),t._v(" "),s("el-menu-item",{attrs:{index:"demo-ueditor"},on:{click:function(e){t.$router.push({name:"mtwarehousing"})}}},[s("icon-svg",{staticClass:"site-si
|