+
{
const data = res.data.result;
store.dataEvaluation = await data;
- store.dataProfile = await data;
+ // store.dataProfile = await data;
formProfile.status = store.convertStatus(data.evaluationStatus);
formProfile.result = store.convertResults(data.evaluationResults);
store.checkCompetency();
@@ -278,11 +279,11 @@ function filterOption(val: any, update: Function, refData: string) {
// }
async function getProfile() {
await http
- .get(config.API.profilePositionKey())
+ .get(config.API.profilePosition+`/${store.dataEvaluation.profileId}`)
.then(async (res) => {
const data = await res.data.result;
store.dataProfile = await data;
-
+ await store.checkStep();
})
.catch((e) => {
messageError($q, e);
@@ -293,7 +294,7 @@ async function getProfile() {
}
async function getAll() {
await fetchEvaluation();
- await store.checkStep();
+ getProfile();
getOrgOp();
}