This commit is contained in:
shijingjing
2022-04-29 19:35:33 +08:00
parent 352843b9be
commit e631b90569
2 changed files with 12 additions and 3 deletions

View File

@@ -631,9 +631,12 @@ export default {
}, },
submit() { submit() {
if(!this.isEdit) {
if (!this.form.riskType) { if (!this.form.riskType) {
return this.$u.toast('请选择风险因素') return this.$u.toast('请选择风险因素')
} }
}
this.basicsCheckList.map((item, index) => { this.basicsCheckList.map((item, index) => {
if (item.checked) { if (item.checked) {

View File

@@ -515,7 +515,6 @@ export default {
this.namelist.splice(index, 1) this.namelist.splice(index, 1)
} }
}) })
} }
this.form.healthyStatus = this.namelist.map(v => v.dictValue).join(',') this.form.healthyStatus = this.namelist.map(v => v.dictValue).join(',')
}, },
@@ -537,6 +536,13 @@ export default {
} else { } else {
this.form.files = [] this.form.files = []
} }
res.data.healthyStatusList = res.data.healthyStatus.split(',')
res.data.healthyStatusList.map((item) => {
this.helthList.map(items => {
items.checked = item == items.dictValue
})
})
} }
}) })
}, },