feat:添加admin相关接口
This commit is contained in:
+239
-16
@@ -140,6 +140,206 @@ const routes = [
|
||||
}
|
||||
]
|
||||
},
|
||||
// 用户管理路由
|
||||
{
|
||||
path: 'user',
|
||||
name: 'User',
|
||||
meta: {
|
||||
title: '用户管理',
|
||||
icon: 'User'
|
||||
},
|
||||
redirect: '/user/list',
|
||||
children: [
|
||||
{
|
||||
path: 'list',
|
||||
name: 'UserList',
|
||||
component: () => import('../views/user/UserList.vue'),
|
||||
meta: {
|
||||
title: '用户列表'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'detail',
|
||||
name: 'UserDetail',
|
||||
component: () => import('../views/user/UserDetail.vue'),
|
||||
meta: {
|
||||
title: '用户详情'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'balance',
|
||||
name: 'UserBalance',
|
||||
component: () => import('../views/user/UserBalance.vue'),
|
||||
meta: {
|
||||
title: '用户余额管理'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'group',
|
||||
name: 'UserGroup',
|
||||
component: () => import('../views/user/UserGroup.vue'),
|
||||
meta: {
|
||||
title: '用户组管理'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'admin-group',
|
||||
name: 'AdminGroup',
|
||||
component: () => import('../views/user/AdminGroup.vue'),
|
||||
meta: {
|
||||
title: '管理员组管理'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
// 商品管理路由
|
||||
{
|
||||
path: 'product',
|
||||
name: 'Product',
|
||||
meta: {
|
||||
title: '商品管理',
|
||||
icon: 'Goods'
|
||||
},
|
||||
redirect: '/product/list',
|
||||
children: [
|
||||
{
|
||||
path: 'list',
|
||||
name: 'ProductList',
|
||||
component: () => import('../views/product/ProductList.vue'),
|
||||
meta: {
|
||||
title: '商品列表'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'group',
|
||||
name: 'ProductGroup',
|
||||
component: () => import('../views/product/ProductGroup.vue'),
|
||||
meta: {
|
||||
title: '商品分组'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'parameter',
|
||||
name: 'ProductParameter',
|
||||
component: () => import('../views/product/ProductParameter.vue'),
|
||||
meta: {
|
||||
title: '商品参数'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
// 订单管理路由
|
||||
{
|
||||
path: 'order',
|
||||
name: 'Order',
|
||||
meta: {
|
||||
title: '订单管理',
|
||||
icon: 'Document'
|
||||
},
|
||||
redirect: '/order/list',
|
||||
children: [
|
||||
{
|
||||
path: 'list',
|
||||
name: 'OrderList',
|
||||
component: () => import('../views/order/OrderList.vue'),
|
||||
meta: {
|
||||
title: '订单列表'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
// 优惠营销路由
|
||||
{
|
||||
path: 'marketing',
|
||||
name: 'Marketing',
|
||||
meta: {
|
||||
title: '优惠营销',
|
||||
icon: 'Present'
|
||||
},
|
||||
redirect: '/marketing/discount',
|
||||
children: [
|
||||
{
|
||||
path: 'discount',
|
||||
name: 'DiscountCode',
|
||||
component: () => import('../views/marketing/DiscountCode.vue'),
|
||||
meta: {
|
||||
title: '优惠码管理'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'voucher',
|
||||
name: 'Voucher',
|
||||
component: () => import('../views/marketing/Voucher.vue'),
|
||||
meta: {
|
||||
title: '代金券管理'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'user-distribution',
|
||||
name: 'UserDistribution',
|
||||
component: () => import('../views/marketing/UserVoucher.vue'),
|
||||
meta: {
|
||||
title: '用户分发管理'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'discount-goods',
|
||||
name: 'DiscountGoods',
|
||||
component: () => import('../views/marketing/DiscountGoods.vue'),
|
||||
meta: {
|
||||
title: '商品关联管理',
|
||||
badge: 'NEW'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'discount-users',
|
||||
name: 'DiscountUsers',
|
||||
component: () => import('../views/marketing/DiscountUsers.vue'),
|
||||
meta: {
|
||||
title: '用户关联管理',
|
||||
badge: 'NEW'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'user-info',
|
||||
name: 'UserInfo',
|
||||
component: () => import('../views/marketing/VoucherHolders.vue'),
|
||||
meta: {
|
||||
title: '用户信息管理',
|
||||
badge: 'NEW'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'user-history',
|
||||
name: 'UserHistory',
|
||||
component: () => import('../views/marketing/VoucherHistory.vue'),
|
||||
meta: {
|
||||
title: '用户使用记录管理',
|
||||
badge: 'NEW'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
// 活动管理路由
|
||||
{
|
||||
path: 'activity',
|
||||
name: 'Activity',
|
||||
meta: {
|
||||
title: '活动管理',
|
||||
icon: 'TrophyBase'
|
||||
},
|
||||
redirect: '/activity/signin',
|
||||
children: [
|
||||
{
|
||||
path: 'signin',
|
||||
name: 'SigninActivity',
|
||||
component: () => import('../views/activity/SigninActivity.vue'),
|
||||
meta: {
|
||||
title: '签到活动'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'system',
|
||||
name: 'System',
|
||||
@@ -147,28 +347,51 @@ const routes = [
|
||||
title: '系统管理',
|
||||
icon: 'Setting'
|
||||
},
|
||||
redirect: '/system/domain-whitelist',
|
||||
redirect: '/system/permission/route',
|
||||
children: [
|
||||
// 注释掉的用户管理和操作日志路由,与菜单配置保持一致
|
||||
// {
|
||||
// path: 'users',
|
||||
// name: 'Users',
|
||||
// component: () => import('../views/system/Users.vue'),
|
||||
// meta: {
|
||||
// title: '用户管理'
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// path: 'operation-log',
|
||||
// name: 'OperationLog',
|
||||
// component: OperationLog,
|
||||
// meta: { title: '操作日志' }
|
||||
// },
|
||||
{
|
||||
path: 'permission/route',
|
||||
name: 'PermissionRoute',
|
||||
component: () => import('../views/system/PermissionRoute.vue'),
|
||||
meta: {
|
||||
title: '路由权限'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'permission/admin',
|
||||
name: 'PermissionAdmin',
|
||||
component: () => import('../views/system/PermissionAdmin.vue'),
|
||||
meta: {
|
||||
title: '管理员权限'
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
path: 'file',
|
||||
name: 'SystemFile',
|
||||
component: () => import('../views/system/SystemFile.vue'),
|
||||
meta: {
|
||||
title: '文件管理'
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
path: 'domain-whitelist',
|
||||
name: 'DomainWhitelist',
|
||||
component: () => import('../views/system/DomainWhitelist.vue'),
|
||||
meta: { title: '域名白名单' }
|
||||
},
|
||||
{
|
||||
path: 'setting-group',
|
||||
name: 'SettingGroup',
|
||||
component: () => import('../views/system/SettingGroup.vue'),
|
||||
meta: { title: '配置组管理' }
|
||||
},
|
||||
{
|
||||
path: 'setting-list',
|
||||
name: 'SettingList',
|
||||
component: () => import('../views/system/Setting.vue'),
|
||||
meta: { title: '配置管理' }
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user