perf: 修改 change auth plan (#1561)

* perf: 修改 change auth plan

* perf: 还原

Co-authored-by: ibuler <ibuler@qq.com>
This commit is contained in:
fit2bot
2022-03-17 16:41:00 +08:00
committed by GitHub
parent 79d0144ea0
commit fc9b09f5fd
3 changed files with 15 additions and 4 deletions

View File

@@ -125,7 +125,7 @@ export default {
value: attr
}
}
if (routerSearchAttrs.length === 0) {
if (routerSearchAttrs.length !== 0) {
delete routeFilter.search
}

View File

@@ -17,14 +17,21 @@ export default {
const vm = this
return {
tableConfig: {
permissions: {
'app': 'xpack',
'resource': 'applicationchangeauthplan'
},
url: '/api/v1/xpack/change-auth-plan/app-plan/',
columns: [
'name', 'password_strategy_display',
'is_periodic', 'periodic_display', 'run_times', 'comment', 'org_name', 'actions'
'name', 'password_strategy_display', 'is_periodic', 'periodic_display',
'run_times', 'comment', 'org_name', 'actions'
],
columnsShow: {
min: ['name', 'actions'],
default: ['name', 'password_strategy_display', 'is_periodic', 'periodic_display', 'run_times', 'actions']
default: [
'name', 'password_strategy_display', 'is_periodic',
'periodic_display', 'run_times', 'actions'
]
},
columnsMeta: {
name: {

View File

@@ -25,6 +25,10 @@ export default {
const vm = this
return {
tableConfig: {
permissions: {
app: 'ops',
resource: 'commandexecution'
},
url: '/api/v1/audits/command-execution-logs/',
columns: [
'hosts', 'user', 'command', 'run_as', 'result', 'is_finished',