fix kpi
This commit is contained in:
parent
6fc102a10f
commit
3573bff5f3
1 changed files with 5 additions and 6 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue