From 6577e406a467e882f03a7e263cffc1468f627785 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Tue, 18 Oct 2022 15:13:33 +0800 Subject: [PATCH] bug --- .../components/Detail.vue | 60 +++++++++++++++---- 1 file changed, 49 insertions(+), 11 deletions(-) diff --git a/project/pingchang/apps/AppBayonetRegistration/components/Detail.vue b/project/pingchang/apps/AppBayonetRegistration/components/Detail.vue index ae445d70..4f0e41b5 100644 --- a/project/pingchang/apps/AppBayonetRegistration/components/Detail.vue +++ b/project/pingchang/apps/AppBayonetRegistration/components/Detail.vue @@ -86,28 +86,39 @@ - + + + + @@ -141,6 +177,7 @@ currIndex: 0, isLoading: false, tableData: [], + communityInfo: {}, colConfigs: [ {prop: 'name', label: '姓名', align: 'center' }, {prop: 'phone', label: '手机号', align: 'center'} @@ -165,7 +202,8 @@ this.instance.post(`/app/appepidemicpreventionregisterinfo/queryDetailById?id=${id}`).then(res => { if (res.code === 0) { this.info = res.data - this.info.checkPhoto = res.data.checkPhoto ? JSON.parse(res.data.checkPhoto) : [] + this.info.communityHandleType = res.data.communityHandleType.filter(v => !v.communityHandleType) + this.communityInfo = res.data.communityHandleType.filter(v => v.communityHandleType).length ? res.data.communityHandleType.filter(v => v.communityHandleType)[0] : {} this.info.travelTypeNames = res.data.travelType.split(',').map(v => { return this.dict.getLabel('EP_travelType', v)