预警联动

master
许宏杰 2 months ago
parent 43480e74a4
commit 664fa570ed

@ -90,11 +90,7 @@ export default {
],
};
},
mounted() {
if (this.showLeft) {
this.$store.dispatch("GetYjtotal", {});
}
},
mounted() {},
methods: {
/**
* 是个中心

@ -109,7 +109,7 @@ const taicang = {
/**预警总数 */
GetYjtotal({ commit }, queryParams) {
return new Promise((resolve, reject) => {
getYj().then((res) => {
getYj(queryParams).then((res) => {
commit("SET_YJ_TOTAL", res.data);
resolve();
});

@ -83,12 +83,16 @@ export default {
},
mounted() {
this.getCommunity();
this.$store.dispatch("GetYjtotal");
this.$store.dispatch("GetXiaoquInfo", this.dept.deptId);
this.$store.dispatch("getThreeCell");
this.$store.dispatch("GetcolorList");
},
methods: {
handleChange(e) {
this.$store.dispatch("GetYjtotal", {
shequId: e == 100 ? undefined : e,
});
this.$store.commit("SET_QUERY_PARAMS", { shequId: e });
this.$store.dispatch("GetXiaoquInfo", e);

Loading…
Cancel
Save