feat: 初始化内容稿件模块

This commit is contained in:
rd
2025-07-25 15:11:57 +08:00
parent 28dc67bfa4
commit ae065418d5
33 changed files with 1022 additions and 36 deletions

View File

@ -23,7 +23,8 @@ export const DEFAULT_ROUTE = {
export const MENU_GROUP_IDS = {
DATA_ENGINE_ID: 1, // 全域数据分析
MANAGEMENT_ID: -1, // 管理中心
PROPERTY_ID: 10, // 资产营销平台
WORK_BENCH_ID: -99, // 工作
CREATIVE_GENERATION_WORKSHOP_ID: 2, // 创意生成工坊
MANAGEMENT_ID: 3, // 管理中心
PROPERTY_ID: 4, // 资产营销平
WORK_BENCH_ID: 5, // 工作台
};

View File

@ -18,7 +18,7 @@ export const router = createRouter({
{
path: '/login',
name: 'UserLogin',
component: () => import('@/views/components/login'),
component: () => import('@/views/components/login/index.vue'),
meta: {
requiresAuth: false,
requireLogin: false,
@ -27,7 +27,7 @@ export const router = createRouter({
{
path: '/',
name: 'Home',
component: () => import('@/views/components/workplace'),
component: () => import('@/views/components/workplace/index.vue'),
meta: {
hideSidebar: true,
requiresAuth: false,

View File

@ -0,0 +1,46 @@
import type { AppRouteRecordRaw } from '../types';
import { MENU_GROUP_IDS } from '@/router/constants';
import IconRepository from '@/assets/svg/svg-repository.svg';
const COMPONENTS: AppRouteRecordRaw[] = [
{
path: '/manuscript',
name: 'Manuscript',
redirect: 'manuscript/list',
meta: {
locale: '内容稿件',
icon: IconRepository,
requiresAuth: false,
requireLogin: true,
roles: ['*'],
id: MENU_GROUP_IDS.CREATIVE_GENERATION_WORKSHOP_ID,
},
children: [
{
path: 'list',
name: 'ManuscriptList',
meta: {
locale: '内容稿件列表',
requiresAuth: false,
requireLogin: true,
roles: ['*'],
},
component: () => import('@/views/creative-generation-workshop/manuscript/manuscript-list/index.vue'),
},
{
path: 'check',
name: 'ManuscriptCheck',
meta: {
locale: '内容稿件审核',
requiresAuth: false,
requireLogin: true,
roles: ['*'],
},
component: () => import('@/views/creative-generation-workshop/manuscript/manuscript-check/index.vue'),
},
],
},
];
export default COMPONENTS;

View File

@ -23,7 +23,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [
{
path: 'person',
name: 'ManagementPerson',
component: () => import('@/views/components/management/person'),
component: () => import('@/views/components/management/person/index.vue'),
meta: {
locale: '个人信息',
requiresAuth: false,
@ -34,7 +34,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [
{
path: 'enterprise',
name: 'ManagementEnterprise',
component: () => import('@/views/components/management/enterprise'),
component: () => import('@/views/components/management/enterprise/index.vue'),
meta: {
locale: '企业信息',
requiresAuth: false,
@ -45,7 +45,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [
{
path: 'account',
name: 'ManagementAccount',
component: () => import('@/views/components/management/account'),
component: () => import('@/views/components/management/account/index.vue'),
meta: {
locale: '账号管理',
requiresAuth: false,

View File

@ -60,7 +60,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [
requireLogin: true,
roles: ['*'],
},
component: () => import('@/views/property-marketing/media-account/account-manage'),
component: () => import('@/views/property-marketing/media-account/account-manage/index.vue'),
},
{
path: 'dashboard',
@ -71,7 +71,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [
requireLogin: true,
roles: ['*'],
},
component: () => import('@/views/property-marketing/media-account/account-dashboard'),
component: () => import('@/views/property-marketing/media-account/account-dashboard/index.vue'),
},
{
path: 'detail/:id',
@ -84,7 +84,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [
hideInMenu: true,
activeMenu: 'MediaAccountAccountDashboard',
},
component: () => import('@/views/property-marketing/media-account/account-detail'),
component: () => import('@/views/property-marketing/media-account/account-detail/index.vue'),
},
],
},
@ -110,7 +110,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [
requireLogin: true,
roles: ['*'],
},
component: () => import('@/views/property-marketing/put-account/account-manage'),
component: () => import('@/views/property-marketing/put-account/account-manage/index.vue'),
},
{
path: 'data',
@ -121,7 +121,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [
requireLogin: true,
roles: ['*'],
},
component: () => import('@/views/property-marketing/put-account/account-data'),
component: () => import('@/views/property-marketing/put-account/account-data/index.vue'),
},
{
path: 'account-dashboard',
@ -132,7 +132,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [
requireLogin: true,
roles: ['*'],
},
component: () => import('@/views/property-marketing/put-account/account-dashboard'),
component: () => import('@/views/property-marketing/put-account/account-dashboard/index.vue'),
},
{
path: 'investmentGuidelines',
@ -143,7 +143,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [
requireLogin: true,
roles: ['*'],
},
component: () => import('@/views/property-marketing/put-account/investment-guidelines'),
component: () => import('@/views/property-marketing/put-account/investment-guidelines/index.vue'),
},
{
path: 'detail/:id',
@ -155,7 +155,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [
roles: ['*'],
activeMenu: 'PutAccountInvestmentGuidelines',
},
component: () => import('@/views/property-marketing/put-account/investment-guidelines/detail'),
component: () => import('@/views/property-marketing/put-account/investment-guidelines/detail.vue'),
},
],
},
@ -181,7 +181,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [
// requireLogin: true,
// roles: ['*'],
// },
// component: () => import('@/views/property-marketing/intelligent-solution/businessAnalysisReport'),
// component: () => import('@/views/property-marketing/intelligent-solution/businessAnalysisReport.vue'),
// },
// {
// path: 'competitiveProductAnalysisReport',
@ -192,7 +192,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [
// requireLogin: true,
// roles: ['*'],
// },
// component: () => import('@/views/property-marketing/intelligent-solution/competitiveProductAnalysisReport'),
// component: () => import('@/views/property-marketing/intelligent-solution/competitiveProductAnalysisReport.vue'),
// },
// ],
// },
@ -218,7 +218,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [
requireLogin: true,
roles: ['*'],
},
component: () => import('@/views/property-marketing/project-manage/project-list'),
component: () => import('@/views/property-marketing/project-manage/project-list/index.vue'),
},
],
},