From dd57d5d76a2e33f03df1bc8eb479057fa4d07f6e Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 10 Jan 2025 10:20:13 +0700 Subject: [PATCH] =?UTF-8?q?fix=20=E0=B8=A3=E0=B8=B2=E0=B8=8A=E0=B8=8A?= =?UTF-8?q?=E0=B8=B7=E0=B9=88=E0=B8=AD=E0=B8=9C=E0=B8=B9=E0=B9=89=E0=B8=AA?= =?UTF-8?q?=E0=B8=AD=E0=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../05_placement/components/PersonalList/Table.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/modules/05_placement/components/PersonalList/Table.vue b/src/modules/05_placement/components/PersonalList/Table.vue index 18431973d..94f0a224c 100644 --- a/src/modules/05_placement/components/PersonalList/Table.vue +++ b/src/modules/05_placement/components/PersonalList/Table.vue @@ -336,6 +336,8 @@ async function getTable() { bmaOfficerCheck: data.bmaOfficer, statusId: data.statusId, draft: convertDraft(data.draft), + isDraft: data.draft, + typeCommand: data.typeCommand, posTypeCandidateId: data.posTypeCandidateId, posTypeCandidateName: data.posTypeCandidateName, @@ -374,7 +376,7 @@ async function getTable() { const rowData = await (roleAdmin.value ? rowsAll.value - : rowsAll.value.filter((x: any) => x.statusId !== "DONE")); + : rowsAll.value.filter((x: any) => x.isDraft === true)); // รายชื่อทั้งหมด await filterpositionCandidate(rowData); @@ -779,7 +781,7 @@ async function onUpdateNewRows(type: string, pos: string) { const isStatusMatch = containStatus.value ? item.statusId === "DONE" - : item.statusId !== ""; + : item.statusId !== "DONE"; return isTypeMatch && isPositionMatch && isStatusMatch; }); @@ -1394,7 +1396,7 @@ onMounted(async () => { - +