From 0d513d2cea2c47468733fb16312db3a4d89480d6 Mon Sep 17 00:00:00 2001 From: puriphatt Date: Tue, 19 Mar 2024 17:15:39 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=97=E0=B8=B0=E0=B9=80=E0=B8=9A=E0=B8=B5?= =?UTF-8?q?=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7=E0=B8=B1?= =?UTF-8?q?=E0=B8=95=E0=B8=B4:=20=E0=B9=80=E0=B8=84=E0=B8=A3=E0=B8=B7?= =?UTF-8?q?=E0=B9=88=E0=B8=AD=E0=B8=87=E0=B8=A3=E0=B8=B2=E0=B8=8A=E0=B8=AF?= =?UTF-8?q?,=20=E0=B9=80=E0=B8=81=E0=B8=B5=E0=B8=A2=E0=B8=A3=E0=B8=95?= =?UTF-8?q?=E0=B8=B4=E0=B8=84=E0=B8=B8=E0=B8=93=20(=E0=B9=81=E0=B8=81?= =?UTF-8?q?=E0=B9=89=E0=B9=84=E0=B8=82=20edit)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../detail/Achievement/03_Insignia.vue | 23 +++++++++---------- .../Achievement/04_DeclarationHonor.vue | 2 +- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/src/modules/04_registryNew/components/detail/Achievement/03_Insignia.vue b/src/modules/04_registryNew/components/detail/Achievement/03_Insignia.vue index acd834814..0a9387cd2 100644 --- a/src/modules/04_registryNew/components/detail/Achievement/03_Insignia.vue +++ b/src/modules/04_registryNew/components/detail/Achievement/03_Insignia.vue @@ -561,16 +561,15 @@ function onClickOpenDialog(editStatus: boolean = false, row?: ResponseObject) { async function clickClose() { if (editRow.value == true) { - $q.dialog({ - title: `ข้อมูลมีการแก้ไข`, - message: `ยืนยันที่จะปิดโดยไม่บันทึกใช่หรือไม่?`, - cancel: "ยกเลิก", - ok: "ยืนยัน", - persistent: true, - }).onOk(async () => { - modal.value = false; - editRow.value = false; - }); + dialogConfirm( + $q, + async () => { + modal.value = false; + editRow.value = false; + }, + "ข้อมูลมีการแก้ไข", + "ยืนยันที่จะปิดโดยไม่บันทึกใช่หรือไม่?" + ); } else { modal.value = false; } @@ -750,10 +749,10 @@ onMounted(async () => { class="q-mr-xs" size="14px" color="primary" - icon="edit" + icon="mdi-pencil-outline" @click="onClickOpenDialog(true, props.row)" > - ลบข้อมูล + แก้ไขข้อมูล แก่ไขข้อมุล