From b272f73edd8ccc85b3f6ec52f7082d6e219314ea Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 6 Jun 2025 09:42:47 +0700 Subject: [PATCH] fix class modalfix ==> 03_recruiting --- .../03_recruiting/components/Career.vue | 149 ++++++++---------- .../03_recruiting/components/Education.vue | 4 +- .../03_recruiting/components/Information.vue | 8 +- .../views/01_compete/PeriodAdd.vue | 15 +- .../views/02_qualify/DisablePeriodAdd.vue | 28 ++-- .../views/02_qualify/PeriodAdd.vue | 11 +- 6 files changed, 93 insertions(+), 122 deletions(-) diff --git a/src/modules/03_recruiting/components/Career.vue b/src/modules/03_recruiting/components/Career.vue index b36950613..acdf9b52f 100644 --- a/src/modules/03_recruiting/components/Career.vue +++ b/src/modules/03_recruiting/components/Career.vue @@ -1,20 +1,19 @@ - + diff --git a/src/modules/03_recruiting/components/Education.vue b/src/modules/03_recruiting/components/Education.vue index 32f4ca84c..fe8553521 100644 --- a/src/modules/03_recruiting/components/Education.vue +++ b/src/modules/03_recruiting/components/Education.vue @@ -141,7 +141,7 @@ const getClass = (val: boolean) => { v-model="defaultEducation.educationLevelExamId" :rules="[(val:string) => !!val || `${'กรุณาเลือก วุฒิที่ใช้สมัครสอบ'}`]" :label="`${'วุฒิที่ใช้สมัครสอบ'}`" - @update:model-value="(value) => checkInputName()" + @update:model-value="() => checkInputName()" />
@@ -233,7 +233,7 @@ const getClass = (val: boolean) => { " :model-value="date2Thai(defaultEducation.educationEndDate)" :rules="[ - (val) => !!val || `${'กรุณาเลือกวันที่สำเร็จการศึกษา'}`, + (val:string) => !!val || `${'กรุณาเลือกวันที่สำเร็จการศึกษา'}`, ]" hide-bottom-space :label="`${'วันที่สำเร็จการศึกษา'}`" diff --git a/src/modules/03_recruiting/components/Information.vue b/src/modules/03_recruiting/components/Information.vue index 42c8a2995..57a0a1dd0 100644 --- a/src/modules/03_recruiting/components/Information.vue +++ b/src/modules/03_recruiting/components/Information.vue @@ -213,8 +213,8 @@ onMounted(async () => { v-model="defaultInformation.cardid" maxlength="13" :rules="[ - (val) => val.length == 13 || `${'กรุณากรอก เลขประจำตัวประชาชน'}`, - (val) => + (val:string) => val.length == 13 || `${'กรุณากรอก เลขประจำตัวประชาชน'}`, + (val:string) => /^[0-9]*$/.test(val) || `${'กรุณากรอกเลขประจำตัวประชาชนให้ถูกต้อง'}`, ]" @@ -383,8 +383,8 @@ onMounted(async () => { :borderless="!(status == 'checkRegister' || status == 'payment')" v-model="defaultInformation.tel" :rules="[ - (val) => !!val || '* กรุณากรอกข้อมูลหมายเลขโทรศัพท์', - (val) => + (val:string) => !!val || '* กรุณากรอกข้อมูลหมายเลขโทรศัพท์', + (val:string) => (val.length >= 9 && val.length <= 10 && val.startsWith('0')) || 'กรุณากรอกข้อมูลหมายเลขโทรศัพท์ให้ถูกต้อง', ]" diff --git a/src/modules/03_recruiting/views/01_compete/PeriodAdd.vue b/src/modules/03_recruiting/views/01_compete/PeriodAdd.vue index d26d00c2d..75fe25a8f 100644 --- a/src/modules/03_recruiting/views/01_compete/PeriodAdd.vue +++ b/src/modules/03_recruiting/views/01_compete/PeriodAdd.vue @@ -1,5 +1,4 @@