防返贫
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user