feat: finding 增加处置状态(待处理/误报/忽略/已处理)+ 发现列表页改版
- findings 表新增 status 列(默认 pending),schema.sql 同步 ALTER TABLE 补旧库
- 新增 PATCH /api/exploration/findings/{id} 更新处置状态,server 侧白名单校验
- FindingDTO 增加 status/finding_id/assets(后端预渲染资产 label)
- 任务内发现节点通过 node_id 关联独立 findings 行,复用同一处置状态
- 发现列表页:漏洞名称(类型主 + 摘要小字)、新增资产列与状态列(可下拉修改)、状态筛选与待处理统计
- 任务详情发现 Tab 同步展示/编辑处置状态与绑定资产
This commit is contained in:
1 parent
c588dd67ae
commit
05f0b69469
10 files changed
+508
-83
No files matched your search
@@ -63,6 +63,13 @@ const severity: Record<string, StatusMeta> = {
|
||||
low: { label: "低危", tone: "slate" },
|
||||
};
|
||||
|
||||
const finding: Record<string, StatusMeta> = {
|
||||
pending: { label: "待处理", tone: "amber" },
|
||||
false_positive: { label: "误报", tone: "slate" },
|
||||
ignored: { label: "忽略", tone: "neutral" },
|
||||
resolved: { label: "已处理", tone: "green" },
|
||||
};
|
||||
|
||||
const engine: Record<string, StatusMeta> = {
|
||||
exploring: { label: "探索中", tone: "blue" },
|
||||
paused: { label: "已暂停", tone: "amber" },
|
||||
@@ -91,6 +98,7 @@ const maps = {
|
||||
intent,
|
||||
task,
|
||||
severity,
|
||||
finding,
|
||||
engine,
|
||||
goal,
|
||||
audit,
|
||||
|
||||
Reference in new issue
Block a user