From dfe0d3fe78dc1f39d9d4e4c48c50bba6e456d28a Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 19 Nov 2025 11:04:05 +0700 Subject: [PATCH] fix --- .../01_exam/components/Form/Contact.vue | 18 ++++++++++-------- .../01_exam/components/Form/Information.vue | 18 ++++++++++-------- 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/src/modules/01_exam/components/Form/Contact.vue b/src/modules/01_exam/components/Form/Contact.vue index 3d5d508..1e03df2 100644 --- a/src/modules/01_exam/components/Form/Contact.vue +++ b/src/modules/01_exam/components/Form/Contact.vue @@ -96,15 +96,17 @@ :borderless="!isStatusRegister" v-model="defaultContact.contacttel" :label="`${'โทรศัพท์'}`" - :rules="[(val) => !!val || '* กรุณากรอกข้อมูลหมายเลขโทรศัพท์']" - /> - - - - - + 'กรุณากรอกข้อมูลหมายเลขโทรศัพท์ให้ถูกต้อง' + ]" + type="tel" + mask="##########" + maxlength="10" + :counter="isStatusRegister ? true : false" + /> diff --git a/src/modules/01_exam/components/Form/Information.vue b/src/modules/01_exam/components/Form/Information.vue index e480001..2bf0457 100644 --- a/src/modules/01_exam/components/Form/Information.vue +++ b/src/modules/01_exam/components/Form/Information.vue @@ -259,15 +259,17 @@ :borderless="!isStatusRegister" v-model="defaultInformation.tel" :label="`${'โทรศัพท์'}`" - :rules="[(val) => !!val || '* กรุณากรอกข้อมูลหมายเลขโทรศัพท์']" - /> - - - - - + 'กรุณากรอกข้อมูลหมายเลขโทรศัพท์ให้ถูกต้อง' + ]" + :counter="isStatusRegister ? true : false" + type="tel" + mask="##########" + maxlength="10" + />