KPI
This commit is contained in:
parent
7bb72d96f9
commit
a86a9e498d
5 changed files with 638 additions and 16 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue