From dddcf8840e52a212e7b49ec034aec7763b5917f5 Mon Sep 17 00:00:00 2001
From: chenzeping <ChenZeping02609@163.com>
Date: 星期四, 01 四月 2021 10:56:35 +0800
Subject: [PATCH] Merge branch 'develop' of http://xearth.cn:6600/r/wuyushui/SewerAndRainNetwork into develop

---
 src/components/LayerController/logic/SolidWaste.js |   53 ++++++++++++++++++++++++++++-------------------------
 1 files changed, 28 insertions(+), 25 deletions(-)

diff --git a/src/components/LayerController/logic/SolidWaste.js b/src/components/LayerController/logic/SolidWaste.js
index 37b4b15..3eee0e3 100644
--- a/src/components/LayerController/logic/SolidWaste.js
+++ b/src/components/LayerController/logic/SolidWaste.js
@@ -36,7 +36,7 @@
       var iconUrl = this.differentTypes(judgeValue)
 
       const marker = L.marker([positionX, positionY], {
-        test: getSolidWasteData[i],
+        totransferData: getSolidWasteData[i],
         icon: L.icon({
           iconUrl: iconUrl,
           iconSize: [50, 50],
@@ -48,7 +48,7 @@
   }
 
   this.bindTooltip = (layer) => {
-    return layer.options.test.Name
+    return layer.options.totransferData.Name
   }
 
   this.clickListener = (e) => {
@@ -60,29 +60,6 @@
     this.requestSolidWasteData(e).then(e)
   }
 
-  // 鏍规嵁鐐瑰嚮涓嶅悓鏁版嵁 杩涜鎺ュ彛鐨勬暟鎹姹�
-  this.requestSolidWasteData = async (e) => {
-    const dataValue = {
-      StoragePlaceId: e.layer.options.test.StoragePlaceId
-    }
-    const result = await mapApi.getSolidWasteBaseInfo(dataValue)
-    // console.log(result)
-    const PublicBounced = window.Vue.extend(publicBounced)
-    const instance = new PublicBounced()
-    instance.$mount()
-    document.body.appendChild(instance.$el)
-    instance.setData(result.Result.DataInfo, 'gufei')
-  }
-
-  // flayTo()
-  // this.setPanTo = (pos, value) => {
-  //   var position = pos
-  //   position = this.map.latLngToLayerPoint(position)
-  //   position.y += value
-  //   position = this.map.layerPointToLatLng(position)
-  //   this.map.flyTo(position)
-  // }
-
   // 涓嶅悓绫诲瀷鍥剧墖灏佽
   this.differentTypes = (judgeValue) => {
     var effectOfChange
@@ -93,4 +70,30 @@
     }
     return effectOfChange
   }
+
+  // 鏍规嵁鐐瑰嚮涓嶅悓鏁版嵁 杩涜鎺ュ彛鐨勬暟鎹姹�
+  this.requestSolidWasteData = async (e) => {
+    // 鍩烘湰淇℃伅灞曠ず
+    const dataValue = {
+      StoragePlaceId: e.layer.options.totransferData.StoragePlaceId
+    }
+    const resultBasic = await mapApi.getSolidWasteBaseInfo(dataValue)
+    // 璇︾粏淇℃伅灞曠ず
+    const resultDetailed = await mapApi.getSolidWasteDetail(dataValue)
+
+    const PublicBounced = window.Vue.extend(publicBounced)
+    const instance = new PublicBounced()
+    instance.$mount()
+    document.body.appendChild(instance.$el)
+    instance.setData(resultBasic.Result.DataInfo, resultDetailed, 'gufei')
+  }
+
+  // flayTo()
+  // this.setPanTo = (pos, value) => {
+  //   var position = pos
+  //   position = this.map.latLngToLayerPoint(position)
+  //   position.y += value
+  //   position = this.map.layerPointToLatLng(position)
+  //   this.map.flyTo(position)
+  // }
 }

--
Gitblit v1.8.0