From fb336f319c71291fa09de3e7f67f1ccfab3cb7c8 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Sat, 23 Sep 2023 15:58:40 +0800
Subject: [PATCH] 媒体搜索框

---
 src/components/g-map/DroneControlPanel.vue |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/components/g-map/DroneControlPanel.vue b/src/components/g-map/DroneControlPanel.vue
index 4e75eac..9064d74 100644
--- a/src/components/g-map/DroneControlPanel.vue
+++ b/src/components/g-map/DroneControlPanel.vue
@@ -115,7 +115,7 @@
               </div>
             </template>
             <Button size="small" ghost @click="onShowTakeoffToPointPopover" >
-              <span>起飞</span>
+              <span>一键起飞</span>
             </Button>
           </DroneControlPopover>
           <Button :loading="cmdItem.loading" size="small" ghost @click="sendControlCmd(cmdItem, 0)">
@@ -287,7 +287,7 @@
     message.success('返航成功')
     exitFlightCOntrol()
   } else {
-    message.error('返航失败')
+    message.warn('请先进入控制!')
   }
   cmdItem.loading = false
 }
@@ -342,12 +342,12 @@
 const takeoffToPointPopoverData = reactive({
   visible: false,
   loading: false,
-  latitude: null as null | number,
-  longitude: null as null | number,
-  height: null as null | number,
-  securityTakeoffHeight: null as null | number,
+  latitude: 28.62426114 as null | number,
+  longitude: 115.85657177 as null | number,
+  height: 120 as null | number,
+  securityTakeoffHeight: 100 as null | number,
   maxSpeed: MAX_SPEED,
-  rthAltitude: null as null | number,
+  rthAltitude: 100 as null | number,
   rcLostAction: LostControlActionInCommandFLight.RETURN_HOME,
   exitWaylineWhenRcLost: WaylineLostControlActionInCommandFlight.EXEC_LOST_ACTION
 })
@@ -355,10 +355,10 @@
 function onShowTakeoffToPointPopover () {
   takeoffToPointPopoverData.visible = !takeoffToPointPopoverData.visible
   takeoffToPointPopoverData.loading = false
-  takeoffToPointPopoverData.latitude = null
-  takeoffToPointPopoverData.longitude = null
-  takeoffToPointPopoverData.securityTakeoffHeight = null
-  takeoffToPointPopoverData.rthAltitude = null
+  takeoffToPointPopoverData.latitude = 28.62426114
+  takeoffToPointPopoverData.longitude = 115.85657177
+  takeoffToPointPopoverData.securityTakeoffHeight = 100
+  takeoffToPointPopoverData.rthAltitude = 100
   takeoffToPointPopoverData.rcLostAction = LostControlActionInCommandFLight.RETURN_HOME
   takeoffToPointPopoverData.exitWaylineWhenRcLost = WaylineLostControlActionInCommandFlight.EXEC_LOST_ACTION
 }

--
Gitblit v1.9.3