diff --git a/src/apps/AppMonitoringObject/Add.vue b/src/apps/AppMonitoringObject/Add.vue index abef1f75..fe697689 100644 --- a/src/apps/AppMonitoringObject/Add.vue +++ b/src/apps/AppMonitoringObject/Add.vue @@ -631,8 +631,11 @@ export default { }, submit() { - if (!this.form.riskType) { - return this.$u.toast('请选择风险因素') + + if(!this.isEdit) { + if (!this.form.riskType) { + return this.$u.toast('请选择风险因素') + } } this.basicsCheckList.map((item, index) => { diff --git a/src/apps/AppMonitoringObject/MonitorAddFamilyMember.vue b/src/apps/AppMonitoringObject/MonitorAddFamilyMember.vue index c81e96b0..5fc23cf2 100644 --- a/src/apps/AppMonitoringObject/MonitorAddFamilyMember.vue +++ b/src/apps/AppMonitoringObject/MonitorAddFamilyMember.vue @@ -515,7 +515,6 @@ export default { this.namelist.splice(index, 1) } }) - } this.form.healthyStatus = this.namelist.map(v => v.dictValue).join(',') }, @@ -537,6 +536,13 @@ export default { } else { this.form.files = [] } + + res.data.healthyStatusList = res.data.healthyStatus.split(',') + res.data.healthyStatusList.map((item) => { + this.helthList.map(items => { + items.checked = item == items.dictValue + }) + }) } }) },