From a1640b0c9fff81dfc7f9d2411891fcfc662fe9fd Mon Sep 17 00:00:00 2001 From: chenzeping <ChenZeping02609@163.com> Date: 星期一, 19 四月 2021 21:09:47 +0800 Subject: [PATCH] 管线分析及弹框问题 --- src/components/LayerController/logic/WasteSolid.js | 26 +------------------------- 1 files changed, 1 insertions(+), 25 deletions(-) diff --git a/src/components/LayerController/logic/WasteSolid.js b/src/components/LayerController/logic/WasteSolid.js index 3046b2d..b0866e7 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) } } @@ -75,25 +69,8 @@ // 鏍规嵁鐐瑰嚮涓嶅悓鏁版嵁 杩涜鎺ュ彛鐨勬暟鎹姹� 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({ @@ -101,7 +78,6 @@ content: WasteSolidIndex, // 缁勪欢 parent: this, // 鐖剁粍浠� data: { // 浼犻�掔殑鍙傛暟 - info: this.info, storagePlaceId: e.layer.options.totransferData.StoragePlaceId } }, -- Gitblit v1.8.0