From ae61586f95d544882c0e6c42600d0f244478edd8 Mon Sep 17 00:00:00 2001 From: feng <1304903146@qq.com> Date: Wed, 18 Oct 2023 18:43:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=91=BD=E4=BB=A4=E8=BF=87=E6=BB=A4?= =?UTF-8?q?=EF=BC=8C=E7=82=B9=E5=87=BB=E5=91=BD=E4=BB=A4=E7=BB=84=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E5=88=B0=E4=BA=86=E8=A7=84=E5=88=99=E5=9F=BA=E6=9C=AC?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=EF=BC=8C=E8=80=8C=E4=B8=8D=E6=98=AF=E5=91=BD?= =?UTF-8?q?=E4=BB=A4=E7=BB=84=E9=82=A3=E9=87=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CommandFilterAcl/CommandFilterAclList.vue | 11 +++++++++-- .../acl/CommandAcl/CommandGroup/CommandGroupList.vue | 4 +++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/views/acl/CommandAcl/CommandFilterAcl/CommandFilterAclList.vue b/src/views/acl/CommandAcl/CommandFilterAcl/CommandFilterAclList.vue index 4d8eb1e10..bdba4d16d 100644 --- a/src/views/acl/CommandAcl/CommandFilterAcl/CommandFilterAclList.vue +++ b/src/views/acl/CommandAcl/CommandFilterAcl/CommandFilterAclList.vue @@ -44,8 +44,15 @@ export default { width: '160px', formatter: AmountFormatter, formatterArgs: { - routeQuery: { - activeTab: 'GroupUser' + route: 'AccountGatherList', + getRoute({ row }) { + return { + name: 'CommandFilterAclList', + query: { + activeTab: 'CommandGroup', + command_filters: row.id + } + } } } } diff --git a/src/views/acl/CommandAcl/CommandGroup/CommandGroupList.vue b/src/views/acl/CommandAcl/CommandGroup/CommandGroupList.vue index e9d9eb6fa..899c93fb7 100644 --- a/src/views/acl/CommandAcl/CommandGroup/CommandGroupList.vue +++ b/src/views/acl/CommandAcl/CommandGroup/CommandGroupList.vue @@ -11,9 +11,11 @@ export default { ListTable }, data() { + const _id = this.$route.query.command_filters + const url = `/api/v1/acls/command-groups/${_id ? `?command_filters=${_id}` : ''}` return { tableConfig: { - url: '/api/v1/acls/command-groups/', + url: url, permissions: { app: 'acls', resource: 'commandgroup'