feat(tasks): 任务列表新增漏洞数量列,描述/目标列收窄

- 任务列表接口 TaskListMetricsAll 批量统计每任务的漏洞数(findings 表,
  按 task_id),经 TaskDTO.findings 下发;列表页新增「漏洞」列,>0 高亮
- 描述/目标列宽 max-w-xs → max-w-40,目标列补 title 悬浮全文
- mock data/handler 同步补 findings 字段
This commit is contained in:
Autumn-27 committed 2026-09-24 13:26:22 -04:00
1 parent 9bc8d16a0b
commit e65d3e5202
7 files changed
+27 -3

No files matched your search

+2
View File
@@ -65,6 +65,7 @@ export const tasks: Task[] = [
paused: false,
active: true,
in_flight: 3,
findings: 4,
stalled: false,
goals_total: 5,
goals_met: 2,
@@ -90,6 +91,7 @@ export const tasks: Task[] = [
paused: false,
active: false,
in_flight: 2,
findings: 2,
stalled: false,
goals_total: 4,
goals_met: 1,
+1
View File
@@ -1192,6 +1192,7 @@ function route(m: string, path: string, seg: string[], q: URLSearchParams, b: Re
paused: false,
active: true,
in_flight: 0,
findings: 0,
stalled: false,
goals_total: 0,
goals_met: 0,
+1
View File
@@ -23,6 +23,7 @@ export interface Task {
queued?: boolean;
active?: boolean;
in_flight?: number;
findings?: number; // 该任务已登记的漏洞数
last_activity?: string;
stalled?: boolean;
goals_total?: number;