fix: 移除工作台风险分布饼图区域,简化页面布局

This commit is contained in:
freedakgmail
2026-08-17 21:32:51 +08:00
parent cdb8bdbd38
commit 743c7616da
3 changed files with 5 additions and 109 deletions
+3 -1
View File
@@ -340,7 +340,7 @@ async function detectSpecialStatusRisks(orgId: string) {
},
})
const risks: { employeeId: string; type: RiskType; level: RiskLevel; title: string; description: string; actionUrl: string }[] = []
const risks: { employeeId: string; type: RiskType; level: RiskLevel; title: string; description: string; actionUrl: string; deadline?: Date }[] = []
for (const ss of specialStatuses) {
const emp = ss.employee
@@ -956,6 +956,8 @@ export async function getDashboardData(orgId: string) {
contract: dedupedTodos.filter((t) => t.type === 'CONTRACT').length,
salary: dedupedTodos.filter((t) => t.type === 'SALARY').length,
termination: dedupedTodos.filter((t) => t.type === 'TERMINATION').length,
retirement: dedupedTodos.filter((t) => t.type === 'RETIREMENT').length,
monthly: dedupedTodos.filter((t) => t.type === 'MONTHLY').length,
}
// 按优先级排序:URGENT > HIGH > MEDIUM > LOWpriorityOrder 已在上方声明)