feat(效能分析): 人员视图也支持自然天/工作日耗时切换

- capability 接口加 mode 参数,natural 用自然小时、workdays 用工作小时
- 人员视图柱状图随顶部按钮切换,排除休息日的耗时
- 切换按钮自动重新请求 capability 与 flow
This commit is contained in:
2026-08-28 15:38:32 +08:00
parent 4447a1f52d
commit 907473b18c
4 changed files with 13 additions and 5 deletions

View File

@ -120,8 +120,9 @@ export default function AnalyticsDashboard() {
q.since = range[0].startOf("day").toISOString();
q.until = range[1].endOf("day").toISOString();
}
q.mode = totalDaysMode; // 自然天 / 工作日,控制人员视图耗时口径
return q;
}, [assigneeIds, specModels, range]);
}, [assigneeIds, specModels, range, totalDaysMode]);
const buildFlowQuery = useCallback((): FlowQuery => {
const q: FlowQuery = {};