From adde8fac6f9ef7361917f562c724d8411567e569 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 20 Nov 2025 10:25:52 +0700 Subject: [PATCH] fix:dialogConfrim --- .../components/TableCandidate.vue | 33 ++++++++++++------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/src/modules/03_recruiting/components/TableCandidate.vue b/src/modules/03_recruiting/components/TableCandidate.vue index 9744c90ef..456c48064 100644 --- a/src/modules/03_recruiting/components/TableCandidate.vue +++ b/src/modules/03_recruiting/components/TableCandidate.vue @@ -395,17 +395,28 @@ async function clickCandidateList() { } async function onCheckShowExaminfo() { - try { - showLoader(); - await http.post(config.API.checkShowExaminfo, { - examId: examId.value, - }); - await props.fetchData(); - } catch (error) { - messageError($q, error); - } finally { - hideLoader(); - } + dialogMessage( + $q, + "ยืนยันการเปิดให้ดาวน์โหลดใบสมัคร แสดงสถานที่สอบ และเลขประจำตัวสอบนี้หรือไม่?", + "ยืนยันการเปิดให้ดาวน์โหลดใบสมัคร แสดงสถานที่สอบ และเลขประจำตัวสอบ", + "mdi-email-check-outline", + "ยืนยัน", + "public", + async () => { + try { + showLoader(); + await http.post(config.API.checkShowExaminfo, { + examId: examId.value, + }); + await props.fetchData(); + } catch (error) { + messageError($q, error); + } finally { + hideLoader(); + } + }, + undefined + ); } // Pagination - page & change page & get new data