Skip to content

Commit

Permalink
perf: update accout check
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuler committed Nov 1, 2024
1 parent 9271cb2 commit a1bc8ac
Show file tree
Hide file tree
Showing 12 changed files with 50 additions and 32 deletions.
2 changes: 1 addition & 1 deletion src/router/pam/activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('账号会话'),
Expand Down
28 changes: 1 addition & 27 deletions src/router/pam/security.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('账号检查'),
Expand All @@ -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 changes: 44 additions & 0 deletions src/views/pam/AccountCheck/AccountCheckEngine.vue
Original file line number Diff line number Diff line change
@@ -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>
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
]
}
Expand Down

0 comments on commit a1bc8ac

Please sign in to comment.