From 97a43bf839f59cdda1641d61706e6e71a0c5e172 Mon Sep 17 00:00:00 2001 From: cloudflight <cloudflight@126.com> Date: 星期二, 24 十二月 2024 23:54:17 +0800 Subject: [PATCH] Merge branch 'master' of http://47.103.154.90:83/r/HStation/XHS.V1.0 --- WinFrmUI/HStation.WinFrmUI.Xhs.Core/map/gaode/html/ViewProjectList.html | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 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 30384cb..8db39e0 100644 --- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/map/gaode/html/ViewProjectList.html +++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/map/gaode/html/ViewProjectList.html @@ -142,11 +142,15 @@ } function initOverlayListener(overlay) { - const objInfoNameEle = document.querySelector(".obj-info-name"); - objInfoNameEle?.addEventListener("click", () => { + const id = overlay.objInfo.Id + 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); }); - } //璁剧疆閫夋嫨椤圭洰鏍峰紡 @@ -154,8 +158,9 @@ setCancelSelectProjectStyle(); let info = []; info.push("<div className='input-card'>"); + const id = overlay.objInfo.Id info.push( - "<label class='obj-info-name' style=\"color: blue;cursor:pointer\">" + "<label class='obj-info-name-" + id + "' style=\"color: blue;cursor:pointer\">" ); info.push(overlay.objInfo.Name); info.push("</label>"); -- Gitblit v1.9.3