fix load รักษาการตำแหน่ง
This commit is contained in:
parent
b4f6c41021
commit
23e4b14a26
1 changed files with 8 additions and 3 deletions
|
|
@ -70,7 +70,6 @@ async function updateSelected(data: PosMaster) {
|
|||
// เรียกใช้ function fetch รายชื่อ ,fetch รายชื่อรักษาการ
|
||||
await Promise.all([fetchPosMaster(), fetchListAct()]).finally(() => {
|
||||
isLaod.value = false;
|
||||
console.log("test");
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -188,6 +187,8 @@ function selectPosition(data: ListPerson) {
|
|||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
})
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
});
|
||||
}
|
||||
|
|
@ -220,11 +221,13 @@ function onSwapPerson(type: string, id: string) {
|
|||
showLoader();
|
||||
http
|
||||
.get(config.API.orgPosAct + `/swap/${type}/${id}`)
|
||||
.then(() => {
|
||||
fetchListAct();
|
||||
.then(async () => {
|
||||
await fetchListAct();
|
||||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
})
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
});
|
||||
}
|
||||
|
|
@ -244,6 +247,8 @@ function onDelete(id: string) {
|
|||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
})
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue