| | |
| | | </div> |
| | | <div class="close-wb"> |
| | | <div class="close">{{ AircraftStatus ? AircraftStatus : '舱内关机' }}</div> |
| | | <div class="wb">需要维保</div> |
| | | <!-- <div class="wb">需要维保</div> --> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | let mode_code = ref('已断开连接'); |
| | | |
| | | // 监听实时信息 |
| | | watch(store.state.home.wsMessage, (newValue) => { |
| | | // if (newValue || newValue.mode_code === 14) return |
| | | // if (Object.keys(newValue).length === 0) return |
| | | console.log(newValue,'咋没数据呀'); |
| | | detailInfo.value.longitudee = newValue?.longitude.toFixed(6) || '--'; |
| | | watch( |
| | | () => store.state.home.wsMessage, |
| | | (newValue) => { |
| | | if (newValue.mode_code === 14) return |
| | | if (Object.keys(newValue).length === 0) return |
| | | // console.log(newValue, '顶顶顶111') |
| | | detailInfo.value.longitude = newValue?.longitude.toFixed(6) || '--'; |
| | | detailInfo.value.latitude = newValue?.latitude.toFixed(6) || '--'; |
| | | getLnglatAltitude(newValue?.longitude,newValue?.latitude).then((res) => { |
| | | getLnglatAltitude(Number(detailInfo.value.longitude), Number(detailInfo.value.latitude)).then((res) => { |
| | | console.log(res, '顶顶顶') |
| | | const height = newValue?.height - res?.height; |
| | | //针对西安实时高度进行降低 |
| | | const wId = localStorage.getItem('bs_workspace_id'); |