From 31a8e93cf1cc708b68456b88aa5b0031a41eb47a Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期二, 10 十二月 2024 16:36:45 +0800 Subject: [PATCH] 能耗分析 --- WinFrmUI/HStation.WinFrmUI.Xhs.Core/map/gaode/html/ViewProjectList.html | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/map/gaode/html/ViewProjectList.html b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/map/gaode/html/ViewProjectList.html index 856e60e..8db39e0 100644 --- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/map/gaode/html/ViewProjectList.html +++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/map/gaode/html/ViewProjectList.html @@ -143,8 +143,12 @@ function initOverlayListener(overlay) { const id = overlay.objInfo.Id - const objInfoNameEle = document.querySelector(".obj-info-name-" + id); - objInfoNameEle?.addEventListener("click", () => { + console.log('id:', id) + // FIXME: 姣忔鍒囨崲閮戒細鏂板鍚屾牱鐨勫厓绱�, 闇�瑕佷紭鍖� + const objInfoNameEleList = document.querySelectorAll(".obj-info-name-" + id); + const lastEle = objInfoNameEleList[objInfoNameEleList.length - 1]; + + lastEle?.addEventListener("click", () => { _callBackObj.JumpSimulation(overlay.objInfo.Id); }); } @@ -167,7 +171,6 @@ info.push(overlay.objInfo.Customer); info.push("</p>"); info.push("</div>"); - infoWindow = new AMap.InfoWindow({ anchor: "bottom-center", content: info.join(""), -- Gitblit v1.9.3