403 lines
8.9 KiB
TypeScript
403 lines
8.9 KiB
TypeScript
// { "id": 100, "path": "/system/dict/list2", "name": "News数据库", "parentId": 0, "icon": "DatabaseOutlined" },
|
|
// { "id": 101, "path": "/system/dict/list2", "name": "Q&A数据", "parentId": 0, "icon": "BulbOutlined" },
|
|
// { "id": 102, "path": "/system/dict/list2", "name": "订阅管理", "parentId": 0, "icon": "FileAddOutlined" },
|
|
// { "id": 103, "path": "/system/dict/list2", "name": "标签管理", "parentId": 0, "icon": "TagsOutlined" },
|
|
// { "id": 104, "path": "/system/dict/list2", "name": "客户管理", "parentId": 0, "icon": "UserOutlined" },
|
|
// { "id": 105, "path": "/system/dict/list2", "name": "权限管理", "parentId": 0, "icon": "KeyOutlined" },
|
|
// { "id": 106, "path": "/system/user/list", "name": "用户管理", "parentId": 0, "icon": "UsergroupDeleteOutlined" },
|
|
|
|
|
|
const routesV2 = [
|
|
{
|
|
path: '/systemV2',
|
|
name: '系统管理',
|
|
icon: 'crown',
|
|
routes: [
|
|
{
|
|
name: '用户列表',
|
|
icon: 'table',
|
|
path: '/systemV2/user/list',
|
|
component: './systemV2/user',
|
|
},
|
|
{
|
|
name: '权限列表',
|
|
icon: 'table',
|
|
path: '/systemV2/role/list',
|
|
component: './systemV2/role',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
path: '/umsV2',
|
|
name: '会员管理',
|
|
icon: 'crown',
|
|
routes: [
|
|
{
|
|
name: '会员列表',
|
|
icon: 'table',
|
|
path: '/umsV2/member/list',
|
|
component: './umsV2/member',
|
|
},
|
|
{
|
|
name: '会员等级',
|
|
icon: 'table',
|
|
path: '/umsV2/memberLevel/list',
|
|
component: './umsV2/member_level',
|
|
},
|
|
{
|
|
name: '会员地址',
|
|
icon: 'table',
|
|
path: '/umsV2/memberAddress/list',
|
|
component: './umsV2/member_address',
|
|
},
|
|
{
|
|
name: '登录记录',
|
|
icon: 'table',
|
|
path: '/umsV2/memberLoginLog/list',
|
|
component: './umsV2/member_login_log',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
path: '/article',
|
|
name: '文章管理',
|
|
icon: 'crown',
|
|
routes: [
|
|
{
|
|
name: '标签',
|
|
icon: 'table',
|
|
path: '/article/tag/list',
|
|
component: './article/tag',
|
|
},
|
|
{
|
|
name: '订阅',
|
|
icon: 'table',
|
|
path: '/article/subscribe/list',
|
|
component: './article/subscribe',
|
|
},
|
|
{
|
|
name: 'QA',
|
|
icon: 'table',
|
|
path: '/article/qa/list',
|
|
component: './article/qa',
|
|
},
|
|
{
|
|
name: '新闻',
|
|
icon: 'table',
|
|
path: '/article/news/list',
|
|
component: './article/news',
|
|
},
|
|
{
|
|
name: '编辑问答',
|
|
icon: 'editqa',
|
|
path: '/article/editqa/:option',
|
|
component: './article/editqa',
|
|
},
|
|
{
|
|
name: '编辑问答',
|
|
icon: 'editqa',
|
|
path: '/article/editqa/:option/:currTags/:article_id',
|
|
component: './article/editqa',
|
|
},
|
|
{
|
|
name: '草稿箱新增',
|
|
icon: 'edit',
|
|
path: '/article/editnews/:option',
|
|
component: './article/edit',
|
|
},
|
|
{
|
|
name: '草稿箱编辑',
|
|
icon: 'edit',
|
|
path: '/article/editnews/:option/:currTags/:article_id',
|
|
component: './article/edit',
|
|
},
|
|
|
|
|
|
|
|
],
|
|
},
|
|
]
|
|
|
|
|
|
const routesV1 = [
|
|
{
|
|
path: '/admin',
|
|
name: 'admin',
|
|
icon: 'crown',
|
|
access: 'canAdmin',
|
|
component: './Admin',
|
|
routes: [
|
|
{
|
|
path: '/admin/sub-page',
|
|
name: 'sub-page',
|
|
icon: 'smile',
|
|
component: './Welcome',
|
|
},
|
|
{
|
|
component: './404',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'list.table-list',
|
|
icon: 'table',
|
|
path: '/list',
|
|
component: './TableList',
|
|
},
|
|
{
|
|
path: '/',
|
|
redirect: '/welcome',
|
|
},
|
|
{
|
|
path: '/system',
|
|
name: '系统管理',
|
|
icon: 'crown',
|
|
routes: [
|
|
{
|
|
name: '用户列表',
|
|
icon: 'table',
|
|
path: '/system/user/list',
|
|
component: './system/user',
|
|
},
|
|
{
|
|
name: '角色列表',
|
|
icon: 'table',
|
|
path: '/system/role/list',
|
|
component: './system/role',
|
|
},
|
|
{
|
|
name: '菜单列表',
|
|
icon: 'table',
|
|
path: '/system/menu/list',
|
|
component: './system/menu',
|
|
},
|
|
{
|
|
name: '机构列表',
|
|
icon: 'table',
|
|
path: '/system/dept/list',
|
|
component: './system/dept',
|
|
},
|
|
{
|
|
name: '字典列表',
|
|
icon: 'table',
|
|
path: '/system/dict/list',
|
|
component: './system/dict',
|
|
},
|
|
{
|
|
name: '职位列表',
|
|
icon: 'table',
|
|
path: '/system/job/list',
|
|
component: './system/job',
|
|
},
|
|
// {
|
|
// name: '参数管理',
|
|
// icon: 'table',
|
|
// path: '/system/param/list',
|
|
// component: './system/param',
|
|
// },
|
|
],
|
|
},
|
|
{
|
|
path: '/log',
|
|
name: '日志管理',
|
|
icon: 'crown',
|
|
routes: [
|
|
{
|
|
name: '登录日志',
|
|
icon: 'table',
|
|
path: '/log/loginLog/list',
|
|
component: './log/loginlog',
|
|
},
|
|
{
|
|
name: '操作日志',
|
|
icon: 'table',
|
|
path: '/log/sysLog/list',
|
|
component: './log/syslog',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
path: '/ums',
|
|
name: '会员管理',
|
|
icon: 'crown',
|
|
routes: [
|
|
{
|
|
name: '会员列表',
|
|
icon: 'table',
|
|
path: '/ums/member/list',
|
|
component: './ums/member',
|
|
},
|
|
{
|
|
name: '会员等级',
|
|
icon: 'table',
|
|
path: '/ums/memberLevel/list',
|
|
component: './ums/member_level',
|
|
},
|
|
{
|
|
name: '会员地址',
|
|
icon: 'table',
|
|
path: '/ums/memberAddress/list',
|
|
component: './ums/member_address',
|
|
},
|
|
{
|
|
name: '登录记录',
|
|
icon: 'table',
|
|
path: '/ums/memberLoginLog/list',
|
|
component: './ums/member_login_log',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
path: '/pms',
|
|
name: '商品管理',
|
|
icon: 'crown',
|
|
routes: [
|
|
{
|
|
name: '商品列表',
|
|
icon: 'table',
|
|
path: '/pms/product/list',
|
|
component: './pms/product',
|
|
},
|
|
{
|
|
name: '商品分类',
|
|
icon: 'table',
|
|
path: '/pms/productCategory/list',
|
|
component: './pms/product_category',
|
|
},
|
|
{
|
|
name: '属性分类',
|
|
icon: 'table',
|
|
path: '/pms/attributecategory/list',
|
|
component: './pms/product_attribute_category',
|
|
},
|
|
{
|
|
name: '品牌管理',
|
|
icon: 'table',
|
|
path: '/pms/productBrand/list',
|
|
component: './pms/product_brand',
|
|
},
|
|
{
|
|
name: '商品属性',
|
|
icon: 'table',
|
|
path: '/pms/attribute/list',
|
|
component: './pms/product_attribute',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
path: '/oms',
|
|
name: '订单管理',
|
|
icon: 'crown',
|
|
routes: [
|
|
{
|
|
name: '订单列表',
|
|
icon: 'table',
|
|
path: '/oms/order/list',
|
|
component: './oms/order',
|
|
},
|
|
{
|
|
name: '订单设置',
|
|
icon: 'table',
|
|
path: '/oms/orderSetting/list',
|
|
component: './oms/order_setting',
|
|
},
|
|
{
|
|
name: '退货申请',
|
|
icon: 'table',
|
|
path: '/oms/orderReturnApply/list',
|
|
component: './oms/order_return_apply',
|
|
},
|
|
{
|
|
name: '退货原因',
|
|
icon: 'table',
|
|
path: '/oms/orderReturnReason/list',
|
|
component: './oms/order_return_reason',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
path: '/sms',
|
|
name: '营销管理',
|
|
icon: 'crown',
|
|
routes: [
|
|
{
|
|
name: '秒杀活动',
|
|
icon: 'table',
|
|
path: '/sms/flashPromotion/list',
|
|
component: './sms/flash_promotion',
|
|
},
|
|
{
|
|
name: '品牌推荐',
|
|
icon: 'table',
|
|
path: '/sms/homeBrand/list',
|
|
component: './sms/home_brand',
|
|
},
|
|
{
|
|
name: '新品推荐',
|
|
icon: 'table',
|
|
path: '/sms/homeNewProduct/list',
|
|
component: './sms/home_new_product',
|
|
},
|
|
{
|
|
name: '人气推荐',
|
|
icon: 'table',
|
|
path: '/sms/homeRecommendProduct/list',
|
|
component: './sms/home_recommend_product',
|
|
},
|
|
{
|
|
name: '专题推荐',
|
|
icon: 'table',
|
|
path: '/sms/homeRecommendSubject/list',
|
|
component: './sms/home_recommend_subject',
|
|
},
|
|
{
|
|
name: '广告列表',
|
|
icon: 'table',
|
|
path: '/sms/homeAdvertise/list',
|
|
component: './sms/home_advertise',
|
|
},
|
|
{
|
|
name: '优惠券',
|
|
icon: 'table',
|
|
path: '/sms/coupon/list',
|
|
component: './sms/coupon',
|
|
},
|
|
],
|
|
},
|
|
]
|
|
|
|
export default [
|
|
{
|
|
path: '/user',
|
|
layout: false,
|
|
routes: [
|
|
{
|
|
path: '/user',
|
|
routes: [
|
|
{
|
|
name: 'login',
|
|
path: '/user/login',
|
|
component: './user/login',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
component: './404',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
path: '/welcome',
|
|
name: 'welcome',
|
|
icon: 'smile',
|
|
component: './Welcome',
|
|
},
|
|
|
|
...routesV1,
|
|
|
|
...routesV2,
|
|
{
|
|
component: './404',
|
|
},
|
|
];
|