From b7a91fa3262e5908333b9b33f285e911449f673a Mon Sep 17 00:00:00 2001 From: Kittapath Date: Sat, 25 Mar 2023 01:07:18 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=95=E0=B9=88=E0=B8=ADapi=E0=B8=84?= =?UTF-8?q?=E0=B8=99=E0=B8=AA=E0=B8=A1=E0=B8=B1=E0=B8=84=E0=B8=A3=E0=B8=81?= =?UTF-8?q?=E0=B8=A3=E0=B8=AD=E0=B8=81=E0=B8=82=E0=B9=89=E0=B8=AD=E0=B8=A1?= =?UTF-8?q?=E0=B8=B9=E0=B8=A5=E0=B8=AA=E0=B8=A1=E0=B8=B1=E0=B8=84=E0=B8=A3?= =?UTF-8?q?=E0=B8=AA=E0=B8=AD=E0=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/exam/api.candidate.ts | 1 + .../01_exam/components/ExamFinished.vue | 14 +- src/modules/01_exam/components/ExamForm.vue | 36 +-- .../01_exam/components/ExamPayment.vue | 47 ++-- .../01_exam/components/Form/Career.vue | 58 +++-- .../01_exam/components/Form/Document.vue | 6 +- .../01_exam/components/Form/Education.vue | 60 ++--- .../01_exam/components/Form/Profile.vue | 97 ++++++-- .../components/Form/Profile/Address.vue | 186 ++++++++------- .../components/Form/Profile/Family.vue | 123 +++------- .../components/Form/Profile/Information.vue | 220 +++++++----------- .../components/Form/Profile/Occupation.vue | 128 +++++++--- src/modules/01_exam/interface/index/Main.ts | 8 +- .../01_exam/interface/response/Career.ts | 5 +- .../01_exam/interface/response/Education.ts | 9 +- src/modules/01_exam/views/ExamDetail.vue | 91 +++++--- 16 files changed, 567 insertions(+), 522 deletions(-) diff --git a/src/api/exam/api.candidate.ts b/src/api/exam/api.candidate.ts index 521446a..221d17e 100644 --- a/src/api/exam/api.candidate.ts +++ b/src/api/exam/api.candidate.ts @@ -11,5 +11,6 @@ export default { candidateCheckCreate: (examId: string) => `${candidate}check/${examId}`, candidateRegister: (examId: string) => `${candidate}register/${examId}`, candidatePayment: (examId: string) => `${candidate}payment/${examId}`, + candidateStatus: (examId: string) => `${candidate}status/${examId}`, candidate } diff --git a/src/modules/01_exam/components/ExamFinished.vue b/src/modules/01_exam/components/ExamFinished.vue index 2330d1a..b9101f9 100644 --- a/src/modules/01_exam/components/ExamFinished.vue +++ b/src/modules/01_exam/components/ExamFinished.vue @@ -3,7 +3,7 @@
-
+
เจ้าหน้าที่กำลังตรวจสถานที่สอบ
สมัครสอบสำเร็จ
@@ -75,8 +75,8 @@ const props = defineProps({ type: Function, default: () => console.log('not function') }, - step: { - type: Number, + status: { + type: String, required: true } }) @@ -89,14 +89,10 @@ const examLocation = ref('ศูนย์สอบ 01 กรุงเท const floor = ref('4') const examRoom = ref('CB-706') const seatNumber = ref('75') -const status = ref(true) const download = () => {} -const testChangeStatus = () => { - status.value = true -} -const getClass = (val: boolean) => { - return val == true ? 'bg-green-4' : 'bg-yellow-3' +const getClass = (val: string) => { + return val == 'done' ? 'bg-green-4' : 'bg-yellow-3' } diff --git a/src/modules/01_exam/components/ExamForm.vue b/src/modules/01_exam/components/ExamForm.vue index 22a25f4..0974659 100644 --- a/src/modules/01_exam/components/ExamForm.vue +++ b/src/modules/01_exam/components/ExamForm.vue @@ -13,22 +13,22 @@ > - + - + @@ -45,7 +45,7 @@
@@ -57,7 +57,10 @@ class="q-ml-md" label="กลับ" @click="clickPreview(tab)" - v-if="step === 2 && (tab == 'education' || tab == 'career' || tab == 'document')" + v-if=" + (status === 'register' || status === 'rejectRegister') && + (tab == 'education' || tab == 'career' || tab == 'document') + " icon="mdi-chevron-left" :disable="statusEdit" /> @@ -66,7 +69,10 @@ class="q-ml-md" label="ต่อไป" @click="clickNext(tab)" - v-if="step === 2 && (tab == 'profile' || tab == 'education' || tab == 'career')" + v-if=" + (status === 'register' || status === 'rejectRegister') && + (tab == 'profile' || tab == 'education' || tab == 'career') + " icon-right="mdi-chevron-right" :disable="statusEdit" /> @@ -75,7 +81,7 @@ class="q-ml-md" label="สมัครสอบ" @click="okModalConfirm" - v-if="step === 2 && tab == 'document'" + v-if="(status === 'register' || status === 'rejectRegister') && tab == 'document'" :disable="!acceptTermOfUse || statusEdit" />
@@ -84,22 +90,22 @@