|
|
|
@ -3,6 +3,7 @@
|
|
|
|
|
<NavigationBar
|
|
|
|
|
:mainTitle="xiaoquIntroduce.deptName + '人口数据管理系统'"
|
|
|
|
|
:showStreet="false"
|
|
|
|
|
@reset="clickReset"
|
|
|
|
|
></NavigationBar>
|
|
|
|
|
<mapSearchBox />
|
|
|
|
|
<mars-map ref="map" :xiaoquId="queryParamsXiaoqu.xiaoquId"></mars-map>
|
|
|
|
@ -51,6 +52,7 @@ import {
|
|
|
|
|
building,
|
|
|
|
|
house,
|
|
|
|
|
} from "@/views/components/index.js";
|
|
|
|
|
import { set } from "nprogress";
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {};
|
|
|
|
@ -74,17 +76,27 @@ export default {
|
|
|
|
|
...mapGetters(["xiaoquIntroduce", "queryParamsXiaoqu"]),
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.$store.commit("RESET_QUERY"); //重置参数
|
|
|
|
|
let id = this.$route.query.xiaoquId;
|
|
|
|
|
this.$store.commit("CHANGE_QUERY", { xiaoquId: parseInt(id) }); //存储全局参数
|
|
|
|
|
this.$store.commit("SET_QUERY_PARAMS", {
|
|
|
|
|
xiaoquId: parseInt(id),
|
|
|
|
|
});
|
|
|
|
|
this.$store.dispatch("GetYjtotal", {
|
|
|
|
|
xiaoquId: id,
|
|
|
|
|
}); //预警总数
|
|
|
|
|
this.pageCreated();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
pageCreated() {
|
|
|
|
|
this.$store.commit("RESET_QUERY"); //重置参数
|
|
|
|
|
let id = this.$route.query.xiaoquId;
|
|
|
|
|
this.$store.commit("CHANGE_QUERY", { xiaoquId: parseInt(id) }); //存储全局参数
|
|
|
|
|
this.$store.commit("SET_QUERY_PARAMS", {
|
|
|
|
|
xiaoquId: parseInt(id),
|
|
|
|
|
});
|
|
|
|
|
this.$store.dispatch("GetYjtotal", {
|
|
|
|
|
xiaoquId: id,
|
|
|
|
|
}); //预警总数
|
|
|
|
|
},
|
|
|
|
|
clickReset() {
|
|
|
|
|
this.$store.commit("SET_RESET", true);
|
|
|
|
|
this.pageCreated();
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.$store.commit("SET_RESET", false);
|
|
|
|
|
}, 1500);
|
|
|
|
|
},
|
|
|
|
|
filterTitle() {
|
|
|
|
|
return !this.queryParamsXiaoqu.parentid &&
|
|
|
|
|
!this.queryParamsXiaoqu.buildingId
|
|
|
|
|