From fd1a009c37bedda75e4ba1b1cb1eeaf3facecb04 Mon Sep 17 00:00:00 2001 From: jihongshun <1151753686@qq.com> Date: 星期一, 22 九月 2025 21:48:25 +0800 Subject: [PATCH] bugfix --- src/views/system/shootPoint/components/shootPointDialog.vue | 27 +++++++++++++++++++++++++-- 1 files changed, 25 insertions(+), 2 deletions(-) diff --git a/src/views/system/shootPoint/components/shootPointDialog.vue b/src/views/system/shootPoint/components/shootPointDialog.vue index 320bf53..ed5e939 100644 --- a/src/views/system/shootPoint/components/shootPointDialog.vue +++ b/src/views/system/shootPoint/components/shootPointDialog.vue @@ -467,7 +467,30 @@ console.log(arr) console.log(this.treeData) // this.treeData = arr - this.treeData = this.lastTableArr + // this.treeData = this.lastTableArr + this.treeData = arr.map((groundPoint, index) => { + // 鏌ユ壘瀵瑰簲鐨勬柊鍦伴潰鐐规暟鎹� + const newGroundPoint = this.treeData[index]; + if (newGroundPoint && newGroundPoint.children) { + // 鏇存柊姣忎釜鍦伴潰鐐圭殑瀛愮偣缁忕含搴� + groundPoint.children = groundPoint.children.map((child, childIndex) => { + const newChild = newGroundPoint.children[childIndex]; + if (newChild) { + return { + ...child, + longitude: newChild.longitude, + latitude: newChild.latitude, + height: newChild.height, + heading: newChild.heading, + pitch: newChild.pitch, + actions: newChild.actions + }; + } + return child; + }); + } + return groundPoint; + }); const result = this.replaceCloseChildrenWithHighestPoint(this.treeData,mergeNumber); // const updated = this.insertRaisedPoints(result, 0,0, 236, 130); const updated = this.insertRaisedPoints(result, globalon, globalat, towerHeight); @@ -507,7 +530,7 @@ console.log(this.treeData) }, //鏁扮粍 濉旂殑绮惧害 濉旂殑绾害 濉旂殑楂樺害 鍗婂緞 - insertRaisedPoints(data, centerLon, centerLat, centerHeight, radius = 15) { + insertRaisedPoints(data, centerLon, centerLat, centerHeight, radius = 1) { const center = Cesium.Cartesian3.fromDegrees(centerLon, centerLat, centerHeight); const result = JSON.parse(JSON.stringify(data)); // 娣辨嫹璐濋伩鍏嶆薄鏌撳師鏁版嵁 const inserts = []; // 鐢ㄤ簬瀛樺偍鎻掑叆椤瑰強鍏剁洰鏍囦綅缃� -- Gitblit v1.9.3