From 2900c27c70fca9c216869f9e8175f33c1db3c422 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Thu, 10 Feb 2022 11:12:41 +0800 Subject: [PATCH] 27143 --- project/sass/apps/AppHouseMap/AppHouseMap.vue | 16 ++-------------- project/sass/apps/AppResident/AppResident.vue | 2 +- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/project/sass/apps/AppHouseMap/AppHouseMap.vue b/project/sass/apps/AppHouseMap/AppHouseMap.vue index ae0f5173..25826f42 100644 --- a/project/sass/apps/AppHouseMap/AppHouseMap.vue +++ b/project/sass/apps/AppHouseMap/AppHouseMap.vue @@ -228,20 +228,10 @@ export default { mounted() { this.areaId = this.user.info.areaId this.areaName = this.user.info.areaName - this.getCorpLocation() + this.initMap() }, methods: { - getCorpLocation(){ - if(this.showStatistics) { //楼栋模型返回重新查询 - return - } - this.instance.post("/app/appdvcpconfig/getCorpLocation").then(res=>{ - if(res.code==0){ - this.initMap(res.data); - } - }) - }, changeZoom(isAdd) { const zoom = isAdd ? this.map.getZoom() + 1 : this.map.getZoom() - 1 this.map.setZoom(zoom, false, 600) @@ -470,8 +460,7 @@ export default { this.isImageMap = flag }, - initMap({lng,lat}) { - this.center = [lng,lat]; + initMap() { AMapLoader.load({ key: 'b553334ba34f7ac3cd09df9bc8b539dc', version: '2.0', @@ -484,7 +473,6 @@ export default { this.map = new AMap.Map('map', { resizeEnable: true, zooms: [6, 20], - center: [lng, lat], zoom: this.zoom }) this.satellite = new AMap.TileLayer.Satellite() diff --git a/project/sass/apps/AppResident/AppResident.vue b/project/sass/apps/AppResident/AppResident.vue index 1ef46b3e..c14d2085 100644 --- a/project/sass/apps/AppResident/AppResident.vue +++ b/project/sass/apps/AppResident/AppResident.vue @@ -71,7 +71,7 @@ export default { }, created() { this.activeName = this.$route.query?.type - this.areaId = JSON.parse(JSON.stringify(this.user.info.areaId)) + // this.areaId = JSON.parse(JSON.stringify(this.user.info.areaId)) this.dict.load('residentType', "sex", "faithType", "fileStatus", "legality", "education",