ปรับ ui สรรหาสอบคัดเลือก
This commit is contained in:
parent
e3aa1d8221
commit
5fbf1bd8bd
11 changed files with 836 additions and 1200 deletions
|
|
@ -6,7 +6,9 @@
|
|||
{{ tittle }}
|
||||
{{ `ครั้งที่${round}/${yearly == null ? '' : yearly + 543}` }}
|
||||
</div>
|
||||
<div class="col-12">{{ position }}/{{ positionLevel }}</div>
|
||||
<div class="col-12">
|
||||
{{ position }}{{ positionLevel == null ? null : '/' + positionLevel }}
|
||||
</div>
|
||||
</q-toolbar-title>
|
||||
</q-toolbar>
|
||||
<!-- <q-toolbar class="q-pa-sm text-center">
|
||||
|
|
@ -40,7 +42,13 @@
|
|||
<li>{{ rejectMessage }}</li>
|
||||
</div>
|
||||
</q-card-actions>
|
||||
<ExamForm :fetchStep="fetchStep" :status="status" />
|
||||
<ExamForm
|
||||
:fetchStep="fetchStep"
|
||||
:status="status"
|
||||
:editorConfirm="editorConfirm"
|
||||
:position="position"
|
||||
:positionLevel="positionLevel"
|
||||
/>
|
||||
</q-card>
|
||||
</q-step>
|
||||
<q-step
|
||||
|
|
@ -69,7 +77,7 @@
|
|||
</q-stepper>
|
||||
<q-dialog :model-value="modalConsend" persistent>
|
||||
<q-card :style="$q.screen.gt.xs ? 'min-width: 55vw' : 'min-width: 80vw'">
|
||||
<Consendform :ok="consendOk" />
|
||||
<Consendform :ok="consendOk" :editorCondition="editorCondition" />
|
||||
</q-card>
|
||||
</q-dialog>
|
||||
</template>
|
||||
|
|
@ -108,6 +116,8 @@ const stepPayment = ref<boolean>(true)
|
|||
const rejectMessage = ref<string>('')
|
||||
const round = ref<number | null>(null)
|
||||
const yearly = ref<number | null>(null)
|
||||
const editorCondition = ref<string>(``)
|
||||
const editorConfirm = ref<string>(``)
|
||||
|
||||
onMounted(async () => {
|
||||
await fetchPeriodExam()
|
||||
|
|
@ -121,6 +131,8 @@ const candidateCheck = async () => {
|
|||
.then(async (res) => {
|
||||
const data = res.data.result
|
||||
storeExam.consend = data.consend
|
||||
editorCondition.value = data.editorCondition
|
||||
editorConfirm.value = data.editorConfirm
|
||||
const positionExam = data.positionExam
|
||||
stepPayment.value = data.payment
|
||||
if (
|
||||
|
|
@ -221,9 +233,8 @@ const fetchPeriodExam = async () => {
|
|||
tittle.value = data.name
|
||||
round.value = data.round
|
||||
yearly.value = data.year
|
||||
position.value = data.posiiton == null ? '' : 'ตำแหน่ง: ' + data.posiiton
|
||||
positionLevel.value = data.posiitonLevel == null ? '' : 'ระดับ: ' + data.posiitonLevel
|
||||
console.log(data)
|
||||
position.value = data.position
|
||||
positionLevel.value = data.positionLevel
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue