ปรับฟอร์มลา

This commit is contained in:
Warunee Tamkoo 2024-01-05 14:30:28 +07:00
parent 4ce525522b
commit 6bf4bdebaa
16 changed files with 217 additions and 175 deletions

View file

@ -61,8 +61,10 @@ function onSubmit(postData: FormData) {
dialogConfirm($q, async () => {
showLoader();
await http
.put(config.API.leaveUser(), postData)
.post(config.API.leaveUser(), postData)
.then(() => {
// router.push(`/leave/edit/${id}`);
router.push("/leave");
success($q, "บันทึกสำเร็จ");
})
.catch((e: any) => {
@ -200,14 +202,14 @@ onMounted(async () => {
:on-submit="onSubmit"
/>
<StudyForm
v-if="model === 'LV-008' && modelSpecific === 's0'"
v-if="model === 'LV-008' && modelSpecific === 's1'"
style="width: 100%"
:on-submit="onSubmit"
/>
<TrainForm
v-if="
model === 'LV-008' &&
modelSpecific != 's0' &&
modelSpecific != 's1' &&
modelSpecific != ''
"
:on-submit="onSubmit"