From d484f7514c7b511b0cc5c81fb66fa47f8d17872b Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Mon, 4 Mar 2024 15:33:22 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88=E0=B8=A1?= =?UTF-8?q?=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=8A?= =?UTF-8?q?=E0=B8=B8=E0=B8=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/6_BasicInformation/Channel/Form.vue | 1 + src/modules/12_evaluatePersonal/components/Meeting/Form.vue | 4 ---- src/modules/13_salary/components/SalaryRound/DialogForm.vue | 1 + 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/modules/11_discipline/components/6_BasicInformation/Channel/Form.vue b/src/modules/11_discipline/components/6_BasicInformation/Channel/Form.vue index 59838209d..2526d688c 100644 --- a/src/modules/11_discipline/components/6_BasicInformation/Channel/Form.vue +++ b/src/modules/11_discipline/components/6_BasicInformation/Channel/Form.vue @@ -60,6 +60,7 @@ function inputEdit(val: boolean) { for="channel" hide-bottom-space label="ชื่อช่องทาง" + lazy-rules :rules="[(val:string) => !!val || `${'กรุณากรอกชื่อช่องทาง'}`]" /> diff --git a/src/modules/12_evaluatePersonal/components/Meeting/Form.vue b/src/modules/12_evaluatePersonal/components/Meeting/Form.vue index 226cd89c8..1eae2c43c 100644 --- a/src/modules/12_evaluatePersonal/components/Meeting/Form.vue +++ b/src/modules/12_evaluatePersonal/components/Meeting/Form.vue @@ -301,7 +301,6 @@ onMounted(() => { ref="dateMeetingStartRef" dense outlined - lazy-rules :model-value=" formData.dateMeetingStart != null ? date2Thai(formData.dateMeetingStart, false, true) @@ -339,7 +338,6 @@ onMounted(() => { ref="dateMeetingEndRef" dense outlined - lazy-rules :model-value=" formData.dateMeetingEnd != null ? date2Thai(formData.dateMeetingEnd, false, true) @@ -413,8 +411,6 @@ onMounted(() => { v-model="file" @added="uploadFile" label="ไฟล์เอกสารหลักฐาน" - hide-bottom-space - lazy-rules accept=".pdf,.xlsx,.doc" clearable > diff --git a/src/modules/13_salary/components/SalaryRound/DialogForm.vue b/src/modules/13_salary/components/SalaryRound/DialogForm.vue index f5a8118f4..4774dd119 100644 --- a/src/modules/13_salary/components/SalaryRound/DialogForm.vue +++ b/src/modules/13_salary/components/SalaryRound/DialogForm.vue @@ -213,6 +213,7 @@ watch( option-label="name" option-value="id" :options="typeOptions" + lazy-rules :rules="[(val) => !!val || `${'กรุณาเลือกรอบการขึ้นเงินเดือน'}`]" hide-bottom-space />