From bcb67f336c2b352177884b8db6decc3fcf382bb0 Mon Sep 17 00:00:00 2001
From: jihongshun <1151753686@qq.com>
Date: 星期四, 11 九月 2025 16:58:13 +0800
Subject: [PATCH] 航线模拟  差视锥体的head值和时间轴

---
 src/views/system/project/components/addPorjectDialog.vue |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/src/views/system/project/components/addPorjectDialog.vue b/src/views/system/project/components/addPorjectDialog.vue
index 90b0c76..659c0fd 100644
--- a/src/views/system/project/components/addPorjectDialog.vue
+++ b/src/views/system/project/components/addPorjectDialog.vue
@@ -250,6 +250,8 @@
       this.$emit('close')
     },
     flyToLocal(row){
+
+      console.log(row)
        const position = Cesium.Cartesian3.fromDegrees(row.longitude,row.latitude, row.deviceHeight);
       // rotationAngle  = Cesium.Math.toRadians(row.face)  ||  Cesium.Math.toRadians(0)
       rotationAngle  = Cesium.Math.toRadians(row.face)  ||  Cesium.Math.toRadians(0)
@@ -276,7 +278,7 @@
           verticalOrigin: Cesium.VerticalOrigin.BOTTOM,
           horizontalOrigin: Cesium.HorizontalOrigin.CENTER,
           font: '28px Helvetica',
-          outlineColor: Cesium.Color.BLUE,
+          outlineColor: Cesium.Color.RED,
           outlineWidth: 3,
           fillColor: Cesium.Color.fromCssColorString('#FFFFFF'), //44c3cc
           text: row.deviceName,
@@ -598,7 +600,7 @@
                 position: groundPos,
                 point: {
                   pixelSize: 6,
-                  color: Cesium.Color.BLUE
+                  color: Cesium.Color.RED
                 },
                 label: {
                   text: groundPoint.label || '',
@@ -619,7 +621,7 @@
                   positions: [airPos, groundPos],
                   width: 2,
                   material: new Cesium.PolylineDashMaterialProperty({
-                    color: Cesium.Color.BLUE,
+                    color: Cesium.Color.RED,
                     dashLength: 8
                   })
                 }
@@ -740,6 +742,12 @@
               message: '鐢熸垚鑸嚎鎴愬姛',
               type: 'success'
             })
+            const link = document.createElement('a');
+            link.href = res.msg;  // 璁剧疆涓嬭浇閾炬帴
+            // link.download = 'filename.ext';  // 鍙�夛細鎸囧畾鏂囦欢鍚�
+            document.body.appendChild(link);  // 灏嗛摼鎺ユ坊鍔犲埌 DOM
+            link.click();  // 妯℃嫙鐐瑰嚮涓嬭浇
+            document.body.removeChild(link);  // 涓嬭浇鍚庣Щ闄ら摼鎺�
         }
       })
     },

--
Gitblit v1.9.3