|
@@ -124,7 +124,7 @@ export default {
|
|
|
clickEmit: "JLControl",
|
|
|
stateKey: "jlActiveState"
|
|
|
},
|
|
|
- { index: 4, title: "上传数据", bgImage: "scsj", clickRef: "scsj" },
|
|
|
+ { index: 4, title: "上传数据", bgImage: "scsj", clickRef: "scsj", clickEmit: "notFound" },
|
|
|
{
|
|
|
index: 5,
|
|
|
title: "自定义模型",
|
|
@@ -164,7 +164,7 @@ export default {
|
|
|
// 根据菜单父级index和子菜单index,判断全局变量已选中底部菜单的index对比,返回状态。
|
|
|
ifMenuIndex(index, subItem) {
|
|
|
if (subItem.stateKey != undefined) {
|
|
|
- return this.$store.state[subItem.stateKey]
|
|
|
+ return this.$store.state[subItem.stateKey];
|
|
|
} else if (index == 1) {
|
|
|
if (subItem.index === 0 || subItem.index === 1) {
|
|
|
return (
|
|
@@ -177,7 +177,7 @@ export default {
|
|
|
changeBottomMenu(index, item) {
|
|
|
// 该逻辑可能会舍弃
|
|
|
if (item.stateKey != undefined) {
|
|
|
- this.$store.commit("changeJlActiveState",!this.$store.state[item.stateKey]);
|
|
|
+ this.$store.commit("changeJlActiveState", !this.$store.state[item.stateKey]);
|
|
|
} else {
|
|
|
this.$store.commit("changeBottomMenu", {
|
|
|
index: index,
|
|
@@ -188,7 +188,7 @@ export default {
|
|
|
// 调用全局事件总线中的指定事件
|
|
|
this.$bus.$emit(item.clickEmit);
|
|
|
}
|
|
|
- if (item.clickRef) {
|
|
|
+ if ((item.clickEmit ? item.clickEmit != "notFound" : true) && item.clickRef) {
|
|
|
// 调用全局事件总线中的指定事件
|
|
|
this.$refs[item.clickRef].changeShowBottomMenusStatus();
|
|
|
}
|