fix
This commit is contained in:
parent
6f1318b55c
commit
c95c4e9e8f
14 changed files with 363 additions and 229 deletions
|
|
@ -7,6 +7,7 @@
|
|||
:provinceOptions="provinceOptions"
|
||||
:status="status"
|
||||
v-model:form="formInformation"
|
||||
:isStatusRegister="isStatusRegister"
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
|
@ -19,29 +20,45 @@
|
|||
<div class="q-px-sm">
|
||||
<Education
|
||||
:status="status"
|
||||
:isStatusRegister="isStatusRegister"
|
||||
v-model:form="formEducation"
|
||||
:educationLevelOptions="educationLevelOptions"
|
||||
:educationLevelHigherOptions="educationLevelHigherOptions"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<q-separator class="q-my-lg bg-gray" size="5px" />
|
||||
<div class="q-px-sm">
|
||||
<Occupation :status="status" v-model:form="formOccupation" />
|
||||
<Occupation
|
||||
:status="status"
|
||||
:isStatusRegister="isStatusRegister"
|
||||
v-model:form="formOccupation"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<q-separator class="q-my-lg bg-gray" size="5px" />
|
||||
<div class="q-px-sm">
|
||||
<Career :status="status" />
|
||||
<Career :status="status" :isStatusRegister="isStatusRegister" />
|
||||
</div>
|
||||
|
||||
<q-separator class="q-my-lg bg-gray" size="5px" />
|
||||
<div class="q-px-sm">
|
||||
<Address :provinceOptions="provinceOptions" :status="status" v-model:form="formAddress" />
|
||||
<Address
|
||||
:provinceOptions="provinceOptions"
|
||||
:status="status"
|
||||
v-model:form="formAddress"
|
||||
:isStatusRegister="isStatusRegister"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<q-separator class="q-my-lg bg-gray" size="5px" />
|
||||
<div class="q-px-sm">
|
||||
<Contact :status="status" :prefixOptions="prefixOptions" v-model:form="formContact" />
|
||||
<Contact
|
||||
:status="status"
|
||||
:prefixOptions="prefixOptions"
|
||||
v-model:form="formContact"
|
||||
:isStatusRegister="isStatusRegister"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<q-separator class="q-my-lg bg-gray" size="5px" />
|
||||
|
|
@ -91,6 +108,10 @@ const props = defineProps({
|
|||
formContact: {
|
||||
type: Object,
|
||||
required: true
|
||||
},
|
||||
isStatusRegister: {
|
||||
type: Boolean,
|
||||
required: true
|
||||
}
|
||||
})
|
||||
const emit = defineEmits([
|
||||
|
|
@ -111,6 +132,7 @@ const prefixOptions = ref<DataOption[]>([])
|
|||
const religionOptions = ref<DataOption[]>([])
|
||||
const provinceOptions = ref<DataOption[]>([])
|
||||
const educationLevelOptions = ref<DataOption[]>([])
|
||||
const educationLevelHigherOptions = ref<DataOption[]>([])
|
||||
const formInformation = ref<any>({})
|
||||
const formAddress = ref<any>({})
|
||||
const formEducation = ref<any>({})
|
||||
|
|
@ -166,6 +188,8 @@ const fetchPerson = async () => {
|
|||
provinceOptions.value = optionProvince
|
||||
|
||||
let optionEducationLevel: DataOption[] = []
|
||||
let optionEducationLevelHigher: DataOption[] = []
|
||||
|
||||
let filterEducationLevels = data.educationLevels
|
||||
|
||||
if (examStore.educationLevel === 'BACHELOR') {
|
||||
|
|
@ -179,7 +203,12 @@ const fetchPerson = async () => {
|
|||
filterEducationLevels.map((r: any) => {
|
||||
optionEducationLevel.push({ id: r.id.toString(), name: r.name.toString() })
|
||||
})
|
||||
|
||||
data.educationLevels.map((r: any) => {
|
||||
optionEducationLevelHigher.push({ id: r.id.toString(), name: r.name.toString() })
|
||||
})
|
||||
educationLevelOptions.value = optionEducationLevel
|
||||
educationLevelHigherOptions.value = optionEducationLevelHigher
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue