|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div class="menu_panel">
|
|
|
<div v-if="show">
|
|
|
- <el-menu router v-if="show" :default-active="activeIndex" active-text-color="#3874f6" text-color="#333" class="el-menu-demo shadow" mode="horizontal" @select="handleSelect">
|
|
|
+ <el-menu v-if="show" :default-active="activeIndex" active-text-color="#3874f6" text-color="#333" class="el-menu-demo shadow" mode="horizontal" @select="handleSelect">
|
|
|
<el-submenu v-for="(mod,index) in sys_modules" :key="index" :index="String(index)">
|
|
|
<template slot="title"><b>{{mod.systemmodulename}}</b></template>
|
|
|
<el-menu-item :index="app.path" v-for="(app) in mod.apps" :key="app.index" @click="setActiveModules(mod,app)">{{app.meta.title}}</el-menu-item>
|
|
@@ -38,12 +38,11 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
setActiveModules (mod,app) {
|
|
|
- console.log(mod);
|
|
|
-
|
|
|
- this.$store.dispatch('setActiveApp',{name:app.systemappname,app:app,val:''})
|
|
|
+ const link = ()=>{
|
|
|
+ this.$router.push({path:app.path})
|
|
|
+ }
|
|
|
+ this.$store.dispatch('setActiveApp',{name:app.systemappname,app:app,val:'',link})
|
|
|
sessionStorage.setItem('active_modules',JSON.stringify(mod))
|
|
|
- console.log(JSON.parse(sessionStorage.getItem('active_modules')));
|
|
|
-
|
|
|
},
|
|
|
setDefaultData (mod) {
|
|
|
let active_modules = JSON.parse(sessionStorage.getItem('active_modules'))
|