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.

192 lines
3.9 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: '',
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: '',
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: '',
component: './AuditsList',
},
{
name: '详情',
path: 'detail/:id',
hideInMenu: true,
component: './AuditsList/detail',
},
],
},
{
name: '商家管理',
path: '/business',
icon: 'shop',
access: 'businessQuery',
routes: [
{
path: '',
component: './BusinessList',
},
{
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: 'add',
hideInMenu: true,
component: './ProductList/add',
},
{
name: '详情',
path: 'detail/:id',
access: 'productQuery',
hideInMenu: true,
component: './ProductList/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',
},
{ path: '/' },
{ path: '*', layout: false, component: './404' },
];