+
เจ้าหน้าที่กำลังตรวจสถานที่สอบ
สมัครสอบสำเร็จ
@@ -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 @@