From e8f736fce824800f44c10dd827778f27e700b4dc Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Sat, 7 May 2022 18:50:28 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B2=E8=BF=94=E8=B4=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppMonitoringObject/Add.vue | 34 +++++++++------- .../AppMonitoringObject/MonitorIncome.vue | 40 ++++++++++++------- 2 files changed, 45 insertions(+), 29 deletions(-) diff --git a/src/apps/AppMonitoringObject/Add.vue b/src/apps/AppMonitoringObject/Add.vue index 9979fc90..6eb0093a 100644 --- a/src/apps/AppMonitoringObject/Add.vue +++ b/src/apps/AppMonitoringObject/Add.vue @@ -711,20 +711,26 @@ export default { getInfo(id) { this.$http.post(`/app/apppreventionreturntopoverty/queryDetailById?id=${id}`).then(res => { if (res?.data) { - res.data.basicsCheckList = res.data.basicsCheck.split(',') - res.data.basicsCheckList.map((item, index) => { - this.basicsCheckList[index].checked = true - }) - res.data.guaranteeCheckList = res.data.guaranteeCheck.split(',') - res.data.guaranteeCheckList.map((item, index) => { - this.guaranteeCheckList[index].checked = true - }) - - res.data.healthyStatusList = res.data.healthyStatus.split(',') - this.helthList.map(items => { - items.checked = res.data.healthyStatusList.includes(items.dictValue) - }) - + if(res.data.basicsCheckList) { + res.data.basicsCheckList = res.data.basicsCheck.split(',') + res.data.basicsCheckList.map((item, index) => { + this.basicsCheckList[index].checked = true + }) + } + if(res.data.guaranteeCheckLis) { + res.data.guaranteeCheckList = res.data.guaranteeCheck.split(',') + res.data.guaranteeCheckList.map((item, index) => { + this.guaranteeCheckList[index].checked = true + }) + } + + if(res.data.healthyStatusList) { + res.data.healthyStatusList = res.data.healthyStatus.split(',') + this.helthList.map(items => { + items.checked = res.data.healthyStatusList.includes(items.dictValue) + }) + } + this.form = { ...this.form, ...res.data } if (this.form.photo) { diff --git a/src/apps/AppMonitoringObject/MonitorIncome.vue b/src/apps/AppMonitoringObject/MonitorIncome.vue index 53c56882..6437d5db 100644 --- a/src/apps/AppMonitoringObject/MonitorIncome.vue +++ b/src/apps/AppMonitoringObject/MonitorIncome.vue @@ -7,7 +7,7 @@ 工资性收入(元)