feat(web): 任务发现 tab 支持严重度筛选与排序

对齐全局发现页:共用 severity chip、Case 列表 sort=severity,
原始上报列表前端按严重度过滤并排序。
This commit is contained in:
RuoJi6 committed 2026-10-26 09:14:28 +08:00
1 parent 620ca5d96c
commit 0ecaea2fb2
5 files changed
+134 -26

No files matched your search

+8
View File
@@ -63,6 +63,14 @@ const severity: Record<string, StatusMeta> = {
low: { label: "低危", tone: "slate" },
};
export const SEVERITY_FILTER_OPTIONS = [
["all", "全部"],
["critical", severity.critical.label],
["high", severity.high.label],
["medium", severity.medium.label],
["low", severity.low.label],
] as const;
const finding: Record<string, StatusMeta> = {
pending: { label: "待处理", tone: "amber" },
in_progress: { label: "处理中", tone: "blue" },