| | |
| | | const store = useStore(); |
| | | // 获取机巢信息 |
| | | let osdVisible = computed(() => store.state.home.osdVisible); |
| | | console.log('333',osdVisible) |
| | | const singleUavHome = computed(() => store.state.home.singleUavHome); |
| | | // 单个机巢统计数据 |
| | | const singleTotal = computed(() => store.state.home.singleTotal); |
| | |
| | | }); |
| | | let mode_code = ref('已断开连接'); |
| | | |
| | | watch(() => store.state.home.osdVisible, (newValue) => { |
| | | console.log(newValue,'osdVisible222') |
| | | }); |
| | | |
| | | // 监听实时信息 |
| | | watch( |
| | | () => store.state.home.wsMessage, |
| | |
| | | detailInfo.value.latitude = newValue?.latitude.toFixed(6) || '--'; |
| | | |
| | | getLnglatAltitude(Number(detailInfo.value.longitude), Number(detailInfo.value.latitude),window.$viewer).then((res) => { |
| | | // console.log('333333333', res); |
| | | const height = newValue?.height - res?.height; |
| | | //针对西安实时高度进行降低 |
| | | const wId = localStorage.getItem('bs_workspace_id'); |
| | |
| | | // 机场状态 |
| | | mode_code.value = EDockModeText[newValue?.dockInfo[newValue.currentSn]?.basic_osd?.mode_code]; |
| | | // this.$emit('updateModeCode', mode_code.value); |
| | | // console.log('3333333',deviceInfo.value) |
| | | // 舱内状态 |
| | | AircraftStatus.value = |
| | | EModeText[newValue.deviceInfo[ |
| | |
| | | ]?.mode_code |
| | | ]; |
| | | // 舱内关机时显示的电量 |
| | | let child_sn = newValue?.dockInfo[newValue.currentSn].basic_osd.sub_device.device_sn; |
| | | // console.log('444',newValue.currentSn) |
| | | let child_sn = newValue?.dockInfo[newValue.currentSn].basic_osd.sub_device?.device_sn; |
| | | // 飞机在线时取飞机中的电量 |
| | | if(newValue.deviceInfo[child_sn]) { |
| | | drone_charge_state.value = { |
| | |
| | | drone_charge_state.value = newValue.drone_charge_state_new; |
| | | } |
| | | } |
| | | // console.log('osdVisible',osdVisible.visible) |
| | | if (osdVisible.visible && osdVisible.is_dock && osdVisible.gateway_sn !== '') { |
| | | deviceInfo.value.dock = newValue.dockInfo[osdVisible.gateway_sn]; |
| | | deviceInfo.value.device = |