mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-19 01:11:07 +00:00
perf: 修改 change auth plan (#1561)
* perf: 修改 change auth plan * perf: 还原 Co-authored-by: ibuler <ibuler@qq.com>
This commit is contained in:
@@ -125,7 +125,7 @@ export default {
|
|||||||
value: attr
|
value: attr
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (routerSearchAttrs.length === 0) {
|
if (routerSearchAttrs.length !== 0) {
|
||||||
delete routeFilter.search
|
delete routeFilter.search
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -17,14 +17,21 @@ export default {
|
|||||||
const vm = this
|
const vm = this
|
||||||
return {
|
return {
|
||||||
tableConfig: {
|
tableConfig: {
|
||||||
|
permissions: {
|
||||||
|
'app': 'xpack',
|
||||||
|
'resource': 'applicationchangeauthplan'
|
||||||
|
},
|
||||||
url: '/api/v1/xpack/change-auth-plan/app-plan/',
|
url: '/api/v1/xpack/change-auth-plan/app-plan/',
|
||||||
columns: [
|
columns: [
|
||||||
'name', 'password_strategy_display',
|
'name', 'password_strategy_display', 'is_periodic', 'periodic_display',
|
||||||
'is_periodic', 'periodic_display', 'run_times', 'comment', 'org_name', 'actions'
|
'run_times', 'comment', 'org_name', 'actions'
|
||||||
],
|
],
|
||||||
columnsShow: {
|
columnsShow: {
|
||||||
min: ['name', 'actions'],
|
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: {
|
columnsMeta: {
|
||||||
name: {
|
name: {
|
||||||
|
@@ -25,6 +25,10 @@ export default {
|
|||||||
const vm = this
|
const vm = this
|
||||||
return {
|
return {
|
||||||
tableConfig: {
|
tableConfig: {
|
||||||
|
permissions: {
|
||||||
|
app: 'ops',
|
||||||
|
resource: 'commandexecution'
|
||||||
|
},
|
||||||
url: '/api/v1/audits/command-execution-logs/',
|
url: '/api/v1/audits/command-execution-logs/',
|
||||||
columns: [
|
columns: [
|
||||||
'hosts', 'user', 'command', 'run_as', 'result', 'is_finished',
|
'hosts', 'user', 'command', 'run_as', 'result', 'is_finished',
|
||||||
|
Reference in New Issue
Block a user