From 9ff66017debadfc89bc0c1b796684a4d1dbe2bc3 Mon Sep 17 00:00:00 2001
From: fangyuan <527392886@qq.com>
Date: 星期五, 16 十二月 2022 10:00:02 +0800
Subject: [PATCH] 已上报到市批量操作按钮隐藏

---
 src/components/map/index.vue |   18 +++++++++++++-----
 1 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/src/components/map/index.vue b/src/components/map/index.vue
index 2311dae..f16b949 100644
--- a/src/components/map/index.vue
+++ b/src/components/map/index.vue
@@ -12,6 +12,7 @@
     };
   },
   created() {
+
     // if (this.point) {
     //   this._point = this.point;
     // }
@@ -22,10 +23,11 @@
   methods: {
     locationMap() {
       const that = this;
-      setTimeout(() => {
-        console.log("_zoom---", that._zoom);
-        console.log("_point---", JSON.stringify(that._point));
-        that.map.setZoomAndCenter(that._zoom, [that._point.x, that._point.y]);
+
+
+        // console.log("_zoom---", that.zoom);
+        // console.log("_point---", JSON.stringify(that.point));
+        that.map.setZoomAndCenter(that.zoom, [that.point.x, that.point.y]);
         if (that.mark) {
           // 鍒涘缓涓�涓� Marker 瀹炰緥锛�
           var marker = new AMap.Marker({
@@ -35,8 +37,14 @@
 
           // 灏嗗垱寤虹殑鐐规爣璁版坊鍔犲埌宸叉湁鐨勫湴鍥惧疄渚嬶細
           that.map.add(marker);
+          marker.on('click',function(e){
+            console.log('666')
+            that.$emit('fatherMethod')
+            // that.$parent.fatherMethod();
+
+          })
         }
-      }, 1000);
+
     },
   },
   mounted() {

--
Gitblit v1.8.0