This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-03-28 14:47:47 +07:00
parent 5abf3c5945
commit 5865438d9d
2 changed files with 10 additions and 10 deletions

View file

@ -121,12 +121,11 @@ async function getRound() {
roundFilter.value = "ไม่มีข้อมูล";
snapFilter.value = "ไม่มีข้อมูล";
agencyFilter.value = "ไม่มีข้อมูล";
hideLoader();
}
})
.catch((e) => {
messageError($q, e);
})
.finally(() => {
hideLoader();
});
}
@ -274,11 +273,13 @@ async function fetchSalalyPeriod(
periodLatest.value = data;
isLoad.value = true;
}
if (data.group1id) {
hideLoader();
}
})
.catch((err) => {
messageError($q, err);
})
.finally(() => {
hideLoader();
});
}

View file

@ -120,12 +120,11 @@ async function getRound() {
roundFilter.value = "ไม่มีข้อมูล";
snapFilter.value = "ไม่มีข้อมูล";
agencyFilter.value = "ไม่มีข้อมูล";
hideLoader();
}
})
.catch((e) => {
messageError($q, e);
})
.finally(() => {
hideLoader();
});
}
@ -248,7 +247,7 @@ async function fetchSalalyPeriod(
const body = {
rootId: rootId,
salaryPeriodId: periodId,
snapshot: snap,
snapshot: snap,
};
await http
@ -258,12 +257,12 @@ async function fetchSalalyPeriod(
data && store.fetchPeriodLatest(data, store.tabGroup);
periodLatest.value = data;
isLoad.value = data.group1id ? true : false;
if (data.group1id) {
hideLoader();
}
})
.catch((err) => {
messageError($q, err);
})
.finally(() => {
hideLoader();
});
}
}