แก้โหลด kpi
This commit is contained in:
parent
42bfe327c4
commit
eb12094af7
2 changed files with 7 additions and 7 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue