Files
lingji-work-fe/src/stores/modules/side-bar/constants.ts

91 lines
2.5 KiB
TypeScript
Raw Normal View History

2025-07-07 18:17:31 +08:00
import { MENU_GROUP_IDS } from '@/router/constants';
export const MENU_LIST = [
{
id: MENU_GROUP_IDS.WORK_BENCH_ID,
name: '工作台',
2025-07-10 10:04:21 +08:00
routeName: 'Home',
includeRouteNames: ['Home'],
2025-07-08 16:55:04 +08:00
requiresAuth: false,
2025-07-07 18:17:31 +08:00
permissionKey: '', // 权限key如果为空则表示该菜单不需要权限与后端约定
},
{
id: MENU_GROUP_IDS.DATA_ENGINE_ID,
name: '全域数据分析',
permissionKey: 'data_analysis',
2025-07-08 16:55:04 +08:00
requiresAuth: true,
2025-07-07 18:17:31 +08:00
children: [
{
name: '行业热门话题洞察',
2025-07-10 10:04:21 +08:00
routeName: 'DataEngineHotTranslation',
includeRouteNames: ['DataEngineHotTranslation'],
2025-07-07 18:17:31 +08:00
},
{
name: '行业词云',
2025-07-10 10:04:21 +08:00
routeName: 'DataEngineHotCloud',
includeRouteNames: ['DataEngineHotCloud'],
2025-07-07 18:17:31 +08:00
},
{
name: '行业关键词动向',
2025-07-10 10:04:21 +08:00
routeName: 'DataEngineKeyWord',
includeRouteNames: ['DataEngineKeyWord'],
2025-07-07 18:17:31 +08:00
},
{
name: '用户痛点观察',
2025-07-10 10:04:21 +08:00
routeName: 'DataEngineUserPainPoints',
includeRouteNames: ['DataEngineUserPainPoints'],
2025-07-07 18:17:31 +08:00
},
{
name: '重点品牌动向',
2025-07-10 10:04:21 +08:00
routeName: 'DataEngineKeyBrandMovement',
includeRouteNames: ['DataEngineKeyBrandMovement'],
2025-07-07 18:17:31 +08:00
},
{
name: '用户画像',
2025-07-10 10:04:21 +08:00
routeName: 'DataEngineUserPersona',
includeRouteNames: ['DataEngineUserPersona'],
2025-07-07 18:17:31 +08:00
},
],
},
{
id: MENU_GROUP_IDS.PROPERTY_ID,
name: '营销资产中台',
permissionKey: 'marketing_asset',
2025-07-08 16:55:04 +08:00
requiresAuth: true,
2025-07-07 18:17:31 +08:00
children: [
{
name: '品牌资产管理',
2025-07-10 10:04:21 +08:00
routeName: 'RepositoryBrandMaterials',
includeRouteNames: ['RepositoryBrandMaterials'],
2025-07-07 18:17:31 +08:00
},
{
name: '账号资源中心',
2025-07-10 10:04:21 +08:00
routeName: 'MediaAccountAccountManagement',
includeRouteNames: [
'MediaAccountAccountManagement',
'MediaAccountAccountDashboard',
'MediaAccountAccountDetails',
],
2025-07-07 18:17:31 +08:00
},
{
name: '投放资源中心',
2025-07-10 10:04:21 +08:00
routeName: 'PutAccountAccountManagement',
includeRouteNames: [
2025-07-09 16:49:32 +08:00
'PutAccountAccountManagement',
2025-07-09 16:20:56 +08:00
'PutAccountAccountData',
'PutAccountAccountDashboard',
'PutAccountInvestmentGuidelines',
'guideDetail',
],
2025-07-07 18:17:31 +08:00
},
{
name: '智能方案管理',
2025-07-10 10:04:21 +08:00
routeName: 'IntelligentSolutionBusinessAnalysisReport',
includeRouteNames: [
'IntelligentSolutionBusinessAnalysisReport',
'IntelligentSolutionCompetitiveProductAnalysisReport',
],
2025-07-07 18:17:31 +08:00
},
],
},
];