แก้ไข เพิ่ม workInternationalForm

This commit is contained in:
AnandaTon 2023-11-09 12:23:37 +07:00
parent f5d71abaab
commit 1552da5d4c
7 changed files with 285 additions and 24 deletions

View file

@ -5,6 +5,7 @@ import SickForm from "@/modules/05_leave/componenst/Forms/01_SickForm.vue"
import HelpWifeBirthForm from "@/modules/05_leave/componenst/Forms/04_HelpWifeBirthForm.vue"
import VacationForm from "@/modules/05_leave/componenst/Forms/05_VacationForm.vue"
import FollowSpouseForm from "@/modules/05_leave/componenst/Forms/12_FollowSpouseForm.vue"
import WorkInternationalForm from "@/modules/05_leave/componenst/Forms/11_WorkInternationalForm.vue"
const type = ref<number>(0)
const typeOption = reactive([
{ id: 0, name: "" },
@ -14,6 +15,7 @@ const typeOption = reactive([
{ id: 4, name: "ลาไปช่วยเหลือภริยาที่คลอดบุตร" },
{ id: 5, name: "ลาพักผ่อน" },
{ id: 6, name: "ลาติดตามคู่สมรส" },
{ id: 7, name: "ลาไปปฏิบัติงานในองค์การระหว่างประเทศ" },
])
async function onSubmit() {
@ -47,6 +49,7 @@ watch(
<HelpWifeBirthForm v-if="type == 4" />
<VacationForm v-if="type == 5" />
<FollowSpouseForm v-if="type == 6" />
<WorkInternationalForm v-if="type == 7" />
</div>
</div>