ประกาศผล => fix bug

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-07-16 10:58:55 +07:00
parent a68a5d47ac
commit ad61a32ed9
5 changed files with 33 additions and 22 deletions

View file

@ -42,6 +42,7 @@ const weightAssigned = ref<number>(0);
const resultPlanned = ref<number>(0);
const resultRole = ref<number>(0);
const resultAssigned = ref<number>(0);
function fetchListPlanned() {
http
.get(config.API.kpiAchievement("planned") + `?id=${evaluationId.value}`)
@ -206,13 +207,17 @@ watch(
);
onMounted(() => {
getCriteria();
fetchListPlanned();
fetchListRole();
fetchAssigned();
setTimeout(() => {
hideLoader();
}, 1000);
showLoader(),
Promise.all([
getCriteria(),
fetchListPlanned(),
fetchListRole(),
fetchAssigned(),
]).finally(() => {
setTimeout(() => {
hideLoader();
}, 2000);
});
});
</script>