预警联动

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

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

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

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

Loading…
Cancel
Save