Commit 97c9cfd4 by liuwange1

修复

parent f27bfd29
...@@ -186,12 +186,13 @@ export default { ...@@ -186,12 +186,13 @@ export default {
this.activeIndex = index; this.activeIndex = index;
} }
}); });
this.menuCode = this.navList[this.activeIndex].menuCode;
this.getAlarmList();
} }
}, },
// 左侧列表内的告警数量 // 左侧列表内的告警数量
getAlarmMsgByMenu() { getAlarmMsgByMenu() {
this.$axios.get("/alarmMsg/msgCountByMenu").then((e) => { this.$axios.get("/alarmMsg/msgCountByMenu").then((e) => {
console.log(e);
e.data.forEach((item) => { e.data.forEach((item) => {
this.navList.forEach((item2) => { this.navList.forEach((item2) => {
if (item2.menuCode == item.menuCode) { if (item2.menuCode == item.menuCode) {
...@@ -301,7 +302,6 @@ export default { ...@@ -301,7 +302,6 @@ export default {
name: "/KC", name: "/KC",
}) })
.then(() => { .then(() => {
console.log("showPop");
this.showPop = true; this.showPop = true;
}); });
}, },
...@@ -435,7 +435,6 @@ export default { ...@@ -435,7 +435,6 @@ export default {
}); });
} else { } else {
this.alarmActiveIndex = index; this.alarmActiveIndex = index;
console.log("type", this.alarmList[index].noPoint);
if (this.alarmList[index].noPoint) { if (this.alarmList[index].noPoint) {
this.$axios.post("/osc/sendString", { this.$axios.post("/osc/sendString", {
arg: JSON.stringify({ data: this.alarmList[index] }), arg: JSON.stringify({ data: this.alarmList[index] }),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment