refactor(compete): use showUploadSuccessDialog

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2026-05-14 17:48:50 +07:00
parent ded0a634d2
commit 4f6d14ef97

View file

@ -581,23 +581,11 @@ async function checkSaveCandidate() {
.then((res) => {
const jobId = res.data.result.jobId;
uploadProgress.addUpload(jobId, selected_row_id.value, "candidate");
dialogMessage(
$q,
"อัปโหลดไฟล์สำเร็จ",
"ระบบกำลังนำเข้าข้อมูลคุณสามารถใช้งานเมนูอื่นในระหว่างนี้ได้ โดยระบบจะแจ้งผลการดำเนินการให้ทราบทันทีผ่านหน้าจอเมื่อเสร็จสิ้น",
"check",
"ตกลง",
"primary",
undefined,
undefined,
true
);
showUploadSuccessDialog();
modalCandidate.value = false;
files_candidate.value = null;
selected_row_id.value = "";
// fetchData();
})
.catch((e) => {
messageError($q, e);
@ -617,22 +605,10 @@ async function checkSaveScore() {
.then((res) => {
const jobId = res.data.result.jobId;
uploadProgress.addUpload(jobId, selected_row_id.value, "score");
dialogMessage(
$q,
"อัปโหลดไฟล์สำเร็จ",
"ระบบกำลังนำเข้าข้อมูลคุณสามารถใช้งานเมนูอื่นในระหว่างนี้ได้ โดยระบบจะแจ้งผลการดำเนินการให้ทราบทันทีผ่านหน้าจอเมื่อเสร็จสิ้น",
"check",
"ตกลง",
"primary",
undefined,
undefined,
true
);
showUploadSuccessDialog();
modalScore.value = false;
files_score.value = null;
selected_row_id.value = "";
// fetchData();
})
.catch((e) => {
messageError($q, e);
@ -652,23 +628,10 @@ async function checkSaveResult() {
.then((res) => {
const jobId = res.data.result.jobId;
uploadProgress.addUpload(jobId, selected_row_id.value, "result");
// success($q, " ()");
dialogMessage(
$q,
"อัปโหลดไฟล์สำเร็จ",
"ระบบกำลังนำเข้าข้อมูลคุณสามารถใช้งานเมนูอื่นในระหว่างนี้ได้ โดยระบบจะแจ้งผลการดำเนินการให้ทราบทันทีผ่านหน้าจอเมื่อเสร็จสิ้น",
"check",
"ตกลง",
"primary",
undefined,
undefined,
true
);
showUploadSuccessDialog();
modalResult.value = false;
files_result.value = null;
selected_row_id.value = "";
fetchData();
})
.catch((e) => {
messageError($q, e);