พ้นจากราชการ ==> ปรับ form Exit interview

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-09-02 10:27:59 +07:00
parent c01031c687
commit f09860b79b
4 changed files with 503 additions and 515 deletions

View file

@ -177,8 +177,8 @@ const getData = async () => {
showLoader();
await http
.get(config.API.questionExitInterview())
.then((res: any) => {
const data = res.data.result;
.then(async (res) => {
const data = await res.data.result;
question1Score.value = data.question1Score ?? 0;
question2Score.value = data.question2Score ?? 0;
question3Score.value = data.question3Score ?? 0;
@ -269,14 +269,15 @@ const putData = () => {
showLoader();
http
.put(config.API.questionExitInterview(), body)
.then((res) => {
.then(() => {
router.push(`/retirement/exit-interview`);
success($q, "บันทึกข้อมูลสำเร็จ");
})
.catch((e) => {
messageError($q, e);
})
.finally(async () => {
router.push(`/retirement/exit-interview`);
.finally(() => {
hideLoader();
});
};
</script>