| | |
| | | </a-col> |
| | | <a-col span="11"> |
| | | <a-button :class="[showOption?'active-color':'unactive-color']" class="width-100" type="primary" :disabled="dockControlPanelVisible" size="small" |
| | | @click="setDockControlPanelVisible(true)"> |
| | | @click="openFlySetting"> |
| | | 操作 |
| | | </a-button> |
| | | </a-col> |
| | |
| | | </div> |
| | | </div> |
| | | <!-- 飞行指令 --> |
| | | <DroneControlPanel :sn="osdVisible.gateway_sn" :deviceInfo="deviceInfo" :payloads="osdVisible.payloads"> |
| | | <DroneControlPanel v-model="openDroneControl" :sn="osdVisible.gateway_sn" :deviceInfo="deviceInfo" :payloads="osdVisible.payloads"> |
| | | </DroneControlPanel> |
| | | </div> |
| | | </div> |
| | |
| | | label: string, |
| | | more?: any |
| | | } |
| | | // 打开飞行控制 |
| | | const openDroneControl = ref(false) |
| | | const root = getRoot() |
| | | // 监控显示 |
| | | const showMonitor = ref(false) |
| | |
| | | // 打开飞机监控 |
| | | const openAircra = () => { |
| | | showAircraft.value = !showAircraft.value |
| | | setDockControlPanelVisible(false) |
| | | if (showAircraft.value) { |
| | | openDroneControl.value = true |
| | | loadDroneVideo() |
| | | } else { |
| | | openDroneControl.value = false |
| | | closeFly() |
| | | } |
| | | } |
| | |
| | | // const videoId = deviceInfo.dock.basic_osd?.sub_device?.device_sn + '/' + aircraSelected.value + '/' + 'normal-0' |
| | | aircraftList.value = [] |
| | | aircraSelected.value = '' |
| | | } |
| | | // 打开机场操作 |
| | | const openFlySetting = () => { |
| | | openDroneControl.value = false |
| | | setDockControlPanelVisible(true) |
| | | } |
| | | watch(() => store.state.deviceStatusEvent, |
| | | data => { |
| | |
| | | aircraSelected, |
| | | selectChange, |
| | | closeOperate, |
| | | closeOsdWindow |
| | | closeOsdWindow, |
| | | openDroneControl, |
| | | openFlySetting |
| | | } |
| | | } |
| | | }) |