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/WasteWater.js | 34 +++++++++++++++++----------------- 1 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/components/LayerController/logic/WasteWater.js b/src/components/LayerController/logic/WasteWater.js index 2e1205e..0305114 100644 --- a/src/components/LayerController/logic/WasteWater.js +++ b/src/components/LayerController/logic/WasteWater.js @@ -56,9 +56,21 @@ this.clickListener = (e) => { // 鐐瑰嚮marker鐨刾ulse()鍏夋尝 this.animalService.pulseEffect(e.latlng) - /* 鐐瑰嚮鏁版嵁鐨勬帴鍙h姹� */ - this.requestWasteWaterData(e).then(e) - console.log() + // 寮规鏍囬 + const title = e.layer.options.totransferData.Name + const res = e.layer.options.totransferData + window.$layer.open({ + content: { + content: WasteWaterIndex, // 缁勪欢 + parent: this, // 鐖剁粍浠� + data: { // 浼犻�掔殑鍙傛暟 + // info: this.info + storagePlaceId: res + } + }, + title: title // 鏍囬 + }) + this.setPanTo(e.latlng, 150) } this.requestWasteWaterData = async (e) => { // 鍩烘湰淇℃伅 鍜� 璇︾粏淇℃伅 灞曠ず鏁版嵁鎵�闇�鍙傛暟 @@ -66,8 +78,8 @@ // StoragePlaceId: e.layer.options.test.StoragePlaceId // } // 寮规鏍囬 - const title = e.layer.options.totransferData.Name - console.log(e.layer.options) + // const title = e.layer.options.totransferData.Name + // console.log(e.layer.options) // 鍩烘湰淇℃伅 tabs // const resultBasic = await mapApi.getWasteWater(dataValue) // 鍥捐〃淇℃伅灞曠ず echarts @@ -88,18 +100,6 @@ // // 閫氳繃鏂规硶 鍚戠粦瀹氬脊妗嗕紶閫掓暟鎹� // instance.setData(title, resultBasic.Result.DataInfo, resultDetailed.Result.DataInfo, 'gufei') /* flyTo()寮瑰嚭妗嗗钩绉讳簨浠� */ - this.setPanTo(e.latlng, 150) - window.$layer.open({ - content: { - content: WasteWaterIndex, // 缁勪欢 - parent: this, // 鐖剁粍浠� - data: { // 浼犻�掔殑鍙傛暟 - info: this.info - // storagePlaceId: e.layer.options.totransferData.StoragePlaceId - } - }, - title: title // 鏍囬 - }) } // 鏍规嵁杩斿洖鍊肩殑涓嶅悓鏍囪涓嶅悓鍥剧墖 -- Gitblit v1.8.0