27143
This commit is contained in:
		| @@ -228,20 +228,10 @@ export default { | |||||||
|   mounted() { |   mounted() { | ||||||
|     this.areaId = this.user.info.areaId |     this.areaId = this.user.info.areaId | ||||||
|     this.areaName = this.user.info.areaName |     this.areaName = this.user.info.areaName | ||||||
|     this.getCorpLocation() |     this.initMap() | ||||||
|   }, |   }, | ||||||
|  |  | ||||||
|   methods: { |   methods: { | ||||||
|     getCorpLocation(){ |  | ||||||
|       if(this.showStatistics) { //楼栋模型返回重新查询 |  | ||||||
|         return |  | ||||||
|       } |  | ||||||
|       this.instance.post("/app/appdvcpconfig/getCorpLocation").then(res=>{ |  | ||||||
|         if(res.code==0){ |  | ||||||
|           this.initMap(res.data); |  | ||||||
|         } |  | ||||||
|       }) |  | ||||||
|     }, |  | ||||||
|     changeZoom(isAdd) { |     changeZoom(isAdd) { | ||||||
|       const zoom = isAdd ? this.map.getZoom() + 1 : this.map.getZoom() - 1 |       const zoom = isAdd ? this.map.getZoom() + 1 : this.map.getZoom() - 1 | ||||||
|       this.map.setZoom(zoom, false, 600) |       this.map.setZoom(zoom, false, 600) | ||||||
| @@ -470,8 +460,7 @@ export default { | |||||||
|       this.isImageMap = flag |       this.isImageMap = flag | ||||||
|     }, |     }, | ||||||
|  |  | ||||||
|     initMap({lng,lat}) { |     initMap() { | ||||||
|       this.center = [lng,lat]; |  | ||||||
|       AMapLoader.load({ |       AMapLoader.load({ | ||||||
|         key: 'b553334ba34f7ac3cd09df9bc8b539dc', |         key: 'b553334ba34f7ac3cd09df9bc8b539dc', | ||||||
|         version: '2.0', |         version: '2.0', | ||||||
| @@ -484,7 +473,6 @@ export default { | |||||||
|         this.map = new AMap.Map('map', { |         this.map = new AMap.Map('map', { | ||||||
|           resizeEnable: true, |           resizeEnable: true, | ||||||
|           zooms: [6, 20], |           zooms: [6, 20], | ||||||
|           center: [lng, lat], |  | ||||||
|           zoom: this.zoom |           zoom: this.zoom | ||||||
|         }) |         }) | ||||||
|         this.satellite = new AMap.TileLayer.Satellite() |         this.satellite = new AMap.TileLayer.Satellite() | ||||||
|   | |||||||
| @@ -71,7 +71,7 @@ export default { | |||||||
|   }, |   }, | ||||||
|   created() { |   created() { | ||||||
|     this.activeName = this.$route.query?.type |     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", |     this.dict.load('residentType', "sex", "faithType", "fileStatus", | ||||||
|         "legality", |         "legality", | ||||||
|         "education", |         "education", | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user