พ้นจากราชการ ==> ปรับ form Exit interview
This commit is contained in:
parent
c01031c687
commit
f09860b79b
4 changed files with 503 additions and 515 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue