perf: update accout check

This commit is contained in:
ibuler
2024-11-01 18:04:53 +08:00
parent 9271cb2e1a
commit a1bc8ac5bc
12 changed files with 50 additions and 32 deletions

View File

@@ -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('账号会话'),

View File

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

View 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>

View File

@@ -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')
}
]
}