From 4fef038c7e4ba6a82b77e9679f58e2f9d8c0711b Mon Sep 17 00:00:00 2001
From: ChenZeping <chenzeping>
Date: 星期四, 29 四月 2021 18:54:39 +0800
Subject: [PATCH] Merge branch 'develop' of http://xearth.cn:6600/r/wuyushui/SewerAndRainNetwork into develop

---
 src/components/LayerController/logic/WasteSolid.js |   60 +++++++++++++++---------------------------------------------
 1 files changed, 15 insertions(+), 45 deletions(-)

diff --git a/src/components/LayerController/logic/WasteSolid.js b/src/components/LayerController/logic/WasteSolid.js
index 3046b2d..bba786a 100644
--- a/src/components/LayerController/logic/WasteSolid.js
+++ b/src/components/LayerController/logic/WasteSolid.js
@@ -11,8 +11,6 @@
 // 浣跨敤灏佽鏂规硶
 const AnimalService = require('../service/AnimalService').default
 
-// const publicBounced = require('../../BaseNav/PublicBounced/PublicBounced').default
-
 module.exports = function () {
   /**
    * 杩斿洖marker瀵硅薄鏁扮粍
@@ -34,8 +32,7 @@
       // 瀹氫箟绫诲瀷 鐢ㄦ潵鍖哄垎鏁版嵁鐨勪笉鍚� 1.鎺ュ彛鎺ュ彛鏁版嵁鏉ヨ繘琛屾暟鎹殑鍒ゆ柇 2.鏍规嵁鏁版嵁绫诲瀷鐨勪笉鍚岋紝杩涜涓嶅悓绫诲瀷鐨勫浘鐗囨樉绀�
       const judgeValue = getSolidWasteData[i].StorageQty
       var iconUrl = this.differentTypes(judgeValue)
-      // console.log(getSolidWasteData[i].Latitude, getSolidWasteData[i].Longitude)
-      // console.log(getSolidWasteData[i])
+
       const marker = L.marker([positionX, positionY], {
         totransferData: getSolidWasteData[i],
         icon: L.icon({
@@ -44,9 +41,6 @@
           iconAnchor: [15, 15]
         })
       })
-      // console.log(L.icon)
-      // console.log(iconUrl)
-      // console.log(marker)
       layer.addLayer(marker)
     }
   }
@@ -58,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)
   }
 
   // 涓嶅悓绫诲瀷鍥剧墖灏佽
@@ -71,42 +77,6 @@
       effectOfChange = setting
     }
     return effectOfChange
-  }
-
-  // 鏍规嵁鐐瑰嚮涓嶅悓鏁版嵁 杩涜鎺ュ彛鐨勬暟鎹姹�
-  this.requestSolidWasteData = async (e) => {
-    // 鍩烘湰淇℃伅 鍜� 璇︾粏淇℃伅 灞曠ず鏁版嵁鎵�闇�鍙傛暟
-    // const dataValue = {
-    //   StoragePlaceId: e.layer.options.totransferData.StoragePlaceId
-    // }
-    // console.log(e.layer.options.totransferData.Name)
-    // 寮规鏍囬
-    const title = e.layer.options.totransferData.Name
-    // 鍩烘湰淇℃伅 tabs
-    // const resultBasic = await mapApi.getSolidWasteBaseInfo(dataValue)
-    // 璇︾粏淇℃伅灞曠ず table
-    // const resultDetailed = await mapApi.getSolidWasteDetail(dataValue)
-
-    // // 缁戝畾寮规瀹炰緥
-    // const PublicBounced = window.Vue.extend(publicBounced)
-    // const instance = new PublicBounced().$mount()
-    // document.body.appendChild(instance.$el)
-    // // document.body.removeChild(instance.$el)
-    // // 閫氳繃鏂规硶 鍚戠粦瀹氬脊妗嗕紶閫掓暟鎹�
-    // instance.setData(title, resultBasic.Result.DataInfo, resultDetailed.Result.DataInfo, 'gufei')
-    /* flyTo()寮瑰嚭妗嗗钩绉讳簨浠� */
-    this.setPanTo(e.latlng, 300)
-    window.$layer.open({
-      content: {
-        content: WasteSolidIndex, // 缁勪欢
-        parent: this, // 鐖剁粍浠�
-        data: { // 浼犻�掔殑鍙傛暟
-          info: this.info,
-          storagePlaceId: e.layer.options.totransferData.StoragePlaceId
-        }
-      },
-      title: title // 鏍囬
-    })
   }
 
   // flayTo() 寮规鐨勫彲婊戝姩浜嬩欢

--
Gitblit v1.8.0