Merge branch 'develop' of github.com:Frappet/BMA-EHR-USER into develop
This commit is contained in:
commit
874e6bc216
2 changed files with 719 additions and 720 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -130,17 +130,17 @@ function deleteFile(fileName: string) {
|
||||||
showLoader();
|
showLoader();
|
||||||
http
|
http
|
||||||
.delete(config.API.file("ไฟล์เอกสาร", "KPI", id.value) + `/${fileName}`)
|
.delete(config.API.file("ไฟล์เอกสาร", "KPI", id.value) + `/${fileName}`)
|
||||||
.catch((e) => {
|
.then((res) => {
|
||||||
messageError($q, e);
|
|
||||||
})
|
|
||||||
.finally(() => {
|
|
||||||
getData();
|
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
getData();
|
||||||
success($q, `ลบไฟล์สำเร็จ`);
|
success($q, `ลบไฟล์สำเร็จ`);
|
||||||
hideLoader();
|
hideLoader();
|
||||||
}, 500);
|
}, 500);
|
||||||
});
|
})
|
||||||
|
.catch((e) => {
|
||||||
|
messageError($q, e);
|
||||||
|
})
|
||||||
|
.finally(() => {});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue