ประเมินบุคคล ==> ปรับ load
This commit is contained in:
parent
eac2fd5878
commit
e09d0afe73
10 changed files with 223 additions and 180 deletions
|
|
@ -191,7 +191,7 @@ async function confirmApprove() {
|
|||
if (hasError.every((result) => result === true)) {
|
||||
dialogConfirm(
|
||||
$q,
|
||||
() => {
|
||||
async () => {
|
||||
showLoader();
|
||||
const data = {
|
||||
metadata: {
|
||||
|
|
@ -200,7 +200,7 @@ async function confirmApprove() {
|
|||
additionalProp3: position.value,
|
||||
},
|
||||
};
|
||||
http
|
||||
await http
|
||||
.patch(
|
||||
config.API.evaluationPatchData(
|
||||
"เล่ม 2",
|
||||
|
|
@ -258,7 +258,9 @@ async function fetchProfile() {
|
|||
messageError($q, err);
|
||||
})
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
setTimeout(() => {
|
||||
hideLoader();
|
||||
}, 2000);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -280,7 +282,9 @@ async function checkDocEdit() {
|
|||
// messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
setTimeout(() => {
|
||||
hideLoader();
|
||||
}, 2000);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -296,7 +300,7 @@ const downloadFile6 = ref<string>("");
|
|||
* @param fileName ชื่อไฟล์
|
||||
*/
|
||||
async function downloadFileList(fileName: string) {
|
||||
// showLoader();
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.evaluationFilebyId("เล่ม 2", id.value, fileName))
|
||||
.then((res) => {
|
||||
|
|
@ -316,10 +320,12 @@ async function downloadFileList(fileName: string) {
|
|||
} else if (fileName === "แบบสรุปผลการประเมิน (เอกสารแบบ ง)") {
|
||||
downloadFile6.value = res.data.downloadUrl;
|
||||
}
|
||||
})
|
||||
.finally(() => {
|
||||
setTimeout(() => {
|
||||
hideLoader();
|
||||
}, 2000);
|
||||
});
|
||||
// .finally(() => {
|
||||
// hideLoader();
|
||||
// });
|
||||
}
|
||||
|
||||
const author = ref<string>("");
|
||||
|
|
@ -347,22 +353,26 @@ async function fetchDataSigner() {
|
|||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
setTimeout(() => {
|
||||
hideLoader();
|
||||
}, 2000);
|
||||
});
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
fetchProfile();
|
||||
fetchDataSigner();
|
||||
downloadFileList(
|
||||
"แบบตรวจสอบความถูกต้องครบถ้วนของข้อมูลประกอบการประเมินผลงาน (เอกสารแบบ ค)"
|
||||
);
|
||||
downloadFileList("บัญชีแสดงการรับ-ส่งผลงาน (เอกสารหมายเลข 15)");
|
||||
downloadFileList("แบบประเมินผลงาน (เอกสารหมายเลข 16)");
|
||||
downloadFileList("แบบแสดงการประเมินผลงาน (เอกสารหมายเลข 17)");
|
||||
downloadFileList("แบบรายงานผลการประเมินบุคคล (เอกสารหมายเลข 18)");
|
||||
downloadFileList("แบบสรุปผลการประเมิน (เอกสารแบบ ง)");
|
||||
checkDocEdit();
|
||||
await Promise.all([
|
||||
fetchProfile(),
|
||||
fetchDataSigner(),
|
||||
downloadFileList(
|
||||
"แบบตรวจสอบความถูกต้องครบถ้วนของข้อมูลประกอบการประเมินผลงาน (เอกสารแบบ ค)"
|
||||
),
|
||||
downloadFileList("บัญชีแสดงการรับ-ส่งผลงาน (เอกสารหมายเลข 15)"),
|
||||
downloadFileList("แบบประเมินผลงาน (เอกสารหมายเลข 16)"),
|
||||
downloadFileList("แบบแสดงการประเมินผลงาน (เอกสารหมายเลข 17)"),
|
||||
downloadFileList("แบบรายงานผลการประเมินบุคคล (เอกสารหมายเลข 18)"),
|
||||
downloadFileList("แบบสรุปผลการประเมิน (เอกสารแบบ ง)"),
|
||||
checkDocEdit(),
|
||||
]);
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue