From a09b519ba296ff97afb6a4c5f4ff0af3d74842bc Mon Sep 17 00:00:00 2001 From: yibo Date: Mon, 31 Aug 2026 01:23:09 +0800 Subject: [PATCH] feat(task-board): 任务看板改造成可搜索/筛选/排序的表格视图 --- server/routes/company.js | 1 + web/src/components/task-board/TaskDetailModal.vue | 296 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ web/src/components/task-board/TaskTable.vue | 218 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ web/src/views/TaskBoard.vue | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------- 4 files changed, 576 insertions(+), 28 deletions(-) create mode 100644 web/src/components/task-board/TaskDetailModal.vue create mode 100644 web/src/components/task-board/TaskTable.vue diff --git a/server/routes/company.js b/server/routes/company.js index f47a210..0b31f88 100644 --- a/server/routes/company.js +++ b/server/routes/company.js @@ -1022,6 +1022,7 @@ function taskView(t, progress = null, positions = null) { queuePosition: (positions && positions.get(t.id)) || null, blockedReason: t.blocked_reason, reportTo: t.report_to, + assigneeAgentId: t.assignee_agent_id || null, createdAt: t.created_at, queuedAt: t.queued_at, startedAt: t.started_at, diff --git a/web/src/components/task-board/TaskDetailModal.vue b/web/src/components/task-board/TaskDetailModal.vue new file mode 100644 index 0000000..7709a6b --- /dev/null +++ b/web/src/components/task-board/TaskDetailModal.vue @@ -0,0 +1,296 @@ + + + + + + diff --git a/web/src/components/task-board/TaskTable.vue b/web/src/components/task-board/TaskTable.vue new file mode 100644 index 0000000..df96297 --- /dev/null +++ b/web/src/components/task-board/TaskTable.vue @@ -0,0 +1,218 @@ + + + + + + diff --git a/web/src/views/TaskBoard.vue b/web/src/views/TaskBoard.vue index de7e3fd..2968ab4 100644 --- a/web/src/views/TaskBoard.vue +++ b/web/src/views/TaskBoard.vue @@ -1,12 +1,9 @@ @@ -104,7 +137,7 @@ function goToDetail({ goalId, taskId }) { .to-console { text-decoration: none; color: #2b6cb0; font-size: 12px; font-weight: 600; } .to-console:hover { text-decoration: underline; } -.body { flex: 1 1 auto; overflow-y: auto; padding: 16px 24px; max-width: 900px; width: 100%; margin: 0 auto; box-sizing: border-box; } +.body { flex: 1 1 auto; overflow-y: auto; padding: 16px 24px; box-sizing: border-box; } @media (max-width: 700px) { .body { padding: 12px; } -- libgit2 0.21.4