165 lines
4.9 KiB
TypeScript
165 lines
4.9 KiB
TypeScript
|
|
import type { AppRouteRecordRaw } from '../types';
|
||
|
|
import { MENU_GROUP_IDS } from '@/router/constants';
|
||
|
|
|
||
|
|
import IconContentManuscript from '@/assets/svg/svg-contentManuscript.svg';
|
||
|
|
|
||
|
|
const COMPONENTS: AppRouteRecordRaw[] = [
|
||
|
|
{
|
||
|
|
path: '/material-center',
|
||
|
|
name: 'MaterialCenter',
|
||
|
|
redirect: 'material-center/finished-products',
|
||
|
|
meta: {
|
||
|
|
locale: '素材中心',
|
||
|
|
icon: IconContentManuscript,
|
||
|
|
requiresAuth: true,
|
||
|
|
requireLogin: true,
|
||
|
|
roles: ['*'],
|
||
|
|
id: MENU_GROUP_IDS.CREATIVE_GENERATION_WORKSHOP_ID,
|
||
|
|
},
|
||
|
|
children: [
|
||
|
|
{
|
||
|
|
path: 'finished-products',
|
||
|
|
name: 'MaterialCenterFinishedProducts',
|
||
|
|
meta: {
|
||
|
|
locale: '成品库',
|
||
|
|
requiresAuth: true,
|
||
|
|
requireLogin: true,
|
||
|
|
roles: ['*'],
|
||
|
|
},
|
||
|
|
component: () => import('@/views/material-center/index.vue'),
|
||
|
|
},
|
||
|
|
{
|
||
|
|
path: 'raw-material',
|
||
|
|
name: 'MaterialCenterRawMaterial',
|
||
|
|
meta: {
|
||
|
|
locale: '原料库',
|
||
|
|
requiresAuth: true,
|
||
|
|
requireLogin: true,
|
||
|
|
roles: ['*'],
|
||
|
|
},
|
||
|
|
component: () => import('@/views/material-center/index.vue'),
|
||
|
|
},
|
||
|
|
// {
|
||
|
|
// path: 'list',
|
||
|
|
// name: 'ManuscriptList',
|
||
|
|
// meta: {
|
||
|
|
// locale: '内容稿件列表',
|
||
|
|
// requiresAuth: true,
|
||
|
|
// requireLogin: true,
|
||
|
|
// roles: ['*'],
|
||
|
|
// },
|
||
|
|
// component: () => import('@/views/creative-generation-workshop/manuscript/list/index.vue'),
|
||
|
|
// },
|
||
|
|
// {
|
||
|
|
// path: 'upload',
|
||
|
|
// name: 'ManuscriptUpload',
|
||
|
|
// meta: {
|
||
|
|
// locale: '稿件上传',
|
||
|
|
// requiresAuth: true,
|
||
|
|
// requireLogin: true,
|
||
|
|
// hideFooter: true,
|
||
|
|
// roles: ['*'],
|
||
|
|
// hideInMenu: true,
|
||
|
|
// activeMenu: 'ManuscriptList',
|
||
|
|
// },
|
||
|
|
// component: () => import('@/views/creative-generation-workshop/manuscript/upload/index.vue'),
|
||
|
|
// },
|
||
|
|
// {
|
||
|
|
// path: 'edit/:id',
|
||
|
|
// name: 'ManuscriptEdit',
|
||
|
|
// meta: {
|
||
|
|
// locale: '账号详情',
|
||
|
|
// requiresAuth: true,
|
||
|
|
// requireLogin: true,
|
||
|
|
// hideFooter: true,
|
||
|
|
// roles: ['*'],
|
||
|
|
// hideInMenu: true,
|
||
|
|
// activeMenu: 'ManuscriptList',
|
||
|
|
// },
|
||
|
|
// component: () => import('@/views/creative-generation-workshop/manuscript/edit/index.vue'),
|
||
|
|
// },
|
||
|
|
// {
|
||
|
|
// path: 'detail/:id',
|
||
|
|
// name: 'ManuscriptDetail',
|
||
|
|
// meta: {
|
||
|
|
// locale: '稿件详情',
|
||
|
|
// requiresAuth: true,
|
||
|
|
// requireLogin: true,
|
||
|
|
// hideFooter: true,
|
||
|
|
// roles: ['*'],
|
||
|
|
// hideInMenu: true,
|
||
|
|
// activeMenu: 'ManuscriptList',
|
||
|
|
// },
|
||
|
|
// component: () => import('@/views/creative-generation-workshop/manuscript/detail/index.vue'),
|
||
|
|
// },
|
||
|
|
// {
|
||
|
|
// path: 'check-list',
|
||
|
|
// name: 'ManuscriptCheckList',
|
||
|
|
// meta: {
|
||
|
|
// locale: '内容稿件审核',
|
||
|
|
// requiresAuth: true,
|
||
|
|
// requireLogin: true,
|
||
|
|
// roles: ['*'],
|
||
|
|
// },
|
||
|
|
// component: () => import('@/views/creative-generation-workshop/manuscript/check-list/index.vue'),
|
||
|
|
// },
|
||
|
|
// {
|
||
|
|
// path: 'check-list/detail/:id',
|
||
|
|
// name: 'ManuscriptCheckListDetail',
|
||
|
|
// meta: {
|
||
|
|
// locale: '内容稿件审核详情',
|
||
|
|
// requiresAuth: true,
|
||
|
|
// requireLogin: true,
|
||
|
|
// hideFooter: true,
|
||
|
|
// hideInMenu: true,
|
||
|
|
// roles: ['*'],
|
||
|
|
// activeMenu: 'ManuscriptCheckList',
|
||
|
|
// },
|
||
|
|
// component: () => import('@/views/creative-generation-workshop/manuscript/detail/index.vue'),
|
||
|
|
// },
|
||
|
|
// {
|
||
|
|
// path: 'check',
|
||
|
|
// name: 'ManuscriptCheck',
|
||
|
|
// meta: {
|
||
|
|
// locale: '稿件审核',
|
||
|
|
// requiresAuth: true,
|
||
|
|
// requireLogin: true,
|
||
|
|
// hideFooter: true,
|
||
|
|
// roles: ['*'],
|
||
|
|
// hideInMenu: true,
|
||
|
|
// activeMenu: 'ManuscriptCheckList',
|
||
|
|
// },
|
||
|
|
// component: () => import('@/views/creative-generation-workshop/manuscript/check/index.vue'),
|
||
|
|
// },
|
||
|
|
],
|
||
|
|
},
|
||
|
|
// {
|
||
|
|
// path: '/explore/list/:shareCode',
|
||
|
|
// name: 'ExploreList',
|
||
|
|
// meta: {
|
||
|
|
// locale: '分享链接列表',
|
||
|
|
// requiresAuth: false,
|
||
|
|
// requireLogin: false,
|
||
|
|
// hideFooter: true,
|
||
|
|
// hideSidebar: true,
|
||
|
|
// roles: ['*'],
|
||
|
|
// },
|
||
|
|
// component: () => import('@/views/creative-generation-workshop/explore/list/index.vue'),
|
||
|
|
// },
|
||
|
|
// {
|
||
|
|
// path: '/explore/detail/:shareCode/:id',
|
||
|
|
// name: 'ExploreDetail',
|
||
|
|
// meta: {
|
||
|
|
// locale: '分享链接详情',
|
||
|
|
// requiresAuth: false,
|
||
|
|
// requireLogin: false,
|
||
|
|
// hideFooter: true,
|
||
|
|
// hideSidebar: true,
|
||
|
|
// roles: ['*'],
|
||
|
|
// },
|
||
|
|
// component: () => import('@/views/creative-generation-workshop/explore/detail/index.vue'),
|
||
|
|
// },
|
||
|
|
];
|
||
|
|
|
||
|
|
export default COMPONENTS;
|