แก้โหลด kpi

This commit is contained in:
setthawutttty 2025-07-08 16:31:55 +07:00
parent 42bfe327c4
commit eb12094af7
2 changed files with 7 additions and 7 deletions

View file

@ -207,15 +207,13 @@ watch(
onMounted(async () => { onMounted(async () => {
showLoader(); showLoader();
await Promise.all([ Promise.all([
getCriteria(), getCriteria(),
fetchListPlanned(), await fetchListPlanned(),
fetchListRole(), await fetchListRole(),
fetchAssigned(), await fetchAssigned(),
]).finally(() => { ]).finally(() => {
setTimeout(() => { hideLoader();
hideLoader();
}, 1000);
}); });
}); });
</script> </script>

View file

@ -178,6 +178,7 @@ function onSubmit() {
} }
async function getOrgOp() { async function getOrgOp() {
showLoader()
await http await http
.get(config.API.Kpiorg + `/${store.dataProfile.profileId}`) .get(config.API.Kpiorg + `/${store.dataProfile.profileId}`)
.then((res) => { .then((res) => {
@ -213,6 +214,7 @@ async function getOrgOp() {
name: `${i.prefix}${i.firstName} ${i.lastName}`, name: `${i.prefix}${i.firstName} ${i.lastName}`,
})) }))
.find((i: any) => i.id == store.dataEvaluation.commanderHighId); .find((i: any) => i.id == store.dataEvaluation.commanderHighId);
hideLoader()
}) })
.catch((e) => { .catch((e) => {
messageError($q, e); messageError($q, e);