feat(qaops): 区域统计展示直属人员与多部门兼属
build / build (push) Successful in 1m12s

按稳定身份展示零使用人员、个人次数与最近提问时间,直接部门去重计算兼属数量;保留原分支统计、配置和源问答。

验证:396项前端测试及类型检查通过;隔离PG全mirror/org竞态回归通过,个人/别名/同名/零使用/未关联与原部门汇总回归通过。
正式同镜像及上线验证尚未执行。
This commit is contained in:
姚章浩
2026-10-21 17:17:08 +08:00
parent cb9f0c389f
commit 99d6109bef
11 changed files with 519 additions and 67 deletions
+17
View File
@@ -23,6 +23,23 @@ export const departmentStatisticsFixture = {
region_names: ['Education'],
},
regions: [{ id: 'edu', name: 'Education' }],
people: [
{
key: 'person-' + '1'.repeat(64),
name: 'Fixture Alpha',
department_ids: ['root', 'child'],
visits: 2,
last_asked_at: '2026-10-17T06:00:00+08:00',
},
{
key: 'person-' + '2'.repeat(64),
name: 'Fixture Beta',
department_ids: ['root'],
visits: 3,
last_asked_at: '2026-10-18T06:00:00+08:00',
},
{ key: 'person-' + '3'.repeat(64), name: '', department_ids: ['child'], visits: 0, last_asked_at: null },
],
rows: [
{
id: 'root',