From 11306fe579d9c54c74091e2296e55ee3411b3f18 Mon Sep 17 00:00:00 2001 From: dangsn <dangsn@chicecm.com> Date: 星期五, 15 十一月 2024 09:49:37 +0800 Subject: [PATCH] 补充UI测试接口 --- Source/plt-web/plt-web-ui/src/views/authority/ui/uiAuthorization/index.vue | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/Source/plt-web/plt-web-ui/src/views/authority/ui/uiAuthorization/index.vue b/Source/plt-web/plt-web-ui/src/views/authority/ui/uiAuthorization/index.vue index 4214755..a77bb26 100644 --- a/Source/plt-web/plt-web-ui/src/views/authority/ui/uiAuthorization/index.vue +++ b/Source/plt-web/plt-web-ui/src/views/authority/ui/uiAuthorization/index.vue @@ -250,22 +250,30 @@ checked: true, expanded: true, data:item.data, + parentId:item.parentId, level: item.level, + leaf:item.leaf, oid: item.oid, text: item.text } }) + const parentData = selectParentList.map(item => { return { checked: false, expanded: true, data:item.data, + parentId:item.parentId, level: item.level, + leaf:item.leaf, oid: item.oid, text: item.text } }) - const data = [...parentData,...selectTreeData]; + // 鍦ㄥ崐閫夌姸鎬佷腑杩囨护鎺夐《绾ц妭鐐� oid 涓� root + const filterSelectTreeData = parentData.filter(item => item.oid !== 'root'); + + const data = [...selectTreeData,...filterSelectTreeData]; const formData = { roleId: this.nodeRow.oid, type: this.type, -- Gitblit v1.9.3