feat: add finding date range filter

This commit is contained in:
ji ruo committed 2026-10-29 22:48:08 +08:00
1 parent 25dbcf8320
commit 6656d73b56
6 files changed
+192 -7

No files matched your search

+2
View File
@@ -243,6 +243,8 @@ function findingFilterParams(q: Omit<FindingQuery, "page" | "pageSize">): URLSea
if (q.query?.trim()) p.set("q", q.query.trim());
if (q.sort) p.set("sort", q.sort);
if (q.timeDirection) p.set("time_direction", q.timeDirection);
if (q.from) p.set("from", q.from);
if (q.to) p.set("to", q.to);
if (q.assetScope) p.set("asset_scope", q.assetScope);
return p;
}
+2
View File
@@ -608,6 +608,8 @@ export interface FindingQuery {
query?: string;
sort?: "severity" | "time";
timeDirection?: "asc" | "desc"; // Missing = newest first; secondary to severity when sort="severity".
from?: string; // ISO timestamp, inclusive
to?: string; // ISO timestamp, inclusive
// 资产树节点 key;选中一个节点 = 选中它的整棵子树。空 = 不按资产筛选。
assetScope?: string;
}