From b41c6ca44111844bb96f3daffe2e61a0e9824f60 Mon Sep 17 00:00:00 2001 From: zhangshuaibao <15731629597@163.com> Date: 星期一, 29 三月 2021 16:02:35 +0800 Subject: [PATCH] 废水弹框内容加载 --- src/components/flueGas/flueGas.js | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/flueGas/flueGas.js b/src/components/flueGas/flueGas.js index ab62d6a..62f103f 100644 --- a/src/components/flueGas/flueGas.js +++ b/src/components/flueGas/flueGas.js @@ -15,8 +15,8 @@ } // 鑾峰彇鏁版嵁 - requestData () { - FlueGas().then(res => { + requestData (data) { + FlueGas(data).then(res => { console.log(res) this.DrawFlueGasContent(res.Result.DataInfo) }).catch(err => { @@ -35,8 +35,8 @@ } for (let i = 0; i < data.length; i++) { // 缁忕含搴� 浣嶇疆 - const positionX = data[i].positionX - const positionY = data[i].positionY + const positionX = data[i].Latitude + const positionY = data[i].Longitude // 鍒ゆ柇 缁忕含搴︿綅缃俊鎭槸鍚﹀瓨鍦� // if (positionX != null && positionY != null) { @@ -64,7 +64,7 @@ autoClose: false }) // 鍒掕繃鍑虹幇 灞曠ず鏁版嵁 - marker.bindTooltip(data[i].StoragePlaceName, { + marker.bindTooltip(data[i].porltName, { permanent: true, offset: [0, -16], direction: 'top', @@ -116,7 +116,7 @@ // 鑴夊啿鏁堟灉璁剧疆瀹炵幇 EffectOfPulse (position, markers, layerGroup) { // // 鍖哄垎鐩存帴鎵ц 鍜屽垽鏂墽琛岀殑涓嶅悓鍖哄埆 - var differentColor = '' + let differentColor = '' if (markers) { differentColor = '#ff0000' } else { -- Gitblit v1.8.0