|
@@ -5,18 +5,19 @@
|
|
|
<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')">
|
|
|
+ <div class="item" :class="routerName === '工作台'?'active':''" @click="($router.push('/home'),act_id = 0)">
|
|
|
<img width="30" src="../../assets/nav_icon/work_station.svg" alt="">
|
|
|
<p>工作台</p>
|
|
|
</div>
|
|
|
- <div class="item" :class="routerName === '消息中心'?'active':''" @click="$router.push('/message')">
|
|
|
+ <div class="item" :class="routerName === '消息中心'?'active':''" @click="($router.push('/message'),act_id = 0)">
|
|
|
<img width="30" src="../../assets/nav_icon/work_station.svg" alt="">
|
|
|
<p>消息</p>
|
|
|
</div>
|
|
|
- <!-- <div class="item" :class="routerName === '媒体库'?'active':''" @click="$router.push('/mediaStock')">
|
|
|
+ <div class="item" :class="item.systemmoduleid === act_id?'active':''" v-for="item in shortcutlist" :key="item.systemmoduleid" @click="redictToModules(item)">
|
|
|
+ <p class="close-shortcut" @click.stop="deleteShortcut(item)"><i class="el-icon-error"></i></p>
|
|
|
<img width="30" src="../../assets/nav_icon/work_station.svg" alt="">
|
|
|
- <p>媒体库</p>
|
|
|
- </div> -->
|
|
|
+ <p>{{item.systemmodulename}}</p>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="nav-bottom-item">
|
|
|
<div class="item">
|
|
@@ -56,12 +57,15 @@ export default {
|
|
|
},
|
|
|
computed:{
|
|
|
...mapGetters({
|
|
|
- siteinfo:'siteinfo'
|
|
|
+ siteinfo:'siteinfo',
|
|
|
+ shortcutlist:'shortcutlist'
|
|
|
})
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
|
- routerName:''
|
|
|
+ routerName:'',
|
|
|
+ modeuls:[],
|
|
|
+ act_id:0
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
@@ -72,14 +76,30 @@ export default {
|
|
|
"content": {}
|
|
|
})
|
|
|
},
|
|
|
+ // 查询常用栏数据
|
|
|
+ async query_usershortcuts () {
|
|
|
+ this.$store.dispatch('setUsershortcuts')
|
|
|
+ },
|
|
|
redictToModules (item) {
|
|
|
+ this.act_id = item.systemmoduleid
|
|
|
this.$router.push({path:item.apps[0].path})
|
|
|
sessionStorage.setItem('active_modules',JSON.stringify(item))
|
|
|
window.sessionStorage.setItem('currentPath',item.apps[0].path)
|
|
|
},
|
|
|
+ async deleteShortcut (item) {
|
|
|
+ const res = await this.$api.requested({
|
|
|
+ "classname": "sysmanage.develop.userauth.userauth",
|
|
|
+ "method": "delete_usershortcuts",
|
|
|
+ "content": {
|
|
|
+ "systemmoduleid":item.systemmoduleid
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.$store.dispatch('setUsershortcuts')
|
|
|
+ }
|
|
|
},
|
|
|
created () {
|
|
|
this.siteInfos()
|
|
|
+ this.query_usershortcuts()
|
|
|
this.routerName = this.$route.meta.title
|
|
|
this.ast_nav = this.$route.meta.ast_nav
|
|
|
},
|
|
@@ -116,6 +136,7 @@ export default {
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.item{
|
|
|
+ position: relative;
|
|
|
width: 40px;
|
|
|
padding: 10px;
|
|
|
margin:0 auto 20px auto;
|
|
@@ -137,6 +158,18 @@ export default {
|
|
|
background: #095DE0;
|
|
|
|
|
|
}
|
|
|
+.close-shortcut {
|
|
|
+ position: absolute;
|
|
|
+ display: none;
|
|
|
+ top:-10px;
|
|
|
+ right:-5px;
|
|
|
+}
|
|
|
+.item:hover .close-shortcut {
|
|
|
+ display: block;
|
|
|
+}
|
|
|
+.close-shortcut i{
|
|
|
+ font-size: 20px;
|
|
|
+}
|
|
|
.mymain{
|
|
|
height: calc(100vh - 99px);
|
|
|
}
|