updated kpi

This commit is contained in:
Warunee Tamkoo 2024-05-09 18:09:43 +07:00
parent a69d9e331d
commit a99119660b
5 changed files with 407 additions and 304 deletions

View file

@ -273,14 +273,14 @@ function onSubmitScore() {
});
}
async function clearScore() {
modalScore.value = false;
plannedPoint.value = "";
rolePoint.value = "";
specialPoint.value = "";
capacityPoint.value = "";
getAll();
}
// async function clearScore() {
// modalScore.value = false;
// plannedPoint.value = "";
// rolePoint.value = "";
// specialPoint.value = "";
// capacityPoint.value = "";
// getAll();
// }
async function getAll() {
await fetchEvaluation();
@ -320,25 +320,21 @@ function requireEdit() {
$q,
() => {
if (id.value) {
// showLoader();
// http
// .put(config.API.kpiEvaluationCheck + `/${id.value}`, {
// evaluatorId: evaluatorId.value ? evaluatorId.value.id : null,
// commanderId: commanderId.value ? commanderId.value.id : null,
// commanderHighId: commanderHighId.value
// ? commanderHighId.value.id
// : null,
// })
// .then((res) => {
// success($q, "");
// close();
// })
// .catch((e) => {
// messageError($q, e);
// })
// .finally(() => {
// hideLoader();
// });
showLoader();
http
.put(config.API.kpiReqEdit(id.value), {
status: "EVALUATOR",
})
.then((res) => {
success($q, "ขอแก้ไขสำเร็จ");
close();
})
.catch((e) => {
messageError($q, e);
})
.finally(() => {
hideLoader();
});
}
},
"ยืนยันการขอแก้ไขข้อตกลง",