From 3a500223b98c94e0caa73bee858e8cdbe307eb60 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Mon, 24 Oct 2022 17:09:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=BF=E5=B1=8B=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/base/community/buildDetail.vue | 22 +- .../modules/base/community/buildForm.vue | 14 +- .../regionalParty/activitysDetail.vue | 1 + .../regionalParty/activitysForm.vue | 57 ++-- .../regionalParty/unitsDetail.vue | 1 + .../regionalParty/unitsForm.vue | 57 ++-- .../partymember/icpartyorg-add-or-update.vue | 265 ++++++++---------- 7 files changed, 179 insertions(+), 238 deletions(-) diff --git a/src/views/modules/base/community/buildDetail.vue b/src/views/modules/base/community/buildDetail.vue index 1c1292d95..5fcec1356 100644 --- a/src/views/modules/base/community/buildDetail.vue +++ b/src/views/modules/base/community/buildDetail.vue @@ -54,7 +54,7 @@ {{ dataForm.coordinatePosition?dataForm.coordinatePosition:'--' }} -
地图位置:
@@ -151,17 +151,17 @@ export default { latitude = 39.9088810666821; longitude = 116.39743841556731; } + if (this.dataForm.coordinatePosition) { + this.$nextTick(() => { + if (!map) { + this.initMap(latitude, longitude) + } else { + map.setCenter(latitude, longitude); + map.setMarker(latitude, longitude); + } - this.$nextTick(() => { - if (!map) { - this.initMap(latitude, longitude) - } else { - map.setCenter(latitude, longitude); - map.setMarker(latitude, longitude); - } - - }) - + }) + } }, diff --git a/src/views/modules/base/community/buildForm.vue b/src/views/modules/base/community/buildForm.vue index 3ec874e20..271d1b91a 100644 --- a/src/views/modules/base/community/buildForm.vue +++ b/src/views/modules/base/community/buildForm.vue @@ -241,12 +241,14 @@ export default { this.dataForm.latitude = latitude this.dataForm.longitude = longitude } - if (!map) { - this.initMap(this.dataForm.latitude, this.dataForm.longitude); - } else { - map.setCenter(this.dataForm.latitude, this.dataForm.longitude); - map.setMarker(this.dataForm.latitude, this.dataForm.longitude); - } + this.$nextTick(() => { + if (!map) { + this.initMap(this.dataForm.latitude, this.dataForm.longitude); + } else { + map.setCenter(this.dataForm.latitude, this.dataForm.longitude); + map.setMarker(this.dataForm.latitude, this.dataForm.longitude); + } + }) }, async handleComfirm () { diff --git a/src/views/modules/communityParty/regionalParty/activitysDetail.vue b/src/views/modules/communityParty/regionalParty/activitysDetail.vue index 744bb1be6..b15298ed4 100644 --- a/src/views/modules/communityParty/regionalParty/activitysDetail.vue +++ b/src/views/modules/communityParty/regionalParty/activitysDetail.vue @@ -70,6 +70,7 @@