Commit 8d379460 by liuwange1

左侧菜单显示

parent c1f14e78
......@@ -171,8 +171,22 @@ export default {
// this.getBuildListData();
this.initSocket();
this.getAlarmList("");
this.getAlarmMsgByMenu();
},
methods: {
// 左侧列表内的告警数量
getAlarmMsgByMenu() {
this.$axios.get("/alarmMsg/msgCountByMenu").then((e) => {
console.log(e);
e.data.forEach((item) => {
this.navList.forEach((item2) => {
if (item2.menuCode == item.menuCode) {
item2.number = item.msgNum;
}
});
});
});
},
getBuildListData() {
this.$axios.get("/building/getBuildingList").then((e) => {
this.$store.commit("setBuildList", e.data);
......
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