This commit is contained in:
STW_TTTY\stwtt 2024-06-28 14:03:08 +07:00
parent 7bb72d96f9
commit a86a9e498d
5 changed files with 638 additions and 16 deletions

View file

@ -8,6 +8,7 @@ import Avatar from "@/assets/!avatar_user.jpg";
import DialogHeader from "@/components/DialogHeader.vue";
import Assessment from "@/modules/14_KPI/components/Tab/01_Assessment.vue";
import Result from "@/modules/14_KPI/components/Tab/04_Result.vue";
import File from "@/modules/14_KPI/components/Tab/05_File.vue";
import DialogGovernment from "@/modules/14_KPI/components/Tab/Dialog/DialogGovernment.vue";
import DialogStatus from "@/modules/14_KPI/components/Tab/Dialog/DialogStatus.vue";
@ -94,7 +95,7 @@ async function fetchEvaluation() {
.then(async (res) => {
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();
}