From f565dafb0aa9ec00d0d86c3ba18857ac1d891d07 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Tue, 4 Jun 2024 18:16:03 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=97=E0=B8=94=E0=B8=A5=E0=B8=AD=E0=B8=87?= =?UTF-8?q?=E0=B8=87=E0=B8=B2=E0=B8=99=20fix=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/AppointMent/Main.vue | 37 +++++++++---------- .../components/PersonalList/Table.vue | 18 +++++---- 2 files changed, 28 insertions(+), 27 deletions(-) diff --git a/src/modules/05_placement/components/AppointMent/Main.vue b/src/modules/05_placement/components/AppointMent/Main.vue index 3aedd6d57..3fab10753 100644 --- a/src/modules/05_placement/components/AppointMent/Main.vue +++ b/src/modules/05_placement/components/AppointMent/Main.vue @@ -258,26 +258,23 @@ const openModalTree = (data: any, type: string) => { posLevel.value = data.positionLevelOld; position.value = data.positionOld; }; -//เเจ้งเตือนลบข้อมูล +//เบข้อมูล const clickDelete = (id: string) => { - dialogRemove($q, () => deleteAppoint(id)); -}; - -// ลบข้อมูล -const deleteAppoint = async (id: string) => { - showLoader(); - await http - .delete(config.API.appointmentDelete(id)) - .then(() => { - success($q, "ลบข้อมูลสำเร็จ"); - }) - .catch((e) => { - messageError($q, e); - }) - .finally(() => { - fecthlistappointment(); - hideLoader(); - }); + dialogRemove($q, () => { + showLoader(); + http + .delete(config.API.appointmentDelete(id)) + .then(() => { + success($q, "ลบข้อมูลสำเร็จ"); + }) + .catch((e) => { + messageError($q, e); + }) + .finally(() => { + fecthlistappointment(); + hideLoader(); + }); + }); }; // ไปหน้ารายละเอียด @@ -546,7 +543,7 @@ onMounted(() => { x.statusId !== "CONTAIN"); // รายชื่อไปยังหน่วยงาน rowsFilter.value = rows.value.filter( - (e: any) => - e.draft == "รอส่งตัว" && - e.positionNumber !== null && - e.statusName == "เตรียมบรรจุ" + (e: any) => e.draft == "รอส่งตัว" && e.statusNameCheck == "เตรียมบรรจุ" ); + console.log(rows.value); insertAvatar(rowsAll.value); }) @@ -1243,7 +1242,7 @@ onMounted(async () => { :props="props" class="cursor-pointer" > -