|
|
|
@ -84,7 +84,7 @@
|
|
|
|
|
},
|
|
|
|
|
systemData: [],
|
|
|
|
|
layoutData: {},
|
|
|
|
|
showWorkBenchButton:true,//是否展示工作台顶部操作按钮
|
|
|
|
|
showWorkBenchButton: true,//是否展示工作台顶部操作按钮
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
@ -105,6 +105,15 @@
|
|
|
|
|
deep: true
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
beforeMount(){
|
|
|
|
|
//解决二级页面刷新后,顶部导航菜单消失问题
|
|
|
|
|
let menuOptions = this.$store.state.userStore.menuOptions;
|
|
|
|
|
if (menuOptions) {
|
|
|
|
|
this.title = menuOptions.title;
|
|
|
|
|
this.menuAry = menuOptions.menuAry;
|
|
|
|
|
this.menuPath = menuOptions.menuPath;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted(){
|
|
|
|
|
this.emitRouteChange(this.$route.path);
|
|
|
|
|
this.$bus.on("topCountChange", this.changeCount);
|
|
|
|
@ -136,7 +145,7 @@
|
|
|
|
|
return path !== ""
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
if(routePathAry.length > 1){
|
|
|
|
|
if (routePathAry.length > 1) {
|
|
|
|
|
//子路由
|
|
|
|
|
this.menuPath = routePath;
|
|
|
|
|
this.changeBackImg(this.menuPath);
|
|
|
|
@ -149,6 +158,11 @@
|
|
|
|
|
}
|
|
|
|
|
this.menuAry = this.filterMenuAry(routePath);
|
|
|
|
|
this.menuPath = this.menuAry && this.menuAry.length > 0 ? this.menuAry[0].path : "";
|
|
|
|
|
this.$store.commit('userStore/setMenuOptions', {
|
|
|
|
|
title: this.title,
|
|
|
|
|
menuAry: this.menuAry,
|
|
|
|
|
menuPath: this.menuPath
|
|
|
|
|
});
|
|
|
|
|
this.changeBackImg(this.menuPath);
|
|
|
|
|
this.$emit("modelChange", this.menuPath);
|
|
|
|
|
},
|
|
|
|
@ -160,19 +174,19 @@
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
changeBackImg: function (path) {
|
|
|
|
|
if(path.indexOf("workBench") > 0){
|
|
|
|
|
if (path.indexOf("workBench") > 0) {
|
|
|
|
|
//工作台
|
|
|
|
|
if(path === "/workBench/application"){
|
|
|
|
|
if (path === "/workBench/application") {
|
|
|
|
|
//更多应用
|
|
|
|
|
this.rightWidth = 30;
|
|
|
|
|
this.topImgUrl = topImg01;
|
|
|
|
|
this.showWorkBenchButton = false;
|
|
|
|
|
}else {
|
|
|
|
|
} else {
|
|
|
|
|
this.rightWidth = 40;
|
|
|
|
|
this.topImgUrl = topImg02;
|
|
|
|
|
this.showWorkBenchButton = true;
|
|
|
|
|
}
|
|
|
|
|
}else {
|
|
|
|
|
} else {
|
|
|
|
|
this.rightWidth = 30;
|
|
|
|
|
this.topImgUrl = topImg01;
|
|
|
|
|
this.showWorkBenchButton = false;
|
|
|
|
@ -257,10 +271,14 @@
|
|
|
|
|
this.$bus.emit("accessSubsystem", systemData);
|
|
|
|
|
},
|
|
|
|
|
//跳转综合服务平台管理中心
|
|
|
|
|
servicePlatform:function (systemData) {
|
|
|
|
|
servicePlatform: function (systemData) {
|
|
|
|
|
this.$refs.systemListRef.clicked = false;
|
|
|
|
|
//this.$router.replace({name:"servicePlatform",params:{id:systemData.id,name:systemData.title}});
|
|
|
|
|
this.$router.push({path:'/workBench/servicePlatform/:id/:name',name:'servicePlatform',params:{id:systemData.id,name:systemData.title}});
|
|
|
|
|
this.$router.push({
|
|
|
|
|
path: '/workBench/servicePlatform/:id/:name',
|
|
|
|
|
name: 'servicePlatform',
|
|
|
|
|
params: {id: systemData.id, name: systemData.title}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
beforeDestroy(){
|
|
|
|
|