แก้ในสมัครสอบคัดเลือกลบรายละเอียดบัตรประชาชน
This commit is contained in:
parent
f51889882b
commit
e3aa1d8221
4 changed files with 158 additions and 231 deletions
|
|
@ -3,7 +3,7 @@
|
|||
<div class="q-px-sm">
|
||||
<Information
|
||||
:prefixOptions="prefixOptions"
|
||||
:relationshipOptions="relationshipOptions"
|
||||
:religionOptions="religionOptions"
|
||||
:provinceOptions="provinceOptions"
|
||||
:status="status"
|
||||
v-model:form="formInformation"
|
||||
|
|
@ -15,10 +15,10 @@
|
|||
<Address :provinceOptions="provinceOptions" :status="status" v-model:form="formAddress" />
|
||||
</div>
|
||||
|
||||
<q-separator class="q-my-lg bg-gray" size="5px" />
|
||||
<!-- <q-separator class="q-my-lg bg-gray" size="5px" />
|
||||
<div class="q-px-sm">
|
||||
<Family :prefixOptions="prefixOptions" :status="status" v-model:form="formFamily" />
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<q-separator class="q-my-lg bg-gray" size="5px" />
|
||||
<div class="q-px-sm">
|
||||
|
|
@ -50,7 +50,7 @@ import { useQuasar } from 'quasar'
|
|||
import type { DataOption } from '@/modules/01_exam/interface/index/Main'
|
||||
import Information from '@/modules/01_exam/components/Form/Information.vue'
|
||||
import Address from '@/modules/01_exam/components/Form/Address.vue'
|
||||
import Family from '@/modules/01_exam/components/Form/Family.vue'
|
||||
// import Family from '@/modules/01_exam/components/Form/Family.vue'
|
||||
import Occupation from '@/modules/01_exam/components/Form/Occupation.vue'
|
||||
import Education from '@/modules/01_exam/components/Form/Education.vue'
|
||||
import Career from '@/modules/01_exam/components/Form/Career.vue'
|
||||
|
|
@ -69,10 +69,10 @@ const props = defineProps({
|
|||
type: Object,
|
||||
required: true
|
||||
},
|
||||
formFamily: {
|
||||
type: Object,
|
||||
required: true
|
||||
},
|
||||
// formFamily: {
|
||||
// type: Object,
|
||||
// required: true
|
||||
// },
|
||||
formOccupation: {
|
||||
type: Object,
|
||||
required: true
|
||||
|
|
@ -81,7 +81,7 @@ const props = defineProps({
|
|||
const emit = defineEmits([
|
||||
'update:formInformation',
|
||||
'update:formAddress',
|
||||
'update:formFamily',
|
||||
// 'update:formFamily',
|
||||
'update:formOccupation'
|
||||
])
|
||||
|
||||
|
|
@ -91,12 +91,12 @@ const { loaderPage } = dataStore
|
|||
const mixin = useCounterMixin()
|
||||
const { messageError } = mixin
|
||||
const prefixOptions = ref<DataOption[]>([])
|
||||
const relationshipOptions = ref<DataOption[]>([])
|
||||
const religionOptions = ref<DataOption[]>([])
|
||||
const provinceOptions = ref<DataOption[]>([])
|
||||
const educationLevelOptions = ref<DataOption[]>([])
|
||||
const formInformation = ref<any>({})
|
||||
const formAddress = ref<any>({})
|
||||
const formFamily = ref<any>({})
|
||||
// const formFamily = ref<any>({})
|
||||
const formOccupation = ref<any>({})
|
||||
|
||||
watch(formInformation, async (count: Object, prevCount: Object) => {
|
||||
|
|
@ -107,9 +107,9 @@ watch(formAddress, async (count: Object, prevCount: Object) => {
|
|||
emit('update:formAddress', count)
|
||||
})
|
||||
|
||||
watch(formFamily, async (count: Object, prevCount: Object) => {
|
||||
emit('update:formFamily', count)
|
||||
})
|
||||
// watch(formFamily, async (count: Object, prevCount: Object) => {
|
||||
// emit('update:formFamily', count)
|
||||
// })
|
||||
|
||||
watch(formOccupation, async (count: Object, prevCount: Object) => {
|
||||
emit('update:formOccupation', count)
|
||||
|
|
@ -131,11 +131,11 @@ const fetchPerson = async () => {
|
|||
})
|
||||
prefixOptions.value = optionPrefix
|
||||
|
||||
let optionRelationship: DataOption[] = []
|
||||
data.relationships.map((r: any) => {
|
||||
optionRelationship.push({ id: r.id.toString(), name: r.name.toString() })
|
||||
let optionReligion: DataOption[] = []
|
||||
data.religions.map((r: any) => {
|
||||
optionReligion.push({ id: r.id.toString(), name: r.name.toString() })
|
||||
})
|
||||
relationshipOptions.value = optionRelationship
|
||||
religionOptions.value = optionReligion
|
||||
|
||||
let optionProvince: DataOption[] = []
|
||||
data.provinces.map((r: any) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue