This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-01-14 16:23:28 +07:00
parent 6fc102a10f
commit 3573bff5f3

View file

@ -67,10 +67,11 @@ async function fetchEvaluation() {
.get(config.API.kpiEvaluation + `/${id.value}`) .get(config.API.kpiEvaluation + `/${id.value}`)
.then(async (res) => { .then(async (res) => {
const data = await res.data.result; const data = await res.data.result;
store.dataEvaluation = res.data.result; store.dataEvaluation = await res.data.result;
formProfile.status = await store.convertStatus(data.evaluationStatus); formProfile.status = store.convertStatus(data.evaluationStatus);
formProfile.result = await store.convertResults(data.evaluationResults); formProfile.result = store.convertResults(data.evaluationResults);
store.checkCompetencyDefaultCompetencyLevel(); store.checkCompetencyDefaultCompetencyLevel();
await store.checkStep();
}) })
.catch((e) => { .catch((e) => {
messageError($q, e); messageError($q, e);
@ -88,8 +89,6 @@ async function getProfile() {
if (data.avatarName) { if (data.avatarName) {
await fetchProfile(data.profileId, data.avatarName); await fetchProfile(data.profileId, data.avatarName);
} }
await store.checkStep();
}) })
.catch((e) => { .catch((e) => {
messageError($q, e); messageError($q, e);
@ -464,7 +463,7 @@ async function fetchProfileEvaluator(id: string) {
onMounted(async () => { onMounted(async () => {
showLoader(); showLoader();
store.isUpdate = await false; store.isUpdate = false;
await getAll(); await getAll();
}); });
</script> </script>