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() + }) } }) },