From f27ca082eb0a839449dd50c49007b58e5ed6946f Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Thu, 19 Jun 2025 19:08:01 +0800
Subject: [PATCH] feat: 服务名修改

---
 src/components/GMap.vue |   24 +++++++++++-------------
 1 files changed, 11 insertions(+), 13 deletions(-)

diff --git a/src/components/GMap.vue b/src/components/GMap.vue
index 8b0fbc7..f725564 100644
--- a/src/components/GMap.vue
+++ b/src/components/GMap.vue
@@ -585,7 +585,7 @@
                   type="primary"
                   size="small"
                   @click="openAircra(1)">
-                  M30T相机
+                  {{ osdVisible.model || 'M30T' }}相机
                 </a-button>
               </a-col>
             </a-row>
@@ -848,12 +848,9 @@
           :payloads="osdVisible.payloads">
         </DroneControlPanel>
       </div>
-      <!-- <waylineTool /> -->
       <routeProfile />
     </div>
-    <div class="event-wrapper" v-if="false">
-      <eventEdit />
-    </div>
+    <eventEdit />
   </div>
 </template>
 
@@ -927,7 +924,6 @@
 import Cesium from './cesiumMap/cesium.vue'
 import { convertTimestampToDate } from '/@/utils/time'
 import { cesiumOperation } from '/@/hooks/use-cesium-tsa'
-import waylineTool from './waylinetool/index.vue'
 import routeProfile from './waylinetool/route-profile.vue'
 export default defineComponent({
   components: {
@@ -954,7 +950,6 @@
     CarryOutOutlined,
     RocketOutlined,
     DesktopOutlined,
-    waylineTool,
     routeProfile,
     eventEdit
   },
@@ -970,6 +965,7 @@
       label: string
       more?: any
     }
+
     // 打开飞行控制
     const openDroneControl = ref(false)
     const root = getRoot()
@@ -1171,7 +1167,13 @@
                   vadeosList: v.videos_list,
                 }
               })
-              aircraSelected.value = aircraftList.value[index].value
+              // 展示这样写, fpv有问题
+              if (aircraftList.value[index]) {
+                aircraSelected.value = aircraftList.value[index].value
+              } else {
+                const i = aircraftList.value.length - 1
+                aircraSelected.value = aircraftList.value[i].value
+              }
               flyOnStart()
             } else {
               showAircraft.value = false
@@ -1640,7 +1642,7 @@
       aircrafIndex,
       airPortOption,
       controlStatus,
-      convertTimestampToDate,
+      convertTimestampToDate
     }
   },
 })
@@ -1651,10 +1653,6 @@
 .map-container {
   height: 100%;
   display: flex;
-  .event-wrapper {
-    width: 350px;
-    height: 100%;
-  }
 }
 
 .g-map-wrapper {

--
Gitblit v1.9.3