|
@@ -42,7 +42,7 @@
|
|
|
</span>
|
|
</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div v-else>
|
|
<div v-else>
|
|
|
- N/A
|
|
|
|
|
|
|
+ 当前正常
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -168,7 +168,7 @@
|
|
|
</span>
|
|
</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div v-else>
|
|
<div v-else>
|
|
|
- N/A
|
|
|
|
|
|
|
+ 当前正常
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -182,6 +182,11 @@
|
|
|
关闭直播
|
|
关闭直播
|
|
|
</span>
|
|
</span>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div class="content-aircraft-head-right-bottom-icon" style="margin-right: 5px;">
|
|
|
|
|
+ <a-tooltip title="一键返航">
|
|
|
|
|
+ <img :src="returnHomeSrc" @click="onClickReturnHome">
|
|
|
|
|
+ </a-tooltip>
|
|
|
|
|
+ </div>
|
|
|
<div class="content-aircraft-head-right-bottom-icon">
|
|
<div class="content-aircraft-head-right-bottom-icon">
|
|
|
<a-tooltip title="操作">
|
|
<a-tooltip title="操作">
|
|
|
<img :src="aircraftSelectedSrc" @click="state.droneControlPanelVisible = false"
|
|
<img :src="aircraftSelectedSrc" @click="state.droneControlPanelVisible = false"
|
|
@@ -364,6 +369,7 @@ import { message } from 'ant-design-vue';
|
|
|
import { CloseOutlined, PlaySquareOutlined, PoweroffOutlined } from '@ant-design/icons-vue'
|
|
import { CloseOutlined, PlaySquareOutlined, PoweroffOutlined } from '@ant-design/icons-vue'
|
|
|
import LivePlayer from '/@/components/livePlayer/index.vue';
|
|
import LivePlayer from '/@/components/livePlayer/index.vue';
|
|
|
import taskSrc from '../icons/info/task.svg';
|
|
import taskSrc from '../icons/info/task.svg';
|
|
|
|
|
+import returnHomeSrc from '../icons/info/returnHome.svg';
|
|
|
import dock2Src from '../icons/info/dock2.png';
|
|
import dock2Src from '../icons/info/dock2.png';
|
|
|
import M30Src from '../icons/info/m30.png';
|
|
import M30Src from '../icons/info/m30.png';
|
|
|
import M3tdSrc from '../icons/info/m3td.png';
|
|
import M3tdSrc from '../icons/info/m3td.png';
|
|
@@ -414,7 +420,7 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
const store = useMyStore()
|
|
const store = useMyStore()
|
|
|
|
|
|
|
|
// 机场控制面板
|
|
// 机场控制面板
|
|
|
-const { dockControlPanelVisible, setDockControlPanelVisible, onCloseControlPanel } = useDockControl();
|
|
|
|
|
|
|
+const { dockControlPanelVisible, setDockControlPanelVisible, onCloseControlPanel, sendDockControlCmd } = useDockControl();
|
|
|
|
|
|
|
|
const hmsInfo = computed(() => store.state.hmsInfo);
|
|
const hmsInfo = computed(() => store.state.hmsInfo);
|
|
|
|
|
|
|
@@ -840,6 +846,18 @@ const onDeviceStopLive = async () => {
|
|
|
message.success('已停止直播');
|
|
message.success('已停止直播');
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+// 点击一键返航
|
|
|
|
|
+const onClickReturnHome = async () => {
|
|
|
|
|
+ try {
|
|
|
|
|
+ await sendDockControlCmd({
|
|
|
|
|
+ sn: props.osdInfo.gateway_sn,
|
|
|
|
|
+ cmd: 'return_home' as any,
|
|
|
|
|
+ }, false)
|
|
|
|
|
+ } catch (error) {
|
|
|
|
|
+ console.error(error);
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|