From 73613843f912b79818700f55f684c679f3a34654 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Mon, 21 Apr 2025 11:32:37 +0800
Subject: [PATCH] feat:调整统计图显示和任务管理日期选择

---
 src/views/SignMachineNest/MachineRight/InspectionRaskList.vue |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/views/SignMachineNest/MachineRight/InspectionRaskList.vue b/src/views/SignMachineNest/MachineRight/InspectionRaskList.vue
index 46981de..e7d18bc 100644
--- a/src/views/SignMachineNest/MachineRight/InspectionRaskList.vue
+++ b/src/views/SignMachineNest/MachineRight/InspectionRaskList.vue
@@ -92,6 +92,7 @@
 
 // 单个机巢信息
 const singleUavHome = computed(() => store.state.home.singleUavHome)
+const osdVisible = computed(() => store.state.home.osdVisible);
 
 const isMore = ref(true)
 // 控制加载状态
@@ -215,6 +216,16 @@
 	}
 })
 
+// 监听如果当前任务飞行完毕,当前任务即消失
+watch(() => store.state.home.deviceState, async (newValue) => {
+	const deviceInfo = newValue?.deviceInfo[osdVisible.value.sn];
+	if (!deviceInfo) return
+	// 重新刷新数据
+	if (deviceInfo?.mode_code === 14) {
+		getJobList()
+	}
+});
+
 const { init: initTaskWayline, removeEntitys } = useTaskWayline()
 
 onMounted(async () => {

--
Gitblit v1.9.3