From 4f3b3c4d2fcc27c59095e6ddded35a572000e8ee Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Tue, 14 Feb 2023 14:46:05 +0800
Subject: [PATCH] 安保管理地图选点地址回显

---
 src/views/security/security.vue |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/views/security/security.vue b/src/views/security/security.vue
index 839d6a8..c33c9f3 100644
--- a/src/views/security/security.vue
+++ b/src/views/security/security.vue
@@ -38,7 +38,7 @@
       append-to-body
       destroy-on-close
       width="70%">
-      <search-map @getLonLat="getLonLat" :point-lon-lat="point"></search-map>
+      <search-map @getLonLat="getLonLat" @getAddress="getAddress" :point-lon-lat="point"></search-map>
       <span slot="footer" class="dialog-footer">
             <el-button type="primary" @click="confirmLonLat">确 定</el-button>
           </span>
@@ -468,9 +468,13 @@
       this.chosePoint.longitude = data[0]
       this.chosePoint.latitude = data[1]
     },
+    getAddress(data){
+      this.chosePoint.address = data
+    },
     confirmLonLat(){
       this.form.longitude =  this.chosePoint.longitude
       this.form.latitude =  this.chosePoint.latitude
+      this.form.place = this.chosePoint.address
       this.point = "POINT("+this.form.longitude +" "+this.form.latitude+")"
       this.placeBox = false
     }

--
Gitblit v1.9.3