|
@@ -5,11 +5,11 @@
|
|
|
<div class="logo-avatar">
|
|
|
<img v-show="img.usetype === 'actionlogo'" v-for="img in siteinfo.attinfos" :key="img.index" style="width:100%" :src="img.url" alt="">
|
|
|
</div>
|
|
|
- <div class="item" :class="routerName === '工作台'?'active':''" @click="($router.push('/home'),act_id = 0)">
|
|
|
+ <div class="item" :class="routerName === '工作台'?'active':''" @click="($router.push('/home'),act_id = null)">
|
|
|
<img width="30" src="../../assets/nav_icon/work_station.svg" alt="">
|
|
|
<p>工作台</p>
|
|
|
</div>
|
|
|
- <div class="item" :class="routerName === '消息中心'?'active':''" @click="($router.push('/message'),act_id = 0)">
|
|
|
+ <div class="item" :class="routerName === '消息中心'?'active':''" @click="($router.push('/message'),act_id = null)">
|
|
|
<img width="30" src="../../assets/nav_icon/work_station.svg" alt="">
|
|
|
<p>消息</p>
|
|
|
</div>
|
|
@@ -33,7 +33,7 @@
|
|
|
<el-button size="mini" @click="$router.go(-1)">返 回</el-button>
|
|
|
</div>
|
|
|
<el-container class="mymain">
|
|
|
- <el-aside v-if="ast_nav" width="200px"><myaside></myaside></el-aside>
|
|
|
+ <el-aside v-if="ast_nav" width="200px"><myaside ref="aside"></myaside></el-aside>
|
|
|
<el-container>
|
|
|
<el-main>
|
|
|
<router-view></router-view>
|
|
@@ -68,7 +68,7 @@ export default {
|
|
|
return {
|
|
|
routerName:'',
|
|
|
modeuls:[],
|
|
|
- act_id:0
|
|
|
+ act_id:null
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
@@ -85,9 +85,16 @@ export default {
|
|
|
},
|
|
|
redictToModules (item) {
|
|
|
this.act_id = item.systemmoduleid
|
|
|
- this.$router.push({path:item.apps[0].path})
|
|
|
+ // 保存当前进入的模块数据
|
|
|
sessionStorage.setItem('active_modules',JSON.stringify(item))
|
|
|
+ // 跳转
|
|
|
+ this.$router.push({path:item.apps[0].path})
|
|
|
+
|
|
|
window.sessionStorage.setItem('currentPath',item.apps[0].path)
|
|
|
+ // 查询侧边栏应用数据
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$refs['aside'].getAuthList()
|
|
|
+ }, 0);
|
|
|
},
|
|
|
async deleteShortcut (item) {
|
|
|
const res = await this.$api.requested({
|
|
@@ -98,6 +105,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
this.$store.dispatch('setUsershortcuts')
|
|
|
+ this.$router.go(-1)
|
|
|
}
|
|
|
},
|
|
|
created () {
|