From c1e18f3e09c14e11c319861917323ab7eba04dbe Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Wed, 30 Apr 2025 09:17:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../js/synthesisQuery/digitalSignage.js | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/main/resources/static/js/synthesisQuery/digitalSignage.js b/src/main/resources/static/js/synthesisQuery/digitalSignage.js index 7a0f37f..8c203ef 100644 --- a/src/main/resources/static/js/synthesisQuery/digitalSignage.js +++ b/src/main/resources/static/js/synthesisQuery/digitalSignage.js @@ -173,15 +173,17 @@ function getLocationInfo(id) { // 处理一下交叉信息 if (crossingList && crossingList.length > 0) { crossingList.forEach((item) => { - const lonAndLatList = item.lonAndLat.split(","); - lonAndLatList.forEach((lonAndLat, index) => { - const lonAndLatItem = lonAndLat.split("@"); - crossingListNew.push({ - baiduLon: lonAndLatItem[0], - baiduLat: lonAndLatItem[1], - ...item, + if (item.lonAndLat && item.lonAndLat.indexOf(",") > -1) { + const lonAndLatList = item.lonAndLat.split(","); + lonAndLatList.forEach((lonAndLat, index) => { + const lonAndLatItem = lonAndLat.split("@"); + crossingListNew.push({ + baiduLon: lonAndLatItem[0], + baiduLat: lonAndLatItem[1], + ...item, + }); }); - }); + } }); } initMap(); @@ -782,8 +784,8 @@ function getOrgTreeData() { data[0].children[0].children[0].lon && data[0].children[0].children[0].lat ) { - intLng = data[0].children[0].children[0].lon; - intLat = data[0].children[0].children[0].lat; + // intLng = data[0].children[0].children[0].lon; + // intLat = data[0].children[0].children[0].lat; } getScrollData(nodeId);