From fc7f59bcd94cebfcc3b2a1278984a3bb7b39edaa Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期二, 22 十月 2024 18:12:20 +0800 Subject: [PATCH] 功能模板树节点操作后局部刷新 --- Source/plt-web/plt-web-ui/src/views/authority/ui/uiAuthorization/index.vue | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 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 accfede..4c265d2 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 @@ -256,25 +256,25 @@ } }) - const parentData = selectParentList.map(item => { - return { - checked: false, - expanded: true, - data:item.data, - level: item.level, - oid: item.oid, - text: item.text - } - }) - // 鍦ㄥ崐閫夌姸鎬佷腑杩囨护鎺夐《绾ц妭鐐� oid 涓� root - const filterSelectTreeData = parentData.filter(item => item.oid !== 'root'); + // const parentData = selectParentList.map(item => { + // return { + // checked: false, + // expanded: true, + // data:item.data, + // level: item.level, + // oid: item.oid, + // text: item.text + // } + // }) + // // 鍦ㄥ崐閫夌姸鎬佷腑杩囨护鎺夐《绾ц妭鐐� oid 涓� root + // const filterSelectTreeData = parentData.filter(item => item.oid !== 'root'); - const data = [...filterSelectTreeData,...selectTreeData]; + const data = [...selectTreeData]; const formData = { roleId: this.nodeRow.oid, type: this.type, context: this.context, - selectTreeList: data + selectTreeList: selectTreeList } authorizedUI(formData).then(res => { if (res.data.success) { -- Gitblit v1.9.3