@if (!showGanttView()) {

考勤日历

@for (i of [0, 1, 2, 3, 4, 5, 6]; track i) {
{{ getWeekdayName(i) }}
}
@for (day of getCalendarDays(); track day.date) {
{{ day.dayOfMonth }} @if (day.attendance) {
}
}
正常
迟到
早退
旷工
请假
{{ attendanceStats().normalDays }}/{{ attendanceStats().totalDays }}
正常出勤
{{ attendanceStats().complianceRate }}%
{{ attendanceStats().lateDays }}
迟到
{{ attendanceStats().earlyLeaveDays }}
早退
{{ attendanceStats().absentDays }}
旷工
{{ attendanceStats().leaveDays }}
请假
{{ attendanceStats().totalWorkHours }}h
总工时
{{ attendanceStats().avgWorkHours }}h/天

部门考勤对比

@for (dept of departmentAttendanceData(); track dept.department) {
{{ dept.department }} {{ dept.complianceRate }}%
正常 {{ dept.compliant }} / 总计 {{ dept.total }}
}

考勤异常

({{ exceptionAttendance().length }})
@if (exceptionAttendance().length === 0) { }
日期 {{ formatDate(item.date) }} 员工 {{ getEmployeeName(item.employeeId) }} 异常类型 {{ item.status }} 工时 {{ item.workHours }}h 项目 {{ item.projectName }} 操作
暂无考勤异常记录
} @else {

员工考勤甘特图

@if (ganttMode() === 'attendance') {
正常出勤
迟到
早退
旷工
请假
加班
} @else {
工作负荷正常 (≤8h)
工作负荷较高 (8-10h)
工作负荷过高 (>10h)
}
显示员工: {{ filteredEmployees().length }}人
时间范围: {{ getTimeRangeText() }}
@if (ganttMode() === 'attendance') {
平均出勤率: {{ getAverageAttendanceRate() }}%
} @else {
平均工时: {{ getAverageWorkHours() }}h
}
}