From d14528b9e1c13c20c30fde970f4b0d92201d6c7a Mon Sep 17 00:00:00 2001 From: jiangyy Date: Tue, 10 Jan 2023 10:37:19 +0800 Subject: [PATCH] 11 --- src/views/modules/base/communityYantai/community.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/views/modules/base/communityYantai/community.vue b/src/views/modules/base/communityYantai/community.vue index 250bf2de0..aa8a2889b 100644 --- a/src/views/modules/base/communityYantai/community.vue +++ b/src/views/modules/base/communityYantai/community.vue @@ -228,7 +228,8 @@ export default { openNodes: [], defaultProps: { children: 'children', - label: 'showName' + label: 'showName', + isLeaf: 'isLeaf' }, orgOptions: [], orgOptionProps: { @@ -371,6 +372,12 @@ export default { const { data, code, msg } = await requestPost(url, params) if (code === 0) { + data.forEach(element => { + if (element.level === 'building') { + element.isLeaf = true + } + }); + console.log(data) resolve(data) } else {