From b0ccd2d131b2e3df5d901385e38ed0077b8d0fbc Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Mon, 14 Apr 2025 12:31:31 +0800
Subject: [PATCH] feat:修改任务管理内容
---
src/views/SignMachineNest/MachineRight/MachineStatus/MachineStatus.vue | 21 ++++++++++++---------
1 files changed, 12 insertions(+), 9 deletions(-)
diff --git a/src/views/SignMachineNest/MachineRight/MachineStatus/MachineStatus.vue b/src/views/SignMachineNest/MachineRight/MachineStatus/MachineStatus.vue
index 00dd6b4..eae7efb 100644
--- a/src/views/SignMachineNest/MachineRight/MachineStatus/MachineStatus.vue
+++ b/src/views/SignMachineNest/MachineRight/MachineStatus/MachineStatus.vue
@@ -13,7 +13,7 @@
</div>
<div class="close-wb">
<div class="close">{{ AircraftStatus ? AircraftStatus : '舱内关机' }}</div>
- <div class="wb">需要维保</div>
+ <!-- <div class="wb">需要维保</div> -->
</div>
</div>
</div>
@@ -136,17 +136,20 @@
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');
- if (wId == 'f47ac10b-58cc-4372-a567-0e02b2c3d479') {
+ if (wId === 'f47ac10b-58cc-4372-a567-0e02b2c3d479') {
detailInfo.value.height = reduceHeight(height);
} else {
detailInfo.value.height = height.toFixed(1) || '--';
@@ -200,7 +203,7 @@
newValue.deviceInfo[
deviceInfo.value.dock.basic_osd?.sub_device?.device_sn ??
osdVisible.sn
- ]?.mode_code == undefined || newValue.deviceInfo[
+ ]?.mode_code === undefined || newValue.deviceInfo[
deviceInfo.value.dock.basic_osd?.sub_device?.device_sn ??
osdVisible.sn
]?.mode_code == 14
--
Gitblit v1.9.3