updated kpi
This commit is contained in:
parent
a69d9e331d
commit
a99119660b
5 changed files with 407 additions and 304 deletions
|
|
@ -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();
|
||||
});
|
||||
}
|
||||
},
|
||||
"ยืนยันการขอแก้ไขข้อตกลง",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue