|
@@ -29,44 +29,43 @@
|
|
|
</div>
|
|
</div>
|
|
|
<!-- 飞机OSD -->
|
|
<!-- 飞机OSD -->
|
|
|
<div v-if="osdVisible.visible && !osdVisible.is_dock" v-drag-window class="osd-panel fz12">
|
|
<div v-if="osdVisible.visible && !osdVisible.is_dock" v-drag-window class="osd-panel fz12">
|
|
|
- <div class="drag-title pl5 pr5 flex-align-center flex-row flex-justify-between"
|
|
|
|
|
|
|
+ <div class="pl5 pr5 flex-align-center flex-row flex-justify-between"
|
|
|
style="border-bottom: 1px solid #515151; height: 18%;">
|
|
style="border-bottom: 1px solid #515151; height: 18%;">
|
|
|
- <span>{{ osdVisible.callsign }}</span>
|
|
|
|
|
- <span>
|
|
|
|
|
- <a class="fz16" style="color: white;" @click="() => osdVisible.visible = false">
|
|
|
|
|
- <CloseOutlined />
|
|
|
|
|
- </a>
|
|
|
|
|
- </span>
|
|
|
|
|
|
|
+ <div class="drag-title">
|
|
|
|
|
+ <span>{{ osdVisible.callsign }}</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <a class="fz16" style="color: white;" @click="() => osdVisible.visible = false">
|
|
|
|
|
+ <CloseOutlined />
|
|
|
|
|
+ </a>
|
|
|
</div>
|
|
</div>
|
|
|
<div style="height: 82%;">
|
|
<div style="height: 82%;">
|
|
|
- <div class="flex-column flex-align-center flex-justify-center"
|
|
|
|
|
- style="margin-top: -5px; padding-top: 25px; float: left; width: 60px; background: #2d2d2d;">
|
|
|
|
|
- <a-tooltip :title="osdVisible.model">
|
|
|
|
|
- <div style="width: 90%;" class="flex-column flex-align-center flex-justify-center">
|
|
|
|
|
- <span><a-image :src="M30" :preview="false" /></span>
|
|
|
|
|
- <span>{{ osdVisible.model }}</span>
|
|
|
|
|
- </div>
|
|
|
|
|
- </a-tooltip>
|
|
|
|
|
- </div>
|
|
|
|
|
<div class="osd">
|
|
<div class="osd">
|
|
|
<a-row>
|
|
<a-row>
|
|
|
- <a-col span="16"
|
|
|
|
|
- :style="deviceInfo.device.mode_code === EModeCode.Disconnected ? 'color: red; font-weight: 700;' : 'color: rgb(25,190,107)'">
|
|
|
|
|
- <span>
|
|
|
|
|
|
|
+ <a-col span="4">
|
|
|
|
|
+ <a-tooltip :title="osdVisible.model">
|
|
|
|
|
+ <div style="width: 90%;" class="flex-column flex-align-center flex-justify-center">
|
|
|
|
|
+ <span><a-image :src="M30" :preview="false" /></span>
|
|
|
|
|
+ <span>{{ osdVisible.model }}</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </a-tooltip>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col span="20">
|
|
|
|
|
+ <span
|
|
|
|
|
+ :style="deviceInfo.device.mode_code === EModeCode.Disconnected ? 'color: red; font-weight: 700;' : 'color: rgb(25,190,107)'">
|
|
|
{{ EModeCode[deviceInfo.device.mode_code] }}
|
|
{{ EModeCode[deviceInfo.device.mode_code] }}
|
|
|
</span>
|
|
</span>
|
|
|
<span>
|
|
<span>
|
|
|
飞行状态
|
|
飞行状态
|
|
|
</span>
|
|
</span>
|
|
|
- </a-col>
|
|
|
|
|
- </a-row>
|
|
|
|
|
- <a-row>
|
|
|
|
|
- <a-col span="8">
|
|
|
|
|
- <span class="openLiveButton">
|
|
|
|
|
|
|
+ <div class="openLiveButton" @click="state.deviceLiveStatus = true" v-if="!state.deviceLiveStatus">
|
|
|
开启直播
|
|
开启直播
|
|
|
- </span>
|
|
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="openLiveButton" @click="state.deviceLiveStatus = false" v-else>
|
|
|
|
|
+ 关闭直播
|
|
|
|
|
+ </div>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
</a-row>
|
|
</a-row>
|
|
|
|
|
+ <DeviceLive :sn="osdVisible.sn" v-if="state.deviceLiveStatus" />
|
|
|
<a-row>
|
|
<a-row>
|
|
|
<a-col span="6">
|
|
<a-col span="6">
|
|
|
<a-tooltip title="GPS卫星数">
|
|
<a-tooltip title="GPS卫星数">
|
|
@@ -541,6 +540,7 @@ import {
|
|
|
} from '@ant-design/icons-vue'
|
|
} from '@ant-design/icons-vue'
|
|
|
import { EDeviceTypeName, ELocalStorageKey } from '../types'
|
|
import { EDeviceTypeName, ELocalStorageKey } from '../types'
|
|
|
import DockControlPanel from './g-map/DockControlPanel.vue'
|
|
import DockControlPanel from './g-map/DockControlPanel.vue'
|
|
|
|
|
+import DeviceLive from './deviceLive/index.vue'
|
|
|
import { useDockControl } from './g-map/use-dock-control'
|
|
import { useDockControl } from './g-map/use-dock-control'
|
|
|
import DroneControlPanel from './g-map/DroneControlPanel.vue'
|
|
import DroneControlPanel from './g-map/DroneControlPanel.vue'
|
|
|
import { useConnectMqtt } from './g-map/use-connect-mqtt'
|
|
import { useConnectMqtt } from './g-map/use-connect-mqtt'
|
|
@@ -572,6 +572,7 @@ export default defineComponent({
|
|
|
ArrowDownOutlined,
|
|
ArrowDownOutlined,
|
|
|
DockControlPanel,
|
|
DockControlPanel,
|
|
|
DroneControlPanel,
|
|
DroneControlPanel,
|
|
|
|
|
+ DeviceLive,
|
|
|
CarryOutOutlined,
|
|
CarryOutOutlined,
|
|
|
RocketOutlined,
|
|
RocketOutlined,
|
|
|
LivestreamOthers,
|
|
LivestreamOthers,
|
|
@@ -592,6 +593,7 @@ export default defineComponent({
|
|
|
currentType: '',
|
|
currentType: '',
|
|
|
coverIndex: 0,
|
|
coverIndex: 0,
|
|
|
isFlightArea: false,
|
|
isFlightArea: false,
|
|
|
|
|
+ deviceLiveStatus: false,// 设备直播状态
|
|
|
})
|
|
})
|
|
|
const str: string = '--'
|
|
const str: string = '--'
|
|
|
const deviceInfo: any = reactive({
|
|
const deviceInfo: any = reactive({
|
|
@@ -1104,7 +1106,7 @@ export default defineComponent({
|
|
|
background: #000;
|
|
background: #000;
|
|
|
color: #fff;
|
|
color: #fff;
|
|
|
border-radius: 2px;
|
|
border-radius: 2px;
|
|
|
- opacity: 0.8;
|
|
|
|
|
|
|
+ background-color: rgba(0, 0, 0, 0.8);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.openLiveButton {
|
|
.openLiveButton {
|
|
@@ -1115,7 +1117,7 @@ export default defineComponent({
|
|
|
|
|
|
|
|
.osd>div:not(.dock-control-panel) {
|
|
.osd>div:not(.dock-control-panel) {
|
|
|
margin-top: 5px;
|
|
margin-top: 5px;
|
|
|
- padding-left: 5px;
|
|
|
|
|
|
|
+ padding: 5px;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.circle {
|
|
.circle {
|