From 15f82efb4901d1a15582aeeb2f77cfdb5b196485 Mon Sep 17 00:00:00 2001
From: zhanghao <774378400@qq.com>
Date: Tue, 18 Aug 2026 14:11:17 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8C=89=E7=82=B9=E4=BD=8D=E5=88=86?=
=?UTF-8?q?=E7=B1=BB=E5=B7=A1=E6=A3=80=E4=BB=BB=E5=8A=A1=E6=97=A5=E5=BF=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/inspection/runTask/index.vue | 17 +-
src/views/inspection/runTask/task-log.vue | 461 +++++++++++++++++++++-
2 files changed, 473 insertions(+), 5 deletions(-)
diff --git a/src/views/inspection/runTask/index.vue b/src/views/inspection/runTask/index.vue
index 3435138..9db75fc 100644
--- a/src/views/inspection/runTask/index.vue
+++ b/src/views/inspection/runTask/index.vue
@@ -65,7 +65,10 @@
:activeStep="taskRunningInfo[selectedRunTask.id]?.activeStep || 0" />
@@ -143,8 +146,9 @@
-
-
+
+
@@ -610,11 +614,18 @@ const subscribeDebounced = debounce(async (sub) => {
const logDialogVisible = ref(false)
const logDialogData = ref([])
+// 历史日志组件需要任务定义 ID 查询该任务绑定的点位,并用任务终态推导未单独记录状态的点位结果。
+const logDialogTaskId = ref('')
+const logDialogTaskStatus = ref(null)
const logDialogLoading = ref(false)
let logDialogRequestId = 0
const handleOpenLog = async (row) => {
const requestId = ++logDialogRequestId
logDialogVisible.value = true
+
+ // 先切换任务上下文,再请求日志;点位请求和日志请求可以并行,避免弹窗一直沿用上一次任务的数据。
+ logDialogTaskId.value = row.taskId
+ logDialogTaskStatus.value = row.status
logDialogData.value = []
logDialogLoading.value = true
try {
diff --git a/src/views/inspection/runTask/task-log.vue b/src/views/inspection/runTask/task-log.vue
index 9156739..31e8947 100644
--- a/src/views/inspection/runTask/task-log.vue
+++ b/src/views/inspection/runTask/task-log.vue
@@ -1,12 +1,469 @@
-
+
+
+
+ 点位
+ 状态
+
+
+
点位加载中...
+
暂无点位
+
+
+
+
+
+
+
+
+ 节点执行日志
+ {{ group.logs.length }} 条
+
+
+ 节点:{{ group.nodeNames.join('、') }}
+
+
+
该点位暂未产生节点日志
+
+
+
+
+
+