From f0c30b0c1fd5e4346a23ab7cacf7ca12f91feaaf Mon Sep 17 00:00:00 2001
From: wangqi <magical1908@outlook.com>
Date: 星期一, 29 三月 2021 15:42:24 +0800
Subject: [PATCH] 弹窗布局

---
 src/components/flueGas/flueGas.js |   21 +++++++++++----------
 1 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/src/components/flueGas/flueGas.js b/src/components/flueGas/flueGas.js
index 62f103f..6ea7391 100644
--- a/src/components/flueGas/flueGas.js
+++ b/src/components/flueGas/flueGas.js
@@ -55,14 +55,14 @@
       // // 绾�
       // var polyline = this.L.polyline(latlngs, { color: 'red' }).addTo(this.map)
       // console.log(polyline)
-      marker.bindPopup(() => {
-        return this.FlueGasPopup.$el
-      }, {
-        className: 's-map-popup',
-        minWidth: 1548,
-        closeButton: true,
-        autoClose: false
-      })
+      // marker.bindPopup(() => {
+      //   return this.FlueGasPopup.$el
+      // }, {
+      //   className: 's-map-popup',
+      //   minWidth: 1548,
+      //   closeButton: true,
+      //   autoClose: false
+      // })
       // 鍒掕繃鍑虹幇 灞曠ず鏁版嵁
       marker.bindTooltip(data[i].porltName, {
         permanent: true,
@@ -73,9 +73,10 @@
       // 鐐瑰嚮 浜嬩欢
       marker.on('click', (e) => {
         try {
-          // console.log(e)
+          console.log(e)
           this.EffectOfPulse(e.target.getLatLng())
-          this.FlueGasPopup.setDate(data[i])
+          this.FlueGasPopup.setData(data[i])
+          return this.FlueGasPopup.$el
         } catch (error) {
           console.log(error)
         }

--
Gitblit v1.8.0