mirror of
https://github.com/RuoJi6/ARTEX.git
synced 2026-12-06 21:11:50 +08:00
feat: add finding date range filter
This commit is contained in:
1 parent
25dbcf8320
commit
6656d73b56
6 files changed
+192
-7
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user