fix:dialogConfrim

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-11-20 10:25:52 +07:00
parent e81b47bbe4
commit adde8fac6f

View file

@ -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