This commit is contained in:
liuye
2022-04-25 15:39:32 +08:00
parent 9521730bae
commit f0e3aaa3ab
4 changed files with 113 additions and 50 deletions

View File

@@ -304,7 +304,12 @@ export default {
params: {id}
}).then(res => {
if (res?.data) {
this.form = res.data
res.data.healthyStatusList = []
if(res.data.healthyStatus) {
res.data.healthyStatusList = res.data.healthyStatus.split(',')
}
this.form = {...res.data}
console.log(res.data)
}
})
},
@@ -315,6 +320,8 @@ export default {
submit() {
this.$refs.ruleForm.validate(v => {
if (v) {
this.form.isHousehold = 1
this.form.householdIdNumber = this.form.idNumber
if (this.form.healthyStatusList.length) {
this.form.healthyStatus = this.form.healthyStatusList.join(',')
}