StatusBadge: split badges per dimension (abnormal/late/early/OT <=30min); Attendance filter by status_code conditions for abnormal/late/early/OT/normal/leave types

This commit is contained in:
IT狗
2026-07-21 18:10:43 +08:00
parent 4c9db01213
commit 33a5e3b2ad
3 changed files with 61 additions and 103 deletions
+4 -1
View File
@@ -87,7 +87,10 @@ export default function AttendanceList() {
}
const getStatusBadge = (record) => {
return <StatusBadge code={record.status_code} text={record.status_text} />
const lm = record.late_minutes || 0
const em = record.early_minutes || 0
const om = record.ot_minutes || 0
return <StatusBadge code={record.status_code} late={lm} early={em} ot={om} />
}
const getRowClass = (code) => {