refactor(compete): use showUploadSuccessDialog
This commit is contained in:
parent
ded0a634d2
commit
4f6d14ef97
1 changed files with 3 additions and 40 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue