ประเมินบุคคล => fix bug upload file
This commit is contained in:
parent
537277c381
commit
4bbc7c0cf4
4 changed files with 50 additions and 41 deletions
|
|
@ -117,8 +117,6 @@ function upLoadFile(file: any) {
|
|||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
});
|
||||
}
|
||||
|
|
@ -134,14 +132,15 @@ function fileUpLoad(url: string) {
|
|||
headers: { "Content-Type": fileEvaluation5.value?.type },
|
||||
onUploadProgress: (e) => console.log(e),
|
||||
})
|
||||
.then(() => {
|
||||
success($q, "อัปโหลดไฟล์สำเร็จ");
|
||||
.then(async () => {
|
||||
await checkDocResult();
|
||||
await success($q, "อัปโหลดไฟล์สำเร็จ");
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
checkDocResult();
|
||||
hideLoader();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -197,7 +196,7 @@ async function getDate() {
|
|||
const download10Url = ref<string>("");
|
||||
/** function เช็คไฟล์อัปโหลด*/
|
||||
async function checkDocResult() {
|
||||
showLoader();
|
||||
// showLoader();
|
||||
await http
|
||||
.get(
|
||||
config.API.evaluationPatchData(
|
||||
|
|
@ -213,7 +212,7 @@ async function checkDocResult() {
|
|||
// messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
// hideLoader();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue