Merge pull request #3443 from jumpserver/pr@dev@command_filter_acl

fix: 命令过滤,点击命令组跳转到了规则基本信息,而不是命令组那里
This commit is contained in:
feng626
2023-10-18 18:46:28 +08:00
committed by GitHub
2 changed files with 12 additions and 3 deletions

View File

@@ -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
}
}
}
}
}

View File

@@ -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'