From 32d4167c093317c16cd67af5277e11a2f08809db Mon Sep 17 00:00:00 2001 From: jihongshun <1151753686@qq.com> Date: 星期六, 13 九月 2025 17:12:56 +0800 Subject: [PATCH] 航线模拟功能完成 待优化 --- src/views/system/project/components/addPorjectDialog.vue | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/views/system/project/components/addPorjectDialog.vue b/src/views/system/project/components/addPorjectDialog.vue index 659c0fd..29b8c4f 100644 --- a/src/views/system/project/components/addPorjectDialog.vue +++ b/src/views/system/project/components/addPorjectDialog.vue @@ -250,7 +250,7 @@ this.$emit('close') }, flyToLocal(row){ - + let viewer = window['cesiumContainer'].viewer console.log(row) const position = Cesium.Cartesian3.fromDegrees(row.longitude,row.latitude, row.deviceHeight); // rotationAngle = Cesium.Math.toRadians(row.face) || Cesium.Math.toRadians(0) @@ -331,6 +331,7 @@ })); }, deleteData(row){ + let viewer = window['cesiumContainer'].viewer console.log(row) // 鎵惧埌 id 涓� "1" 鐨勫厓绱犵储寮� const index = this.tableData.findIndex(item => item.id === row.id); @@ -536,6 +537,7 @@ return 'id_' + Math.random().toString(36).substring(2, 10); }, drawConnectionsWithLabels(devices) { + let viewer = window['cesiumContainer'].viewer if(lastConnectPolyline) { viewer.entities.remove(lastConnectPolyline) lastConnectPolyline = null -- Gitblit v1.9.3