From b4f20e407bd07b7ba5b74136b3002fb6277e629d Mon Sep 17 00:00:00 2001 From: Kittapath Date: Fri, 6 Oct 2023 17:31:23 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=84=E0=B8=B1=E0=B8=94=E0=B9=80=E0=B8=A5?= =?UTF-8?q?=E0=B8=B7=E0=B8=AD=E0=B8=81=20=E0=B9=80=E0=B8=A5=E0=B8=B7?= =?UTF-8?q?=E0=B8=AD=E0=B8=81=E0=B8=A7=E0=B8=B8=E0=B8=92=E0=B8=B4=E0=B8=81?= =?UTF-8?q?=E0=B8=B2=E0=B8=A3=E0=B8=A8=E0=B8=B6=E0=B8=81=E0=B8=A9=E0=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../03_recruiting/components/Education.vue | 15 ++++++- .../03_recruiting/components/Information.vue | 21 ++++++++- .../03_recruiting/components/Occupation.vue | 3 +- src/stores/mixin.ts | 43 +++++++++++++++++++ 4 files changed, 79 insertions(+), 3 deletions(-) diff --git a/src/modules/03_recruiting/components/Education.vue b/src/modules/03_recruiting/components/Education.vue index 9a545b3c9..898bdc7c5 100644 --- a/src/modules/03_recruiting/components/Education.vue +++ b/src/modules/03_recruiting/components/Education.vue @@ -27,9 +27,10 @@ v-model="defaultEducation.educationLevelExamId" :rules="[(val) => !!val || `${'กรุณาเลือก วุฒิที่ใช้สมัครสอบ'}`]" :label="`${'วุฒิที่ใช้สมัครสอบ'}`" + @update:model-value="(value) => checkInputName()" /> -
+
(true); +const showEducationName = ref(true); const myform = ref({}); const route = useRoute(); const candidateId = ref(route.params.candidateId.toString()); @@ -276,6 +278,17 @@ const fetchData = async () => { }); }; +const checkInputName = () => { + showEducationName.value = + props.educationLevelOptions.filter( + (x) => + x.id == defaultEducation.value.educationLevelExamId && + (x.name == "ปริญญาตรี" || x.name == "ปริญญาโท" || x.name == "ปริญญาเอก") + ).length == 0 + ? false + : true; +}; + const getClass = (val: boolean) => { return { "full-width inputgreen cursor-pointer": val, diff --git a/src/modules/03_recruiting/components/Information.vue b/src/modules/03_recruiting/components/Information.vue index 23526e63c..6f8b56e88 100644 --- a/src/modules/03_recruiting/components/Information.vue +++ b/src/modules/03_recruiting/components/Information.vue @@ -136,6 +136,7 @@ week-start="0" :max-date="new Date()" :disabled="!(status == 'checkRegister' || status == 'payment')" + @update:modelValue="selectBirthDate" >