|
|
|
|
@ -282,7 +282,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
this.addCluster();
|
|
|
|
|
},
|
|
|
|
|
init() {
|
|
|
|
|
init(adcode = ["320200"]) {
|
|
|
|
|
let winHeight = document
|
|
|
|
|
.querySelector(".app-main")
|
|
|
|
|
?.getBoundingClientRect()?.height;
|
|
|
|
|
@ -294,7 +294,6 @@ export default {
|
|
|
|
|
zoom: this.zoom,
|
|
|
|
|
});
|
|
|
|
|
// 行政区域加载
|
|
|
|
|
let adcode = ["320200"];
|
|
|
|
|
this.areaBG(adcode);
|
|
|
|
|
this.infoWindow = new AMap.InfoWindow({
|
|
|
|
|
isCustom: true,
|
|
|
|
|
@ -564,11 +563,12 @@ export default {
|
|
|
|
|
this.getFormDetail();
|
|
|
|
|
},
|
|
|
|
|
async mounted() {
|
|
|
|
|
this.init();
|
|
|
|
|
let areaId = Number(this.$route.query.area) || ''
|
|
|
|
|
areaId ? (this.init(this.wxAreas[areaId - 1]),this.select.filter[0].value = areaId) : this.init();
|
|
|
|
|
|
|
|
|
|
await this.getList();
|
|
|
|
|
this.setMapMarker();
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|