更新Company页面的UI为FUI风格
This commit is contained in:
@@ -374,9 +374,18 @@ const MainlineTimelineViewComponent = forwardRef(
|
||||
const apiBase = getApiBase();
|
||||
const params = new URLSearchParams();
|
||||
|
||||
// 添加筛选参数(主线模式只保留时间范围筛选)
|
||||
if (filters.recent_days)
|
||||
// 添加筛选参数(主线模式支持时间范围筛选)
|
||||
// 优先使用精确时间范围(start_date/end_date),其次使用 recent_days
|
||||
if (filters.start_date) {
|
||||
params.append("start_date", filters.start_date);
|
||||
}
|
||||
if (filters.end_date) {
|
||||
params.append("end_date", filters.end_date);
|
||||
}
|
||||
if (filters.recent_days && !filters.start_date && !filters.end_date) {
|
||||
// 只有在没有精确时间范围时才使用 recent_days
|
||||
params.append("recent_days", filters.recent_days);
|
||||
}
|
||||
// 添加分组方式参数
|
||||
params.append("group_by", groupBy);
|
||||
|
||||
@@ -421,7 +430,7 @@ const MainlineTimelineViewComponent = forwardRef(
|
||||
} finally {
|
||||
setLoading(false);
|
||||
}
|
||||
}, [display, filters.recent_days, groupBy]);
|
||||
}, [display, filters.start_date, filters.end_date, filters.recent_days, groupBy]);
|
||||
|
||||
// 初始加载 & 筛选变化时刷新
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user