fix trang thai sinh vien
This commit is contained in:
@@ -82,15 +82,34 @@ export interface AttendanceRow {
|
||||
statusLabel: string;
|
||||
onlineMinutes: number;
|
||||
statusEditedByTeacher: boolean;
|
||||
pushedToQldtAt?: string;
|
||||
}
|
||||
|
||||
export interface AttendanceShiftInfo {
|
||||
startTime?: string;
|
||||
endTime?: string;
|
||||
courseId?: number;
|
||||
courseName?: string;
|
||||
isActive?: boolean;
|
||||
pushedToQldtAt?: string;
|
||||
qldtDirty?: boolean;
|
||||
}
|
||||
|
||||
export const ATTENDANCE_STATUS_OPTIONS = [
|
||||
{ value: 0, label: 'Nghỉ không phép' },
|
||||
{ value: 1, label: 'Nghỉ có phép' },
|
||||
{ value: 2, label: 'Nghỉ nửa buổi' },
|
||||
{ value: 3, label: 'Đi học muộn' },
|
||||
{ value: 4, label: 'Đi học đầy đủ' },
|
||||
];
|
||||
{ value: 0, label: 'Nghỉ không phép', short: 'NKP' },
|
||||
{ value: 1, label: 'Nghỉ có phép', short: 'NCP' },
|
||||
{ value: 2, label: 'Nghỉ nửa buổi', short: 'Nửa buổi' },
|
||||
{ value: 3, label: 'Đi học muộn', short: 'Muộn' },
|
||||
{ value: 4, label: 'Đi học đầy đủ', short: 'Đầy đủ' },
|
||||
] as const;
|
||||
|
||||
export function attendanceStatusClass(status: number): string {
|
||||
return `attendance-status--${status}`;
|
||||
}
|
||||
|
||||
export function attendanceStatusLabel(status: number): string {
|
||||
return ATTENDANCE_STATUS_OPTIONS.find(o => o.value === status)?.label ?? `Trạng thái ${status}`;
|
||||
}
|
||||
|
||||
export interface StudentSessionLogItem {
|
||||
id: number;
|
||||
|
||||
Reference in New Issue
Block a user