perf: 走查问题调整

This commit is contained in:
rd
2025-08-29 12:03:04 +08:00
parent 83d11f1f53
commit 98d7adc550
23 changed files with 289 additions and 156 deletions

View File

@ -1,9 +1,11 @@
import { GROUP_WRITER_NAME } from '@/router/routes/modules/materialCenter-writer';
export const GROUP_WRITER_NAME = 'GroupWriterMaterialCenter';
export const GROUP_MANAGEMENT_NAME = 'GroupManagement';
export const GROUP_MAIN_NAME = 'GroupMain';
export interface typeMenuItem {
key?: string | number; // 菜单组key
label?: string; // 菜单组标题
icon?: string; // 菜单组图标
icon?: string | [string, string]; // 菜单组图标
routeName?: string; // 路由名称
requireLogin?: boolean; // 是否需要登录
requireAuth?: boolean; // 是否需要权限验证
@ -12,11 +14,11 @@ export interface typeMenuItem {
}
export const MENU_LIST = <Record<string, typeMenuItem[]>>{
GroupMain: [
[GROUP_MAIN_NAME]: [
{
key: 'ModAccountManage',
label: '账号管理',
icon: 'svg-accountManage',
icon: ['svg-accountManage', 'svg-accountManage-active'],
children: [
{
key: 'ModMediaAccountManage',
@ -34,44 +36,44 @@ export const MENU_LIST = <Record<string, typeMenuItem[]>>{
requireLogin: true,
activeMatch: ['MediaAccountAccountDashboard', 'MediaAccountAccountDetails'],
},
{
key: 'ModPutAccountManage',
icon: 'svg-putAccountManage',
label: '账户管理',
routeName: 'PutAccountAccountManagement',
requireLogin: true,
activeMatch: ['PutAccountAccountManagement'],
},
{
key: 'ModPutAccountData',
icon: 'svg-putAccountData',
label: '账户数据',
routeName: 'PutAccountAccountData',
requireLogin: true,
activeMatch: ['PutAccountAccountData'],
},
{
key: 'ModPutAccountAccountDashboard',
icon: 'svg-putAccountAccountDashboard',
label: '投放表现分析',
routeName: 'PutAccountAccountDashboard',
requireLogin: true,
activeMatch: ['PutAccountAccountDashboard'],
},
{
key: 'ModInvestmentGuidelines',
icon: 'svg-putAccountInvestmentGuidelines',
label: '投放指南',
routeName: 'PutAccountInvestmentGuidelines',
requireLogin: true,
activeMatch: ['PutAccountInvestmentGuidelines', 'PutAccountInvestmentGuidelinesDetail'],
},
// {
// key: 'ModPutAccountManage',
// icon: 'svg-putAccountManage',
// label: '账户管理',
// routeName: 'PutAccountAccountManagement',
// requireLogin: true,
// activeMatch: ['PutAccountAccountManagement'],
// },
// {
// key: 'ModPutAccountData',
// icon: 'svg-putAccountData',
// label: '账户数据',
// routeName: 'PutAccountAccountData',
// requireLogin: true,
// activeMatch: ['PutAccountAccountData'],
// },
// {
// key: 'ModPutAccountAccountDashboard',
// icon: 'svg-putAccountAccountDashboard',
// label: '投放表现分析',
// routeName: 'PutAccountAccountDashboard',
// requireLogin: true,
// activeMatch: ['PutAccountAccountDashboard'],
// },
// {
// key: 'ModInvestmentGuidelines',
// icon: 'svg-putAccountInvestmentGuidelines',
// label: '投放指南',
// routeName: 'PutAccountInvestmentGuidelines',
// requireLogin: true,
// activeMatch: ['PutAccountInvestmentGuidelines', 'PutAccountInvestmentGuidelinesDetail'],
// },
],
},
{
key: 'ModMaterialCenter',
label: '素材中心',
icon: 'svg-materialCenter',
icon: ['svg-materialCenter', 'svg-materialCenter-active'],
children: [
{
key: 'ModMaterialCenterFinishedProductsWareHouse',
@ -101,7 +103,7 @@ export const MENU_LIST = <Record<string, typeMenuItem[]>>{
{
key: 'ModTaskManage',
label: '任务管理',
icon: 'svg-taskManage',
icon: ['svg-taskManage', 'svg-taskManage-active'],
routeName: 'TaskManagement',
},
],
@ -137,4 +139,39 @@ export const MENU_LIST = <Record<string, typeMenuItem[]>>{
],
},
],
[GROUP_MANAGEMENT_NAME]:[
{
key: 'ModManagement',
label: '管理中心',
icon: ['svg-management', 'svg-management-active'],
children: [
{
key: 'ModManagementPerson',
icon: 'svg-managementPerson',
label: '个人信息',
routeName: 'ManagementPerson',
requireLogin: true,
activeMatch: [
'ManagementPerson',
],
},
{
key: 'ModManagementEnterprise',
icon: 'svg-managementEnterprise',
label: '企业信息',
routeName: 'ManagementEnterprise',
requireLogin: true,
activeMatch: ['ManagementEnterprise'],
},
{
key: 'ModManagementAccount',
icon: 'svg-managementAccount',
label: '账号管理',
routeName: 'ManagementAccount',
requireLogin: true,
activeMatch: ['ManagementAccount'],
},
],
}
]
};