mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-13 19:35:24 +00:00
Merge pull request #3443 from jumpserver/pr@dev@command_filter_acl
fix: 命令过滤,点击命令组跳转到了规则基本信息,而不是命令组那里
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user