bug
This commit is contained in:
		| @@ -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(',') | ||||
|           } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user