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