From ce561e94e475788fdce9b9c60a6c509b1166637b Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Tue, 20 Aug 2024 15:21:27 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=80=E0=B8=84=E0=B8=A3=E0=B8=B7=E0=B9=88?= =?UTF-8?q?=E0=B8=AD=E0=B8=87=E0=B8=A3=E0=B8=B2=E0=B8=8A=E0=B8=AF=20=3D>?= =?UTF-8?q?=20=20=E0=B8=A3=E0=B8=AD=E0=B8=9A=E0=B8=81=E0=B8=B2=E0=B8=A3?= =?UTF-8?q?=E0=B9=80=E0=B8=AA=E0=B8=99=E0=B8=AD=E0=B8=82=E0=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/1_Proposals/DialogDetail.vue | 2 +- .../components/1_Proposals/listProposals.vue | 58 ++++++++----------- 2 files changed, 25 insertions(+), 35 deletions(-) diff --git a/src/modules/07_insignia/components/1_Proposals/DialogDetail.vue b/src/modules/07_insignia/components/1_Proposals/DialogDetail.vue index 1e044415b..13ac2394c 100644 --- a/src/modules/07_insignia/components/1_Proposals/DialogDetail.vue +++ b/src/modules/07_insignia/components/1_Proposals/DialogDetail.vue @@ -144,8 +144,8 @@ function onSubmit() { httpMethod(url, formData) .then(async () => { await props.fetchList(); - onCloseDialog(); await success($q, "บันทึกข้อมูลสำเร็จ"); + onCloseDialog(); }) .catch((err) => { messageError($q, err); diff --git a/src/modules/07_insignia/components/1_Proposals/listProposals.vue b/src/modules/07_insignia/components/1_Proposals/listProposals.vue index 341215b73..f855e84de 100644 --- a/src/modules/07_insignia/components/1_Proposals/listProposals.vue +++ b/src/modules/07_insignia/components/1_Proposals/listProposals.vue @@ -130,11 +130,6 @@ async function fetchData() { }); } -/** Function redirect หน้าข้อมูลรอบการเสนอข้อ */ -function clickEdit(col: ColId) { - router.push(`/insignia/round/${col.period_id}`); -} - /** * Function ยืนยันการลบรอบการเสนอขอ * @param id รอบการเสนขอ @@ -157,38 +152,33 @@ function clickDelete(id: string) { }); } -/** Fnction เพิ่มรอบการเสนอขอพระราชทานเครื่องราชอิสริยาภรณ์ */ -function clickAdd() { - router.push({ name: "roundAdd" }); -} - /** Fnction คำนวณรายชื่อผู้ได้รับเครื่องราช */ -async function clickListInsignia(propsId: string) { - dialogConfirm( - $q, - async () => { - await getRequest(propsId); - }, - "ยืนยันการคำนวณรายชื่อผู้ได้รับเครื่องราชฯ", - "ต้องการยืนยันการคำนวณรายชื่อผู้ได้รับเครื่องราชฯนี้หรือไม่?" - ); -} +// async function clickListInsignia(propsId: string) { +// dialogConfirm( +// $q, +// async () => { +// await getRequest(propsId); +// }, +// "ยืนยันการคำนวณรายชื่อผู้ได้รับเครื่องราชฯ", +// "ต้องการยืนยันการคำนวณรายชื่อผู้ได้รับเครื่องราชฯนี้หรือไม่?" +// ); +// } /** Fnction เรียกจาก API ข้อมูลผู้ได้รับเครื่องราชฯ */ -async function getRequest(id: string) { - showLoader(); - await http - .get(config.API.requestInsignia(id)) - .then(() => { - success($q, "ยืนยันสำเร็จ"); - }) - .catch((err) => { - messageError($q, err); - }) - .finally(async () => { - await fetchData(); - }); -} +// async function getRequest(id: string) { +// showLoader(); +// await http +// .get(config.API.requestInsignia(id)) +// .then(() => { +// success($q, "ยืนยันสำเร็จ"); +// }) +// .catch((err) => { +// messageError($q, err); +// }) +// .finally(async () => { +// await fetchData(); +// }); +// } /** ค้นหาในตาราง */ const filterKeyword = ref("");