แปลงวันที่หมดอายุ
This commit is contained in:
parent
e8b1523895
commit
4ce008fa45
2 changed files with 6 additions and 3 deletions
|
|
@ -108,11 +108,14 @@
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { onMounted, ref } from 'vue'
|
import { onMounted, ref } from 'vue'
|
||||||
|
import { useRoute } from 'vue-router'
|
||||||
|
import { useCounterMixin } from '@/stores/mixin'
|
||||||
import http from '@/plugins/http'
|
import http from '@/plugins/http'
|
||||||
import config from '@/app.config'
|
import config from '@/app.config'
|
||||||
import { useRoute } from 'vue-router'
|
|
||||||
|
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
|
const mixin = useCounterMixin() //เรียกฟังก์ชันกลาง
|
||||||
|
const { dateThaiRange, modalDelete, modalConfirm, dateToISO, success } = mixin
|
||||||
const examId = ref<string>(route.params.id.toString())
|
const examId = ref<string>(route.params.id.toString())
|
||||||
const positionId = ref<string>(route.params.positionId.toString())
|
const positionId = ref<string>(route.params.positionId.toString())
|
||||||
const loader = ref<boolean>(false)
|
const loader = ref<boolean>(false)
|
||||||
|
|
@ -159,7 +162,7 @@ const fetchStatus = async () => {
|
||||||
scoreC.value = data.pointC
|
scoreC.value = data.pointC
|
||||||
examResultinscore.value = data.pass
|
examResultinscore.value = data.pass
|
||||||
avatar.value = data.avatar
|
avatar.value = data.avatar
|
||||||
score_expired.value = data.announcementDate
|
score_expired.value = new Date(data.announcementDate)
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
// acceptTermOfUse.value = false
|
// acceptTermOfUse.value = false
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
<q-toolbar class="q-pa-sm text-center">
|
<q-toolbar class="q-pa-sm text-center">
|
||||||
<q-toolbar-title class="text-dark">
|
<q-toolbar-title class="text-dark">
|
||||||
{{ tittle }}
|
{{ tittle }}
|
||||||
{{ `ครั้งที่${round}/${yearly + 543}` }}
|
{{ `ครั้งที่${round}/${yearly == null ? '' : yearly + 543}` }}
|
||||||
<div class="text-light text-body2">{{ position }}</div>
|
<div class="text-light text-body2">{{ position }}</div>
|
||||||
</q-toolbar-title>
|
</q-toolbar-title>
|
||||||
</q-toolbar>
|
</q-toolbar>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue