feat: 系统优化Phase2 - 面包屑导航/侧边栏间距/制度公示阅读签收/模板变量中文化/通知类型补全
- 面包屑导航组件,集成至TopNav header - 侧边栏菜单分组间距增大,分组间分隔线 - 制度公示员工阅读签收:PolicyReadRecord模型、portal路由、管理端阅读统计 - 修复Policies.tsx民主程序推进bug(字段名/API路径/参数) - 用工文本模板变量名英文转中文显示 - 通知类型TYPE_LABELS补全(RISK_ALERT/SOCIAL_INS/OVERTIME_ALERT/PAYSLIP_READY) - 通知示例数据补充 - h2标题统一为text-sm font-medium - 新增run.md
This commit is contained in:
@@ -83,13 +83,31 @@ export interface DashboardData {
|
||||
todoCount: number
|
||||
monthlyOvertimePay: number
|
||||
}
|
||||
urgentRisk: {
|
||||
id: string
|
||||
type: 'CONTRACT' | 'SALARY' | 'TERMINATION' | 'MONTHLY' | 'ONBOARDING'
|
||||
level: 'high' | 'medium' | 'low'
|
||||
priority: 'URGENT' | 'HIGH' | 'MEDIUM' | 'LOW'
|
||||
title: string
|
||||
description: string
|
||||
actionUrl: string
|
||||
estimatedLoss: number
|
||||
lossRange: [number, number] | null
|
||||
deadline: string | null
|
||||
daysUntilDeadline: number | null
|
||||
} | null
|
||||
todos: {
|
||||
id: string
|
||||
type: 'CONTRACT' | 'SALARY' | 'TERMINATION' | 'MONTHLY' | 'ONBOARDING'
|
||||
level: 'high' | 'medium' | 'low'
|
||||
priority: 'URGENT' | 'HIGH' | 'MEDIUM' | 'LOW'
|
||||
title: string
|
||||
description: string
|
||||
actionUrl: string
|
||||
estimatedLoss: number
|
||||
lossRange: [number, number] | null
|
||||
deadline: string | null
|
||||
daysUntilDeadline: number | null
|
||||
}[]
|
||||
resolvedTodos: {
|
||||
id: string
|
||||
@@ -105,13 +123,22 @@ export interface DashboardData {
|
||||
salary: number
|
||||
termination: number
|
||||
}
|
||||
riskTrend: {
|
||||
thisMonth: number
|
||||
lastMonth: number
|
||||
change: number
|
||||
}
|
||||
topRisks: {
|
||||
id: string
|
||||
type: string
|
||||
level: string
|
||||
priority: 'URGENT' | 'HIGH' | 'MEDIUM' | 'LOW'
|
||||
title: string
|
||||
description: string
|
||||
employeeName: string | null
|
||||
estimatedLoss: number
|
||||
deadline: string | null
|
||||
daysUntilDeadline: number | null
|
||||
actionUrl: string
|
||||
}[]
|
||||
aiPrediction: {
|
||||
|
||||
Reference in New Issue
Block a user