แก้ไข label ของลงเวลากรณีพิเศษ
This commit is contained in:
parent
94b3d48a91
commit
af1f13ed3b
3 changed files with 25 additions and 13 deletions
|
|
@ -224,13 +224,16 @@ export const useSpecialTimeStore = defineStore("LeaveSpecialTime", () => {
|
|||
|
||||
// convertSatatus
|
||||
function convertStatus(val: string) {
|
||||
switch (val) {
|
||||
case "normal":
|
||||
const value = val ? val.toUpperCase() : null;
|
||||
switch (value) {
|
||||
case "NORMAL":
|
||||
return "ปกติ";
|
||||
case "late":
|
||||
case "LATE":
|
||||
return "สาย";
|
||||
case "absent":
|
||||
case "ABSENT":
|
||||
return "ขาดราชการ";
|
||||
default:
|
||||
value;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -254,7 +257,7 @@ export const useSpecialTimeStore = defineStore("LeaveSpecialTime", () => {
|
|||
pageSize,
|
||||
month,
|
||||
filter,
|
||||
convertStatus
|
||||
convertStatus,
|
||||
// changeMonth,
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue