set path api server
This commit is contained in:
parent
c299af578f
commit
3960b9d388
3 changed files with 43 additions and 38 deletions
|
|
@ -95,9 +95,7 @@
|
|||
lazy-rules
|
||||
:readonly="!(status == 'register' || status == 'rejectRegister')"
|
||||
:borderless="!(status == 'register' || status == 'rejectRegister')"
|
||||
:model-value="
|
||||
informaData.birthDate == null ? null : date2Thai(informaData.birthDate)
|
||||
"
|
||||
:model-value="informaData.birthDate == null ? null : date2Thai(informaData.birthDate)"
|
||||
:rules="[(val) => !!val || `${'กรุณาเลือก วัน/เดือน/ปี เกิด'}`]"
|
||||
:label="`${'วัน/เดือน/ปี เกิด'}`"
|
||||
>
|
||||
|
|
@ -301,7 +299,7 @@
|
|||
:label="`${'โทรศัพท์มือถือ'}`"
|
||||
/>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-3 col-md-3 q-pb-md">
|
||||
<div class="col-xs-12 col-sm-3 col-md-3 q-pb-md">
|
||||
<q-input
|
||||
:class="getClass(false)"
|
||||
:outlined="false"
|
||||
|
|
@ -370,6 +368,7 @@ import { defaultInformation } from '@/modules/01_exam/interface/index/Main'
|
|||
import HeaderTop from '@/components/top.vue'
|
||||
import Conference from '@/modules/01_exam/components/Conference.vue'
|
||||
import { useRoute } from 'vue-router'
|
||||
import keycloak from '@/plugins/keycloak'
|
||||
|
||||
const props = defineProps({
|
||||
prefixOptions: {
|
||||
|
|
@ -442,7 +441,13 @@ const fetchData = async () => {
|
|||
informaData.value.tel = data.telephone
|
||||
informaData.value.knowledge = data.knowledge
|
||||
})
|
||||
.catch(() => {})
|
||||
.catch(() => {
|
||||
informaData.value.email = keycloak.tokenParsed == null ? '' : keycloak.tokenParsed.email
|
||||
informaData.value.firstname =
|
||||
keycloak.tokenParsed == null ? '' : keycloak.tokenParsed.given_name
|
||||
informaData.value.lastname =
|
||||
keycloak.tokenParsed == null ? '' : keycloak.tokenParsed.family_name
|
||||
})
|
||||
.finally(() => {
|
||||
loader.value = false
|
||||
})
|
||||
|
|
@ -600,7 +605,7 @@ const getClass = (val: boolean) => {
|
|||
opacity: 1;
|
||||
}
|
||||
|
||||
.q-field__bottom{
|
||||
.q-field__bottom {
|
||||
padding: 5px 10px 0px 0px;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue