From d662e2dc7597b922567c2887add106eadb35a44c Mon Sep 17 00:00:00 2001 From: liuye Date: Tue, 9 May 2023 10:32:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E4=B8=8A=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/wuxi/app/AppReportAiWill/components/Detail.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/project/wuxi/app/AppReportAiWill/components/Detail.vue b/project/wuxi/app/AppReportAiWill/components/Detail.vue index 0583f121..a2542205 100644 --- a/project/wuxi/app/AppReportAiWill/components/Detail.vue +++ b/project/wuxi/app/AppReportAiWill/components/Detail.vue @@ -236,9 +236,15 @@ export default { }, getGirdList() { - return this.instance.post(`/app/appgirdinfo/listAllByTop`).then(res => { + return this.instance.post(`/app/appresidentreportinfo/listGirdInfoByTransfer?id=${this.$route.query.id}`).then(res => { if (res?.data) { - return this.tree = this.formatList([res.data]) + // return this.tree = this.formatList([res.data]) + this.tree = res.data + this.tree.map((item) => { + item.children = [item.girdMemberList?.map(e => ({ + ...e, isUser: true, girdName: item.girdName + })) || []].flat() + }) } }) },