mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-13 11:24:17 +00:00
perf: update accout check
This commit is contained in:
@@ -15,7 +15,7 @@ export default [
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
component: () => import('@/views/pam/AccountScan/index.vue'),
|
||||
component: () => import('@/views/pam/AccountCheck/index.vue'),
|
||||
name: 'AccountPushList',
|
||||
meta: {
|
||||
title: i18n.t('账号会话'),
|
||||
|
||||
@@ -18,7 +18,7 @@ export default [
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
component: () => import('@/views/pam/AccountScan/index.vue'),
|
||||
component: () => import('@/views/pam/AccountCheck/index.vue'),
|
||||
name: 'AccountPushList',
|
||||
meta: {
|
||||
title: i18n.t('账号检查'),
|
||||
@@ -27,31 +27,5 @@ export default [
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'risk',
|
||||
name: 'AccountRisk',
|
||||
component: empty,
|
||||
redirect: {
|
||||
name: 'AccountPushList'
|
||||
},
|
||||
meta: {
|
||||
app: 'accounts',
|
||||
name: 'BaseAccountRisk',
|
||||
icon: 'accounts',
|
||||
resource: 'pushaccountautomation'
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
component: () => import('@/views/accounts/AccountPush/index.vue'),
|
||||
name: 'AccountPushList',
|
||||
meta: {
|
||||
title: i18n.t('风险分析'),
|
||||
menuTitle: i18n.t('风险分析'),
|
||||
permissions: ['accounts.view_pushaccountautomation']
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
44
src/views/pam/AccountCheck/AccountCheckEngine.vue
Normal file
44
src/views/pam/AccountCheck/AccountCheckEngine.vue
Normal file
@@ -0,0 +1,44 @@
|
||||
<template>
|
||||
<GenericListTable ref="listTable" :header-actions="headerActions" :table-config="tableConfig" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { DetailFormatter } from '@/components/Table/TableFormatters'
|
||||
import { GenericListTable } from '@/layout/components'
|
||||
|
||||
export default {
|
||||
name: 'AccountPushList',
|
||||
components: {
|
||||
GenericListTable
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
tableConfig: {
|
||||
url: '/api/v1/accounts/account-check-engines/',
|
||||
columns: [
|
||||
'name', 'display_name', 'description'
|
||||
],
|
||||
columnsShow: {
|
||||
min: ['name', 'actions'],
|
||||
default: [
|
||||
'name', 'display_name', 'description', 'actions'
|
||||
]
|
||||
},
|
||||
columnsMeta: {
|
||||
name: {
|
||||
formatter: DetailFormatter
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
formatterArgs: {}
|
||||
}
|
||||
},
|
||||
headerActions: {
|
||||
hasRefresh: true,
|
||||
hasExport: false,
|
||||
hasImport: false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -23,15 +23,15 @@ export default {
|
||||
},
|
||||
{
|
||||
title: this.$t('检查任务'),
|
||||
name: 'AccountPushExecutionList',
|
||||
name: 'AccountCheckTask',
|
||||
hidden: !this.$hasPerm('accounts.view_pushaccountexecution'),
|
||||
component: () => import('@/views/accounts/AccountPush/AccountPushExecutionList.vue')
|
||||
},
|
||||
{
|
||||
title: this.$t('检查引擎'),
|
||||
name: 'AccountPushExecutionList',
|
||||
hidden: !this.$hasPerm('accounts.view_pushaccountexecution'),
|
||||
component: () => import('@/views/accounts/AccountPush/AccountPushExecutionList.vue')
|
||||
name: 'AccountCheckEngine',
|
||||
hidden: !this.$hasPerm('accounts.view_accountcheckautomation'),
|
||||
component: () => import('@/views/pam/AccountCheck/AccountCheckEngine.vue')
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user