แก้ api ตำแหน่ง

ปรับไม่ให้แสดง counter
This commit is contained in:
AnandaTon 2023-05-31 13:53:57 +07:00
parent 3fd7a8b964
commit 6374613c90
3 changed files with 11 additions and 4 deletions

View file

@ -65,6 +65,10 @@
examResultinscore
}}</span>
</div>
<div class="col-xs-6 col-sm-5 text-grey-7">ตำแหน</div>
<div class="col-xs-6 col-sm-7 q-pr-xs">
{{ position }}
</div>
<div class="col-xs-6 col-sm-5 text-grey-7">ลำดบทสอบได</div>
<div class="col-xs-6 col-sm-7 q-pr-xs">
{{ number }}
@ -115,6 +119,7 @@ const examId = ref<string>(route.params.id.toString())
const positionId = ref<string>(route.params.positionId.toString())
const fullName = ref<string>('')
const examNumber = ref<string>('')
const position = ref<string>('')
const citizenId = ref<string>('')
const examSeat = ref<string>('')
const scoreBFull = ref<number | null>(null)
@ -144,6 +149,7 @@ const fetchStatus = async () => {
examSeat.value = data.seatNumber
scoreBFull.value = data.pointTotalB
scoreB.value = data.pointB
position.value = data.posiiton == null ? '' : '' + data.posiiton.positionName
scoreCFull.value = data.pointTotalC
scoreC.value = data.pointC
if (data.pointB != null && data.pointC != null) {
@ -169,6 +175,7 @@ const fetchStatus = async () => {
avatar.value = data.avatar
score_expired.value = new Date(data.announcementDate)
number.value = data.number
position.value = data.position
})
.catch((e) => {
messageError($q, e)

View file

@ -156,7 +156,7 @@
dense
type="tel"
mask="#############"
counter
:counter="status == 'register' || status == 'rejectRegister' ? true : false"
lazy-rules
:readonly="!(status == 'register' || status == 'rejectRegister')"
:borderless="!(status == 'register' || status == 'rejectRegister')"
@ -260,7 +260,7 @@
<q-input
:outlined="status == 'register' || status == 'rejectRegister'"
dense
counter
:counter="status == 'register' || status == 'rejectRegister' ? true : false"
lazy-rules
type="tel"
mask="##########"
@ -279,7 +279,7 @@
<q-input
:outlined="status == 'register' || status == 'rejectRegister'"
dense
counter
:counter="status == 'register' || status == 'rejectRegister' ? true : false"
lazy-rules
type="tel"
mask="##########"

View file

@ -223,7 +223,7 @@
:class="getClass(status == 'register' || status == 'rejectRegister')"
:outlined="status == 'register' || status == 'rejectRegister'"
dense
counter
:counter="status == 'register' || status == 'rejectRegister' ? true : false"
maxlength="10"
lazy-rules
type="tel"