|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
<div class="navigation-bar">
|
|
|
|
|
<div class="navigation-left" v-show="showLeft">
|
|
|
|
|
<el-badge
|
|
|
|
|
:value="item.badge ? item.badge : ''"
|
|
|
|
|
:value="item.title == '预警中心' ? yjTotal : ''"
|
|
|
|
|
class="item"
|
|
|
|
|
v-for="(item, index) in leftBtnList"
|
|
|
|
|
:key="index"
|
|
|
|
@ -75,12 +75,17 @@ export default {
|
|
|
|
|
open: false,
|
|
|
|
|
leftBtnList: [
|
|
|
|
|
{ title: "搜索中心", isShow: true },
|
|
|
|
|
{ title: "预警中心", isShow: true, badge: 100 },
|
|
|
|
|
{ title: "预警中心", isShow: true },
|
|
|
|
|
{ title: "回收中心", isShow: true },
|
|
|
|
|
{ title: "日志中心", isShow: true },
|
|
|
|
|
],
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
if (this.showLeft) {
|
|
|
|
|
this.$store.dispatch("GetYjtotal", {});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
/**
|
|
|
|
|
* 是个中心
|
|
|
|
@ -91,7 +96,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
...mapGetters(["name"]),
|
|
|
|
|
...mapGetters(["name", "yjTotal"]),
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|