fix พํฒนาบุคลากร

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-11-27 17:45:36 +07:00
parent 1e892b89f4
commit 62f1c81841
6 changed files with 71 additions and 30 deletions

View file

@ -374,7 +374,9 @@ function onSubmitRelate() {
amount: formGroupRelate.amount,
}
)
.then(() => {
.then(async () => {
await fetchData(projectId.value);
onClickCloseDialog();
success($q, "บันทึกข้อมูลสำเร็จ");
})
.catch((err) => {
@ -395,7 +397,9 @@ function onSubmitRelate() {
amount: formGroupRelate.amount,
}
)
.then(() => {
.then(async () => {
await fetchData(projectId.value);
onClickCloseDialog();
success($q, "บันทึกข้อมูลสำเร็จ");
})
.catch((err) => {
@ -405,10 +409,6 @@ function onSubmitRelate() {
hideLoader();
});
}
setTimeout(() => {
fetchData(projectId.value);
onClickCloseDialog();
}, 100);
});
}
@ -434,7 +434,7 @@ function onClickCloseDialog() {
modalRelate.value = false;
cleanFormData();
fetchType();
fetchData(projectId.value);
// fetchData(projectId.value);
}
/**