This commit is contained in:
@@ -2,6 +2,7 @@ import { RoutesAlias } from '../routesAlias'
|
||||
import { AppRouteRecord } from '@/types/router'
|
||||
import { BULK_PURCHASE_PERMISSIONS } from '@/config/constants/bulkPurchase'
|
||||
import { JULY_PERMISSIONS } from '@/config/constants/julyIteration'
|
||||
import { AUDIT_PERMISSIONS } from '@/config/constants/audit'
|
||||
|
||||
/**
|
||||
* 菜单列表、异步路由
|
||||
@@ -692,6 +693,72 @@ export const asyncRoutes: AppRouteRecord[] = [
|
||||
]
|
||||
},
|
||||
|
||||
// 审计中心
|
||||
{
|
||||
path: '/audit',
|
||||
name: 'AuditCenter',
|
||||
component: RoutesAlias.Home,
|
||||
meta: {
|
||||
title: '审计中心',
|
||||
icon: '',
|
||||
permissions: [AUDIT_PERMISSIONS.centerPage]
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: 'events',
|
||||
name: 'AuditEvents',
|
||||
component: RoutesAlias.AuditEvents,
|
||||
meta: {
|
||||
title: '审计事件',
|
||||
permissions: [AUDIT_PERMISSIONS.eventList],
|
||||
keepAlive: true
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'events/:eventId',
|
||||
name: 'AuditEventDetail',
|
||||
component: RoutesAlias.AuditEventDetail,
|
||||
meta: {
|
||||
title: '审计事件详情',
|
||||
permissions: [AUDIT_PERMISSIONS.eventDetail],
|
||||
isHide: true,
|
||||
keepAlive: false
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'risks',
|
||||
name: 'AuditRisks',
|
||||
component: RoutesAlias.AuditRisks,
|
||||
meta: {
|
||||
title: '风险中心',
|
||||
permissions: [AUDIT_PERMISSIONS.riskPage],
|
||||
keepAlive: true
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'integrations',
|
||||
name: 'AuditIntegrations',
|
||||
component: RoutesAlias.AuditIntegrations,
|
||||
meta: {
|
||||
title: '外部交互',
|
||||
permissions: [AUDIT_PERMISSIONS.integrationPage],
|
||||
keepAlive: true
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'integrations/:integrationId',
|
||||
name: 'AuditIntegrationDetail',
|
||||
component: RoutesAlias.AuditIntegrationDetail,
|
||||
meta: {
|
||||
title: '外部交互详情',
|
||||
permissions: [AUDIT_PERMISSIONS.integrationDetail],
|
||||
isHide: true,
|
||||
keepAlive: false
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
// 佣金管理
|
||||
{
|
||||
path: '/commission',
|
||||
|
||||
@@ -23,6 +23,13 @@ export enum RoutesAlias {
|
||||
CarrierManagement = '/system/carrier-management', // 运营商管理
|
||||
UserCenter = '/system/user-center', // 用户中心
|
||||
|
||||
// 审计中心
|
||||
AuditEvents = '/audit/events',
|
||||
AuditEventDetail = '/audit/events/detail',
|
||||
AuditRisks = '/audit/risks',
|
||||
AuditIntegrations = '/audit/integrations',
|
||||
AuditIntegrationDetail = '/audit/integrations/detail',
|
||||
|
||||
// 套餐管理
|
||||
PackageList = '/package-management/package-list', // 套餐列表
|
||||
PackageDetail = '/package-management/package-list/detail', // 套餐列表详情
|
||||
|
||||
Reference in New Issue
Block a user