From e1ceac5b13c0f531b2d7e5eb6d9565d2754cce7f Mon Sep 17 00:00:00 2001 From: AnandaTon Date: Fri, 13 Oct 2023 10:06:43 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=9A=E0=B8=B1?= =?UTF-8?q?=E0=B8=84=20input=20position?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/01_exam/components/Form/Career.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 */