duheng
2024-11-12 0bc0468692ad7b16cd2d49d20c4689ddcd6fb212
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(""),