2025-06-24 18:19:34 +08:00
|
|
|
/**
|
|
|
|
|
* 资产营销平台
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import type { AppRouteRecordRaw } from '../types';
|
|
|
|
|
import { MENU_GROUP_IDS } from '@/router/constants';
|
|
|
|
|
|
2025-07-07 15:02:04 +08:00
|
|
|
import IconRepository from '@/assets/svg/icon-repository.svg';
|
|
|
|
|
import IconMediaAccount from '@/assets/svg/icon-mediaAccount.svg';
|
|
|
|
|
import IconPutAccount from '@/assets/svg/icon-putAccount.svg';
|
|
|
|
|
import IconIntelligentSolution from '@/assets/svg/icon-intelligentSolution.svg';
|
|
|
|
|
|
2025-06-24 18:19:34 +08:00
|
|
|
const COMPONENTS: AppRouteRecordRaw[] = [
|
|
|
|
|
{
|
|
|
|
|
path: '/repository',
|
|
|
|
|
name: 'Repository',
|
|
|
|
|
redirect: 'repository/brandMaterials',
|
|
|
|
|
meta: {
|
2025-06-27 18:31:53 +08:00
|
|
|
locale: '品牌资产管理',
|
2025-07-07 15:02:04 +08:00
|
|
|
icon: IconRepository,
|
2025-06-24 18:19:34 +08:00
|
|
|
requiresAuth: true,
|
2025-07-08 16:55:04 +08:00
|
|
|
requireLogin: true,
|
2025-06-24 18:19:34 +08:00
|
|
|
roles: ['*'],
|
|
|
|
|
id: MENU_GROUP_IDS.PROPERTY_ID,
|
|
|
|
|
},
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: 'brandMaterials',
|
|
|
|
|
name: 'RepositoryBrandMaterials',
|
|
|
|
|
meta: {
|
2025-06-27 18:31:53 +08:00
|
|
|
locale: '品牌信息',
|
2025-06-24 18:19:34 +08:00
|
|
|
requiresAuth: true,
|
2025-07-08 16:55:04 +08:00
|
|
|
requireLogin: true,
|
2025-06-24 18:19:34 +08:00
|
|
|
roles: ['*'],
|
|
|
|
|
},
|
2025-06-27 18:31:53 +08:00
|
|
|
component: () => import('@/views/property-marketing/brands/brand-materials/index.vue'),
|
2025-06-24 18:19:34 +08:00
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/media-account',
|
|
|
|
|
name: 'MediaAccount',
|
|
|
|
|
redirect: 'media-account/accountManagement',
|
|
|
|
|
meta: {
|
2025-07-02 15:30:13 +08:00
|
|
|
locale: '账号资源中心',
|
2025-07-07 15:02:04 +08:00
|
|
|
icon: IconMediaAccount,
|
2025-06-24 18:19:34 +08:00
|
|
|
requiresAuth: true,
|
2025-07-08 16:55:04 +08:00
|
|
|
requireLogin: true,
|
2025-06-24 18:19:34 +08:00
|
|
|
roles: ['*'],
|
|
|
|
|
id: MENU_GROUP_IDS.PROPERTY_ID,
|
|
|
|
|
},
|
|
|
|
|
children: [
|
|
|
|
|
{
|
2025-06-28 11:31:49 +08:00
|
|
|
path: 'manage',
|
2025-06-24 18:19:34 +08:00
|
|
|
name: 'MediaAccountAccountManagement',
|
|
|
|
|
meta: {
|
|
|
|
|
locale: '账号管理',
|
|
|
|
|
requiresAuth: true,
|
2025-07-08 16:55:04 +08:00
|
|
|
requireLogin: true,
|
2025-06-24 18:19:34 +08:00
|
|
|
roles: ['*'],
|
|
|
|
|
},
|
2025-06-25 18:26:03 +08:00
|
|
|
component: () => import('@/views/property-marketing/media-account/account-manage'),
|
2025-06-24 18:19:34 +08:00
|
|
|
},
|
|
|
|
|
{
|
2025-06-28 11:31:49 +08:00
|
|
|
path: 'dashboard',
|
2025-06-24 18:19:34 +08:00
|
|
|
name: 'MediaAccountAccountDashboard',
|
|
|
|
|
meta: {
|
2025-06-27 18:37:42 +08:00
|
|
|
locale: '账号数据看板',
|
2025-06-24 18:19:34 +08:00
|
|
|
requiresAuth: true,
|
2025-07-08 16:55:04 +08:00
|
|
|
requireLogin: true,
|
2025-06-24 18:19:34 +08:00
|
|
|
roles: ['*'],
|
|
|
|
|
},
|
2025-06-27 18:37:42 +08:00
|
|
|
component: () => import('@/views/property-marketing/media-account/account-dashboard'),
|
2025-06-24 18:19:34 +08:00
|
|
|
},
|
|
|
|
|
{
|
2025-06-28 11:31:49 +08:00
|
|
|
path: 'detail/:id',
|
2025-06-24 18:19:34 +08:00
|
|
|
name: 'MediaAccountAccountDetails',
|
|
|
|
|
meta: {
|
|
|
|
|
locale: '账号详情',
|
|
|
|
|
requiresAuth: true,
|
2025-07-08 16:55:04 +08:00
|
|
|
requireLogin: true,
|
2025-06-24 18:19:34 +08:00
|
|
|
roles: ['*'],
|
2025-06-28 11:31:49 +08:00
|
|
|
hideInMenu: true,
|
|
|
|
|
activeMenu: 'MediaAccountAccountDashboard',
|
2025-06-24 18:19:34 +08:00
|
|
|
},
|
2025-06-28 11:31:49 +08:00
|
|
|
component: () => import('@/views/property-marketing/media-account/account-detail'),
|
2025-06-24 18:19:34 +08:00
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/put-account',
|
|
|
|
|
name: 'PutAccount',
|
|
|
|
|
redirect: 'put-account/accountManagement',
|
|
|
|
|
meta: {
|
2025-06-27 18:31:53 +08:00
|
|
|
locale: '投放资源中心',
|
2025-07-07 15:02:04 +08:00
|
|
|
icon: IconPutAccount,
|
2025-06-24 18:19:34 +08:00
|
|
|
requiresAuth: true,
|
2025-07-08 16:55:04 +08:00
|
|
|
requireLogin: true,
|
2025-06-24 18:19:34 +08:00
|
|
|
roles: ['*'],
|
|
|
|
|
id: MENU_GROUP_IDS.PROPERTY_ID,
|
|
|
|
|
},
|
|
|
|
|
children: [
|
|
|
|
|
{
|
2025-06-28 15:28:54 +08:00
|
|
|
path: 'manage',
|
2025-06-24 18:19:34 +08:00
|
|
|
name: 'PutAccountAccountManagement',
|
|
|
|
|
meta: {
|
2025-07-02 15:30:13 +08:00
|
|
|
locale: '账户管理',
|
2025-06-24 18:19:34 +08:00
|
|
|
requiresAuth: true,
|
2025-07-08 16:55:04 +08:00
|
|
|
requireLogin: true,
|
2025-06-24 18:19:34 +08:00
|
|
|
roles: ['*'],
|
|
|
|
|
},
|
2025-06-25 18:26:03 +08:00
|
|
|
component: () => import('@/views/property-marketing/put-account/account-manage'),
|
2025-06-24 18:19:34 +08:00
|
|
|
},
|
|
|
|
|
{
|
2025-06-28 15:28:54 +08:00
|
|
|
path: 'data',
|
2025-06-24 18:19:34 +08:00
|
|
|
name: 'PutAccountAccountData',
|
|
|
|
|
meta: {
|
2025-07-02 15:30:13 +08:00
|
|
|
locale: '账户数据',
|
2025-06-24 18:19:34 +08:00
|
|
|
requiresAuth: true,
|
2025-07-08 16:55:04 +08:00
|
|
|
requireLogin: true,
|
2025-06-24 18:19:34 +08:00
|
|
|
roles: ['*'],
|
|
|
|
|
},
|
2025-06-28 15:28:54 +08:00
|
|
|
component: () => import('@/views/property-marketing/put-account/account-data'),
|
2025-06-24 18:19:34 +08:00
|
|
|
},
|
|
|
|
|
{
|
2025-06-27 18:31:53 +08:00
|
|
|
path: 'account-dashboard',
|
2025-06-24 18:19:34 +08:00
|
|
|
name: 'PutAccountAccountDashboard',
|
|
|
|
|
meta: {
|
2025-06-27 18:31:53 +08:00
|
|
|
locale: '投放表现分析',
|
2025-06-24 18:19:34 +08:00
|
|
|
requiresAuth: true,
|
2025-07-08 16:55:04 +08:00
|
|
|
requireLogin: true,
|
2025-06-24 18:19:34 +08:00
|
|
|
roles: ['*'],
|
|
|
|
|
},
|
2025-06-27 18:31:53 +08:00
|
|
|
component: () => import('@/views/property-marketing/put-account/account-dashboard'),
|
2025-06-24 18:19:34 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'investmentGuidelines',
|
|
|
|
|
name: 'PutAccountInvestmentGuidelines',
|
|
|
|
|
meta: {
|
2025-07-07 20:59:54 +08:00
|
|
|
locale: '投放指南',
|
2025-06-24 18:19:34 +08:00
|
|
|
requiresAuth: true,
|
2025-07-08 16:55:04 +08:00
|
|
|
requireLogin: true,
|
2025-06-24 18:19:34 +08:00
|
|
|
roles: ['*'],
|
|
|
|
|
},
|
2025-06-27 16:26:03 +08:00
|
|
|
component: () => import('@/views/property-marketing/put-account/investment-guidelines'),
|
2025-06-24 18:19:34 +08:00
|
|
|
},
|
2025-07-07 20:59:54 +08:00
|
|
|
{
|
|
|
|
|
path: 'detail/:id',
|
|
|
|
|
name: 'guideDetail',
|
|
|
|
|
meta: {
|
|
|
|
|
locale: '投放指南详情',
|
|
|
|
|
requiresAuth: true,
|
|
|
|
|
hideInMenu: true,
|
|
|
|
|
roles: ['*'],
|
2025-07-08 16:55:03 +08:00
|
|
|
activeMenu: 'PutAccountInvestmentGuidelines',
|
2025-07-07 20:59:54 +08:00
|
|
|
},
|
|
|
|
|
component: () => import('@/views/property-marketing/put-account/investment-guidelines/detail'),
|
|
|
|
|
},
|
2025-06-24 18:19:34 +08:00
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/intelligent-solution',
|
|
|
|
|
name: 'IntelligentSolution',
|
|
|
|
|
redirect: 'intelligent-solution/businessAnalysisReport',
|
|
|
|
|
meta: {
|
|
|
|
|
locale: '智能方案管理',
|
2025-07-07 15:02:04 +08:00
|
|
|
icon: IconIntelligentSolution,
|
2025-06-24 18:19:34 +08:00
|
|
|
requiresAuth: true,
|
2025-07-08 16:55:04 +08:00
|
|
|
requireLogin: true,
|
2025-06-24 18:19:34 +08:00
|
|
|
roles: ['*'],
|
|
|
|
|
id: MENU_GROUP_IDS.PROPERTY_ID,
|
|
|
|
|
},
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: 'businessAnalysisReport',
|
|
|
|
|
name: 'IntelligentSolutionBusinessAnalysisReport',
|
|
|
|
|
meta: {
|
2025-06-30 11:36:11 +08:00
|
|
|
locale: '业务洞察报告',
|
2025-06-24 18:19:34 +08:00
|
|
|
requiresAuth: true,
|
2025-07-08 16:55:04 +08:00
|
|
|
requireLogin: true,
|
2025-06-24 18:19:34 +08:00
|
|
|
roles: ['*'],
|
|
|
|
|
},
|
2025-06-26 11:35:23 +08:00
|
|
|
component: () => import('@/views/property-marketing/intelligent-solution/businessAnalysisReport'),
|
2025-06-24 18:19:34 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'competitiveProductAnalysisReport',
|
|
|
|
|
name: 'IntelligentSolutionCompetitiveProductAnalysisReport',
|
|
|
|
|
meta: {
|
2025-06-30 11:36:11 +08:00
|
|
|
locale: '竟品对比报告',
|
2025-06-24 18:19:34 +08:00
|
|
|
requiresAuth: true,
|
2025-07-08 16:55:04 +08:00
|
|
|
requireLogin: true,
|
2025-06-24 18:19:34 +08:00
|
|
|
roles: ['*'],
|
|
|
|
|
},
|
2025-06-26 11:35:23 +08:00
|
|
|
component: () => import('@/views/property-marketing/intelligent-solution/competitiveProductAnalysisReport'),
|
2025-06-24 18:19:34 +08:00
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
export default COMPONENTS;
|