fix(probation):status

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-11-28 10:02:50 +07:00
parent 74f8363001
commit 663c4a9262
2 changed files with 6 additions and 5 deletions

View file

@ -203,7 +203,7 @@ async function getList() {
.get( .get(
config.API.probationPersonalList() + config.API.probationPersonalList() +
`?status=${ `?status=${
commandType.value ? (commandType.value == "C-PM-11" ? 3 : 2) : "" commandType.value ? (commandType.value == "C-PM-11" ? 2 : 3) : ""
}&page=${pagination.value.page}&pageSize=${ }&page=${pagination.value.page}&pageSize=${
pagination.value.rowsPerPage pagination.value.rowsPerPage
}&keyword=${filter.value.trim()}` }&keyword=${filter.value.trim()}`
@ -254,6 +254,7 @@ watch(
listCommand.value = data.filter( listCommand.value = data.filter(
(v: any) => v.code === "C-PM-11" || v.code === "C-PM-12" (v: any) => v.code === "C-PM-11" || v.code === "C-PM-12"
); );
console.log(listCommand.value);
} }
} }
} }

View file

@ -327,11 +327,11 @@ export const useTransferDataStore = defineStore("transferDataStore", () => {
}, },
{ {
id: "2", id: "2",
value: "ไม่พ้นการทดลองปฏิบัติหน้าที่ราชการ", value: "พ้นการทดลองปฏิบัติหน้าที่ราชการ",
}, },
{ {
id: "3", id: "3",
value: "พ้นการทดลองปฏิบัติหน้าที่ราชการ", value: "ไม่พ้นการทดลองปฏิบัติหน้าที่ราชการ",
}, },
{ {
id: "4", id: "4",
@ -411,9 +411,9 @@ export const useTransferDataStore = defineStore("transferDataStore", () => {
case 1: case 1:
return "อยู่ระหว่างการทดลองปฏิบัติหน้าที่ราชการ"; return "อยู่ระหว่างการทดลองปฏิบัติหน้าที่ราชการ";
case 2: case 2:
return "ไม่พ้นการทดลองปฏิบัติหน้าที่ราชการ";
case 3:
return "พ้นการทดลองปฏิบัติหน้าที่ราชการ"; return "พ้นการทดลองปฏิบัติหน้าที่ราชการ";
case 3:
return "ไม่พ้นการทดลองปฏิบัติหน้าที่ราชการ";
case 4: case 4:
return "ยุติการทดลองปฏิบัติหน้าที่ราชการเนื่องจากเปลี่ยนตำแหน่ง"; return "ยุติการทดลองปฏิบัติหน้าที่ราชการเนื่องจากเปลี่ยนตำแหน่ง";
case 5: case 5: