mirror of
https://github.com/RuoJi6/ARTEX.git
synced 2026-12-05 13:01:50 +08:00
feat(web): 任务发现 tab 支持严重度筛选与排序
对齐全局发现页:共用 severity chip、Case 列表 sort=severity, 原始上报列表前端按严重度过滤并排序。
This commit is contained in:
1 parent
620ca5d96c
commit
0ecaea2fb2
5 files changed
+134
-26
No files matched your search
@@ -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" },
|
||||
|
||||
Reference in new issue
Block a user