From 52756db4121d18a174e6dadb450e243349bf8cc8 Mon Sep 17 00:00:00 2001 From: 123456 <17862666717> Date: Thu, 23 Jun 2022 18:06:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E8=81=94=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/plugins/point/icpointNoice.vue | 172 +++++++++++------- ...icpointnucleicmonitoring-add-or-update.vue | 11 +- .../point/icpointnucleicmonitoring.vue | 35 +++- ...pointvaccinesinoculation-add-or-update.vue | 11 +- .../point/icpointvaccinesinoculation.vue | 35 +++- 5 files changed, 189 insertions(+), 75 deletions(-) diff --git a/src/views/modules/plugins/point/icpointNoice.vue b/src/views/modules/plugins/point/icpointNoice.vue index d425f8ee..b75a9e63 100644 --- a/src/views/modules/plugins/point/icpointNoice.vue +++ b/src/views/modules/plugins/point/icpointNoice.vue @@ -1,17 +1,19 @@ diff --git a/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue b/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue index 8fd4d1c8..4365131b 100644 --- a/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue +++ b/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue @@ -200,9 +200,8 @@ export default { }; }, }, - mounted() { + mounted() { this.getFormInfo(); - this.initMap(); }, methods: { closeSubmit(){ @@ -219,7 +218,8 @@ export default { // 地图初始化函数,本例取名为init,开发者可根据实际情况定义 initMap() { // 定义地图中心点坐标 - var center = new window.TMap.LatLng(36.0722275, 120.38945519); + let _this = this + var center = new window.TMap.LatLng(_this.dataForm.latitude, _this.dataForm.longitude); // 定义map变量,调用 TMap.Map() 构造函数创建地图 map = new window.TMap.Map(document.getElementById("map_add"), { center: center, // 设置地图中心点坐标 @@ -339,6 +339,10 @@ export default { this.$refs["dataForm"].resetFields(); if (this.dataForm.id) { this.getInfo(); + }else{ + this.dataForm.ongitude = "120.38945519" + this.dataForm.latitude = "36.0722275" + this.initMap(); } }); }, @@ -355,6 +359,7 @@ export default { ...this.dataForm, ...res.data, }; + this.initMap(); }) .catch(() => {}); }, diff --git a/src/views/modules/plugins/point/icpointnucleicmonitoring.vue b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue index 85bb8543..dc4f1605 100644 --- a/src/views/modules/plugins/point/icpointnucleicmonitoring.vue +++ b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue @@ -100,6 +100,13 @@ >导入核酸监测点数据 + 发送通知 + + + +