You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
317 lines
6.7 KiB
TypeScript
317 lines
6.7 KiB
TypeScript
export default [
|
|
{
|
|
path: '/user',
|
|
layout: false,
|
|
routes: [{ name: '登录', path: '/user/login', component: './User/Login' }],
|
|
},
|
|
{
|
|
path: '/dashboard',
|
|
access: 'dashboardQuery',
|
|
name: '仪表盘',
|
|
icon: 'home',
|
|
routes: [
|
|
{
|
|
path: '',
|
|
name: '仪表盘',
|
|
component: './Dashboard',
|
|
},
|
|
{
|
|
name: '商户浏览排行',
|
|
path: 'business-views',
|
|
hideInMenu: true,
|
|
component: './Dashboard/BusinessViews',
|
|
},
|
|
{
|
|
name: '渠道商家数',
|
|
path: 'channel-statistics',
|
|
hideInMenu: true,
|
|
component: './Dashboard/ChannelStatistics',
|
|
},
|
|
{
|
|
name: '扫码人明细',
|
|
path: 'scan-detail',
|
|
hideInMenu: true,
|
|
component: './Dashboard/ScanDetail',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
path: '/operations-dashboard',
|
|
access: 'operationsQuery',
|
|
name: '运营看板',
|
|
icon: 'dashboard',
|
|
routes: [
|
|
{
|
|
path: '',
|
|
name: '运营看板',
|
|
component: './OperationsDashboard',
|
|
},
|
|
{
|
|
name: '注册商家明细',
|
|
path: 'business-detail',
|
|
hideInMenu: true,
|
|
component: './OperationsDashboard/BusinessDetail',
|
|
},
|
|
{
|
|
name: '注册商品明细',
|
|
path: 'product-detail',
|
|
hideInMenu: true,
|
|
component: './OperationsDashboard/ProductDetail',
|
|
}
|
|
],
|
|
},
|
|
{
|
|
name: '用户管理',
|
|
path: '/user-list',
|
|
icon: 'user',
|
|
access: 'userQuery',
|
|
component: './UserList',
|
|
},
|
|
{
|
|
name: '角色管理',
|
|
path: '/role-list',
|
|
icon: 'bell',
|
|
access: 'roleQuery',
|
|
component: './RoleList',
|
|
},
|
|
{
|
|
name: '审核管理',
|
|
path: '/audits',
|
|
icon: 'verified',
|
|
access: 'approvalQuery',
|
|
routes: [
|
|
{
|
|
path: '',
|
|
name: '审核管理',
|
|
component: './AuditsList',
|
|
},
|
|
{
|
|
name: '详情',
|
|
path: 'detail/:id',
|
|
hideInMenu: true,
|
|
component: './AuditsList/detail',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: '需求审核',
|
|
path: '/requirement',
|
|
icon: 'verified',
|
|
access: 'requirementQuery',
|
|
routes: [
|
|
{
|
|
path: '',
|
|
name: '需求审核',
|
|
component: './RequirementAudits',
|
|
},
|
|
{
|
|
name: '详情',
|
|
path: 'detail/:id',
|
|
hideInMenu: true,
|
|
component: './RequirementAudits/detail',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: '采购员审核',
|
|
path: '/purchase-agent',
|
|
icon: 'verified',
|
|
access: 'purchaseAgentQuery',
|
|
routes: [
|
|
{
|
|
path: '',
|
|
name: '采购员审核',
|
|
component: './PurchaseAgentList',
|
|
},
|
|
{
|
|
name: '详情',
|
|
path: 'detail/:id',
|
|
hideInMenu: true,
|
|
component: './PurchaseAgentList/detail',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: '商家管理',
|
|
path: '/business',
|
|
icon: 'shop',
|
|
routes: [
|
|
{
|
|
path: 'list',
|
|
name: '商家管理',
|
|
access: 'businessQuery',
|
|
component: './BusinessList',
|
|
},
|
|
{
|
|
path: 'recommend',
|
|
name: '推荐商家',
|
|
access: 'recommendBusinessQuery',
|
|
component: './BusinessList/recommend',
|
|
},
|
|
{
|
|
name: '详情',
|
|
path: 'detail/:id',
|
|
hideInMenu: true,
|
|
component: './BusinessList/detail',
|
|
},
|
|
{
|
|
name: '创建商户',
|
|
path: 'add',
|
|
hideInMenu: true,
|
|
component: './BusinessList/add',
|
|
},
|
|
]
|
|
},
|
|
{
|
|
name: '会员管理',
|
|
path: '/member',
|
|
icon: 'team',
|
|
routes: [
|
|
{
|
|
name: '会员管理',
|
|
path: 'list',
|
|
access: 'memberQuery',
|
|
component: './MemberList',
|
|
},
|
|
{
|
|
name: '会员等级',
|
|
path: 'grade',
|
|
access: 'memberGradeQuery',
|
|
component: './MemberList/grade',
|
|
},
|
|
]
|
|
},
|
|
{
|
|
name: '商品管理',
|
|
path: '/product',
|
|
icon: 'book',
|
|
routes: [
|
|
{
|
|
name: '商品类目管理',
|
|
path: 'category',
|
|
access: 'productCategoryQuery',
|
|
component: './ProductList/category',
|
|
},
|
|
{
|
|
name: '商品管理',
|
|
path: 'list',
|
|
access: 'productQuery',
|
|
component: './ProductList',
|
|
},
|
|
{
|
|
name: '商品标签管理',
|
|
path: 'label',
|
|
access: 'productLabelQuery',
|
|
component: './ProductList/label',
|
|
},
|
|
{
|
|
name: '商品标签类型管理',
|
|
path: 'label-type',
|
|
access: 'productLabelTypeQuery',
|
|
component: './ProductList/LabelType',
|
|
},
|
|
{
|
|
name: '新增商品',
|
|
path: 'add',
|
|
hideInMenu: true,
|
|
component: './ProductList/add',
|
|
},
|
|
{
|
|
name: '详情',
|
|
path: 'detail/:id',
|
|
access: 'productQuery',
|
|
hideInMenu: true,
|
|
component: './ProductList/detail',
|
|
},
|
|
]
|
|
},
|
|
{
|
|
name: '课程管理',
|
|
path: '/training-classes',
|
|
icon: 'book',
|
|
routes: [
|
|
{
|
|
name: '课程维护',
|
|
path: 'list',
|
|
access: 'trainingClassesQuery',
|
|
component: './TrainingClasses',
|
|
},
|
|
{
|
|
name: '课程类型管理',
|
|
path: 'category',
|
|
access: 'trainingClassesCategoryQuery',
|
|
component: './TrainingClasses/category',
|
|
},
|
|
{
|
|
name: '新增课程',
|
|
path: 'add',
|
|
hideInMenu: true,
|
|
component: './TrainingClasses/add',
|
|
},
|
|
{
|
|
name: '详情',
|
|
path: 'detail/:id',
|
|
access: 'trainingClassesQuery',
|
|
hideInMenu: true,
|
|
component: './TrainingClasses/detail',
|
|
},
|
|
]
|
|
},
|
|
{
|
|
name: '内容管理',
|
|
path: '/content-list',
|
|
icon: 'folder',
|
|
access: 'contentQuery',
|
|
component: './ContentList',
|
|
},
|
|
{
|
|
name: '留言管理',
|
|
path: '/message-list',
|
|
icon: 'message',
|
|
access: 'messageQuery',
|
|
component: './MessageList',
|
|
},
|
|
{
|
|
name: '字典管理',
|
|
path: '/dictionary-list',
|
|
icon: 'message',
|
|
access: 'dictionaryQuery',
|
|
component: './Dictionary',
|
|
},
|
|
{
|
|
name: '操作指引',
|
|
path: '/operating-instructions',
|
|
icon: 'message',
|
|
access: 'operateInstructionQuery',
|
|
component: './OperatingInstructions',
|
|
},
|
|
{
|
|
name: '流行趋势',
|
|
path: '/fashion-trend',
|
|
icon: 'message',
|
|
access: 'fashionTrendQuery',
|
|
component: './FashionTrend',
|
|
},
|
|
{
|
|
name: '广告设置',
|
|
path: '/ad',
|
|
icon: 'ad',
|
|
routes: [
|
|
{
|
|
name: '开屏广告',
|
|
path: 'screen',
|
|
access: 'adScreenQuery',
|
|
component: './ScreenAdvertisement',
|
|
},
|
|
{
|
|
name: '首页banner',
|
|
path: 'banner',
|
|
access: 'adBannerQuery',
|
|
component: './ScreenAdvertisement/banner',
|
|
}
|
|
]
|
|
},
|
|
{ path: '/' },
|
|
{ path: '*', layout: false, component: './404' },
|
|
];
|