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