fix: 移除工作台风险分布饼图区域,简化页面布局
This commit is contained in:
@@ -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 > LOW(priorityOrder 已在上方声明)
|
||||
|
||||
Reference in New Issue
Block a user