fix(qaops): 区域人员表直接展示部门并调整列宽
build / build (push) Successful in 1m5s

仅按区域显示真实部门名称与完整路径悬停,替代部门数量折叠摘要;适配人员与部门列宽,按人视图保持原样。归属、统计与分页不变。

验证:真实节点名称、区域直显且按人不变、区域列宽分别先红后绿,14项相关测试与类型检查通过。完整门禁、候选和上线验收待执行。
This commit is contained in:
姚章浩
2026-10-24 14:14:21 +08:00
parent f533c63fef
commit f38541db06
6 changed files with 66 additions and 9 deletions
+2 -2
View File
@@ -15,7 +15,7 @@ export type PersonRankingRow = DepartmentPersonStatistic & {
region_state: 'matched' | 'cross_region' | 'unassigned'
group_key: string
region_label: string
department_paths: Array<{ id: string; path: string }>
department_paths: Array<{ id: string; name: string; path: string }>
}
export type PeopleAnalysisGroup = { key: string; name: string; people: PersonRankingRow[]; visits: number }
export function peopleAnalysis(data: DepartmentStatisticsSnapshot): {
@@ -39,7 +39,7 @@ export function peopleAnalysis(data: DepartmentStatisticsSnapshot): {
names.unshift(d.name)
current = d.parent_id
}
return { id, path: names.join('/') }
return { id, name: nodes.get(id)!.name, path: names.join('/') }
}),
}))
.sort((a, b) => b.visits - a.visits || a.name.localeCompare(b.name, 'zh-CN') || a.key.localeCompare(b.key))