From d481912fedd4372b01fd0bff99344ed3258f21c7 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 13 Jan 2026 13:45:00 +0800 Subject: [PATCH] =?UTF-8?q?debug:=20=E6=B7=BB=E5=8A=A0=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E4=B8=BB=E4=BB=BB=E5=8A=A1=E5=A4=84=E7=90=86?= =?UTF-8?q?=E8=BF=87=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/TaskHall.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/TaskHall.vue b/frontend/src/views/TaskHall.vue index 72a6ada..d5401e9 100644 --- a/frontend/src/views/TaskHall.vue +++ b/frontend/src/views/TaskHall.vue @@ -4079,18 +4079,25 @@ const loadInProgressTasks = async () => { const items = itemResponse.data.records.map((item: any) => mapTaskItemToTask(item)) allTasks = [...allTasks, ...items] totalCount += itemResponse.data.total || 0 + console.log('子任务处理后,allTasks长度:', allTasks.length, 'totalCount:', totalCount) } // 处理主任务(排除流水线任务,因为流水线任务由子任务显示) if (taskResponse.data && taskResponse.data.records) { + console.log('getTasks返回的记录数:', taskResponse.data.records.length) const normalTasks = taskResponse.data.records - .filter((task: any) => task.isPipeline !== 1) // 排除流水线任务 + .filter((task: any) => { + console.log('检查任务:', task.title, 'isPipeline:', task.isPipeline) + return task.isPipeline !== 1 + }) // 排除流水线任务 .map((task: any) => ({ ...task, isSubTask: false })) + console.log('过滤后的主任务数:', normalTasks.length) allTasks = [...allTasks, ...normalTasks] totalCount += normalTasks.length + console.log('主任务处理后,allTasks长度:', allTasks.length, 'totalCount:', totalCount) } } else { // 需求部门视角:看该部门发起的任务(通过 deptId 参数)