แก้ไขประเมินบุคคล

This commit is contained in:
Warunee Tamkoo 2023-12-23 12:18:02 +07:00
parent 2399c9dcf0
commit 3487ae71bb
6 changed files with 61 additions and 19 deletions

View file

@ -9,6 +9,9 @@ import { useQuasar } from "quasar";
import keycloak from "@/plugins/keycloak";
import genReport from "@/plugins/genreport";
import { useEvaluateDetailStore } from "@/modules/12_evaluatePersonal/store/EvaluateDetail";
const store = useEvaluateDetailStore();
const fullName = ref<string>(
keycloak.tokenParsed ? keycloak.tokenParsed.name!.toString() : ""
@ -160,10 +163,27 @@ function confirmApprove(){
}).catch((e)=>{
messageError($q,e)
}).finally(()=>{
nextStep();
modalConfirm.value = false
hideLoader()
})
}
function nextStep(){
showLoader();
http
.put(config.API.evaluationNextFinish(id.value))
// .then((res) => {})
.catch((e) => {
messageError($q, e);
})
.finally(() => {
success($q, "ยืนยันผลการพิจารณาสำเร็จ");
store.step = 9;
store.currentStep = 9;
hideLoader();
});
}
</script>
<template>