From 13cd4ebad579580c253b062e389c57adde82f1d2 Mon Sep 17 00:00:00 2001 From: piexlmax <303176530@qq.com> Date: Wed, 29 Dec 2021 23:49:01 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=92=E8=89=B2=E7=AE=A1=E7=90=86setup?= =?UTF-8?q?=E6=94=B9=E9=80=A0=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../view/superAdmin/authority/authority.vue | 471 +++++++++--------- .../superAdmin/authority/components/apis.vue | 164 +++--- .../superAdmin/authority/components/datas.vue | 175 ++++--- .../superAdmin/authority/components/menus.vue | 143 +++--- 4 files changed, 500 insertions(+), 453 deletions(-) diff --git a/web/src/view/superAdmin/authority/authority.vue b/web/src/view/superAdmin/authority/authority.vue index ad7554b3..d36fae37 100644 --- a/web/src/view/superAdmin/authority/authority.vue +++ b/web/src/view/superAdmin/authority/authority.vue @@ -31,7 +31,7 @@ icon="copy-document" size="mini" type="text" - @click="copyAuthority(scope.row)" + @click="copyAuthorityFunc(scope.row)" >拷贝 - + + diff --git a/web/src/view/superAdmin/authority/components/apis.vue b/web/src/view/superAdmin/authority/components/apis.vue index af7cc14e..9049498b 100644 --- a/web/src/view/superAdmin/authority/components/apis.vue +++ b/web/src/view/superAdmin/authority/components/apis.vue @@ -16,58 +16,64 @@ /> - - this.apiTreeData = this.buildApiTree(apis) - const res = await getPolicyPathByAuthorityId({ - authorityId: this.row.authorityId - }) - this.activeUserId = this.row.authorityId - this.apiTreeIds = [] - res.data.paths && res.data.paths.forEach(item => { - this.apiTreeIds.push('p:' + item.path + 'm:' + item.method) - }) - }, - methods: { - nodeChange() { - this.needConfirm = true - }, - // 暴露给外层使用的切换拦截统一方法 - enterAndNext() { - this.authApiEnter() + diff --git a/web/src/view/superAdmin/authority/components/datas.vue b/web/src/view/superAdmin/authority/components/datas.vue index 82be9c72..1cd78039 100644 --- a/web/src/view/superAdmin/authority/components/datas.vue +++ b/web/src/view/superAdmin/authority/components/datas.vue @@ -14,94 +14,105 @@ + + diff --git a/web/src/view/superAdmin/authority/components/menus.vue b/web/src/view/superAdmin/authority/components/menus.vue index 02410496..ccbc49a0 100644 --- a/web/src/view/superAdmin/authority/components/menus.vue +++ b/web/src/view/superAdmin/authority/components/menus.vue @@ -34,79 +34,90 @@ - + + -- GitLab