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 @@