From 86a3bf670a40559a8e72021925435492667f40d0 Mon Sep 17 00:00:00 2001
From: chenzeping <ChenZeping02609@163.com>
Date: 星期二, 20 四月 2021 13:51:47 +0800
Subject: [PATCH] 图表部分修改

---
 src/components/LayerController/logic/WasteSolid.js |   34 ++++++++++++++--------------------
 1 files changed, 14 insertions(+), 20 deletions(-)

diff --git a/src/components/LayerController/logic/WasteSolid.js b/src/components/LayerController/logic/WasteSolid.js
index b0866e7..bba786a 100644
--- a/src/components/LayerController/logic/WasteSolid.js
+++ b/src/components/LayerController/logic/WasteSolid.js
@@ -52,8 +52,20 @@
   this.clickListener = (e) => {
     // 鐐瑰嚮marker鐨刾ulse()鍏夋尝
     this.animalService.pulseEffect(e.latlng)
-    /* 鐐瑰嚮鏁版嵁鐨勬帴鍙h姹� */
-    this.requestSolidWasteData(e).then(e)
+    // 寮规鏍囬
+    const title = e.layer.options.totransferData.Name
+    window.$layer.open({
+      content: {
+        content: WasteSolidIndex, // 缁勪欢
+        parent: this, // 鐖剁粍浠�
+        data: { // 浼犻�掔殑鍙傛暟
+          storagePlaceId: e.layer.options.totransferData.StoragePlaceId
+        }
+      },
+      title: title // 鏍囬
+    })
+    /* flyTo()寮瑰嚭妗嗗钩绉讳簨浠� */
+    this.setPanTo(e.latlng, 300)
   }
 
   // 涓嶅悓绫诲瀷鍥剧墖灏佽
@@ -65,24 +77,6 @@
       effectOfChange = setting
     }
     return effectOfChange
-  }
-
-  // 鏍规嵁鐐瑰嚮涓嶅悓鏁版嵁 杩涜鎺ュ彛鐨勬暟鎹姹�
-  this.requestSolidWasteData = async (e) => {
-    // 寮规鏍囬
-    const title = e.layer.options.totransferData.Name
-    /* flyTo()寮瑰嚭妗嗗钩绉讳簨浠� */
-    this.setPanTo(e.latlng, 300)
-    window.$layer.open({
-      content: {
-        content: WasteSolidIndex, // 缁勪欢
-        parent: this, // 鐖剁粍浠�
-        data: { // 浼犻�掔殑鍙傛暟
-          storagePlaceId: e.layer.options.totransferData.StoragePlaceId
-        }
-      },
-      title: title // 鏍囬
-    })
   }
 
   // flayTo() 寮规鐨勫彲婊戝姩浜嬩欢

--
Gitblit v1.8.0