diff --git a/src/modules/01_exam/components/Form/Career.vue b/src/modules/01_exam/components/Form/Career.vue index dc204eb..5dff3d2 100644 --- a/src/modules/01_exam/components/Form/Career.vue +++ b/src/modules/01_exam/components/Form/Career.vue @@ -80,7 +80,7 @@ v-model="position" :rules="[(val) => !!val || `${'กรุณากรอกตำแหน่ง/ลักษณะงาน'}`]" :label="`${'ตำแหน่ง/ลักษณะงาน'}`" - @update:modelValue="clickEditRow" + @update:modelValue="clickEditRowPosition" hide-bottom-space /> @@ -593,7 +593,7 @@ const checkRowPage = () => { //validate วันที่สิ้นสุด const endDateValidation = (value: Date) => { - if (startDate.value < endDate.value) { + if (startDate.value <= endDate.value) { return true } return false @@ -774,6 +774,10 @@ const clickEditRow = () => { editRow.value = true } +const clickEditRowPosition = () => { + editRow.value = true +} + /** * validate input ใน dialog */