fixed edu_level null string bug
This commit is contained in:
@@ -1719,10 +1719,10 @@ export default {
|
||||
this.flags = {gender: record.proposal.gender, marriage_sts: record.proposal.marriage_sts,}
|
||||
|
||||
record.personal_details.education.forEach((item) => {
|
||||
item.level = typeof item.level == 'number' ? `${item.level}` : item.level
|
||||
item.level = ['number'].includes(typeof item.level) ? `${item.level}` : item.level
|
||||
})
|
||||
record.personal_details.family.forEach((item) => {
|
||||
item.edu_level = typeof item.edu_level == 'number' ? `${item.edu_level}` : item.edu_level
|
||||
item.edu_level = ['number'].includes(typeof item.edu_level) ? `${item.edu_level}` : item.edu_level
|
||||
})
|
||||
// personal_details.family[${index}].edu_level
|
||||
this.$nextTick(() => {
|
||||
@@ -1797,6 +1797,7 @@ export default {
|
||||
}
|
||||
},
|
||||
async created() {
|
||||
await this.getPersonal()
|
||||
try {
|
||||
this.loading = true
|
||||
const {data} = await axios.get('/get-category')
|
||||
@@ -1811,7 +1812,6 @@ export default {
|
||||
|
||||
await this.getTypes()
|
||||
await this.getUnits()
|
||||
await this.getPersonal()
|
||||
await this.getGrad()
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user