งานที่ได้รับมอบหมายพิเศษ

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-05-09 11:55:37 +07:00
parent 141dc8f61f
commit 6047660108
4 changed files with 203 additions and 66 deletions

View file

@ -70,6 +70,7 @@ function fetchEvaluation() {
.get(config.API.kpiEvaluation + `/${id.value}`)
.then((res) => {
const data = res.data.result;
store.dataEvaluation = data;
formProfile.status = store.convertStatus(data.evaluationStatus);
formProfile.result = store.convertResults(data.evaluationResults);
@ -94,6 +95,7 @@ function getProfile() {
.get(config.API.profilePosition())
.then((res) => {
const data = res.data.result;
store.dataProfile = data;
store.checkCompetency();
store.checkCompetencyDefaultCompetencyLevel();
@ -281,7 +283,7 @@ async function clearScore() {
async function getAll() {
await fetchEvaluation();
await (store.dataProfile === null ? getProfile() : "");
await getProfile(); // await (store.dataProfile === null ? getProfile() : "");
await getOrgOp();
}