|
@@ -70,37 +70,184 @@ export const constantRoutes = [
|
|
|
path: 'index',
|
|
|
component: () => import('@/views/index'),
|
|
|
name: 'Index',
|
|
|
- meta: { title: '首页', icon: 'dashboard', affix: true }
|
|
|
+ meta: { title: '首页', icon: 'home', affix: true }
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
+ //权限管理
|
|
|
{
|
|
|
- path: '/user',
|
|
|
+ path: '',
|
|
|
component: Layout,
|
|
|
- hidden: true,
|
|
|
- redirect: 'noredirect',
|
|
|
children: [
|
|
|
{
|
|
|
- path: 'profile',
|
|
|
- component: () => import('@/views/system/user/profile/index'),
|
|
|
- name: 'Profile',
|
|
|
- meta: { title: '个人中心', icon: 'user' }
|
|
|
+ path: '/authority',
|
|
|
+ component: () => import('@/views/authority/index'),
|
|
|
+ name: 'authority',
|
|
|
+ meta: { title: '权限', icon: 'authority2' }
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
+ //订单管理
|
|
|
{
|
|
|
- path: '/announce',
|
|
|
+ path: '',
|
|
|
component: Layout,
|
|
|
children: [
|
|
|
{
|
|
|
- path: 'index',
|
|
|
- component: () => import('@/views/announce/add/index'),
|
|
|
- name: 'Profile',
|
|
|
- meta: { title: '创建公告', icon: 'user' }
|
|
|
+ path: '/order',
|
|
|
+ component: () => import('@/views/order/index'),
|
|
|
+ name: 'order',
|
|
|
+ meta: { title: '订单列表', icon: 'order' }
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
+ //藏品管理
|
|
|
+ {
|
|
|
+ path: '/collection',
|
|
|
+ component: Layout,
|
|
|
+
|
|
|
+ meta: { title: '藏品管理', icon: 'collection' },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: '/serieslist',
|
|
|
+ component: () => import('@/views/collection/serieslist/index'),
|
|
|
+ name: 'serieslist',
|
|
|
+ meta: { title: '套系列表', icon: 'serieslist' }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/createseries',
|
|
|
+ component: () => import('@/views/collection/createseries/index'),
|
|
|
+ name: 'createseries',
|
|
|
+ meta: { title: '创建藏品', icon: 'createseries' }
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ },
|
|
|
|
|
|
+ //app用户列表
|
|
|
+ {
|
|
|
+ path: '',
|
|
|
+ component: Layout,
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: '/appuserlist',
|
|
|
+ component: () => import('@/views/appuserlist/index'),
|
|
|
+ name: 'appuserlist',
|
|
|
+ meta: { title: 'app用户列表', icon: 'appuserlist' }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ //发行方管理
|
|
|
+ {
|
|
|
+ path: '/issuer',
|
|
|
+ component: Layout,
|
|
|
+ meta: { title: '发行方管理', icon: 'issuer1' },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: '/issuer1',
|
|
|
+ component: () => import('@/views/issuer/issuer1/index'),
|
|
|
+ name: 'issuer1',
|
|
|
+ meta: { title: '发行方管理', icon: 'issuer1' }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/issuer2',
|
|
|
+ component: () => import('@/views/issuer/issuer2/index'),
|
|
|
+ name: 'issuer2',
|
|
|
+ meta: { title: '发行方管理', icon: 'issuer1' }
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ //公告管理
|
|
|
+ {
|
|
|
+ path: '/announcement',
|
|
|
+ component: Layout,
|
|
|
+ meta: { title: '公告管理', icon: 'announcement' },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: '/announcementList',
|
|
|
+ component: () => import('@/views/announcement/announcementList/index'),
|
|
|
+ name: 'announcementList',
|
|
|
+ meta: { title: '公告列表', icon: 'announcement' }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/announcementCreate',
|
|
|
+ component: () => import('@/views/announcement/announcementCreate/index'),
|
|
|
+ name: 'announcementCreate',
|
|
|
+ meta: { title: '创建公告', icon: 'createseries' }
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ //消息管理
|
|
|
+ {
|
|
|
+ path: '/message',
|
|
|
+ component: Layout,
|
|
|
+ meta: { title: '消息管理', icon: 'message' },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: '/messageList',
|
|
|
+ component: () => import('@/views/message/messageList/index'),
|
|
|
+ name: 'messageList',
|
|
|
+ meta: { title: '消息列表', icon: 'message' }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/messageCreate',
|
|
|
+ component: () => import('@/views/message/messageCreate/index'),
|
|
|
+ name: 'messageCreate',
|
|
|
+ meta: { title: '创建消息', icon: 'createseries' }
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ //兑换列表
|
|
|
+ {
|
|
|
+ path: 'exchange',
|
|
|
+ component: Layout,
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: '/exchange',
|
|
|
+ component: () => import('@/views/exchange/index'),
|
|
|
+ name: 'exchange',
|
|
|
+ meta: { title: '兑换列表', icon: 'exchange' }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ //分销商管理
|
|
|
+ {
|
|
|
+ path: 'distributor',
|
|
|
+ component: Layout,
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: '/distributor',
|
|
|
+ component: () => import('@/views/distributor/index'),
|
|
|
+ name: 'distributor',
|
|
|
+ meta: { title: '分销商管理', icon: 'distributor' }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ //文档管理
|
|
|
+ {
|
|
|
+ path: 'document',
|
|
|
+ component: Layout,
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: '/document',
|
|
|
+ component: () => import('@/views/document/index'),
|
|
|
+ name: 'document',
|
|
|
+ meta: { title: '文档管理', icon: 'document' }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/user',
|
|
|
+ component: Layout,
|
|
|
+ hidden: true,
|
|
|
+ redirect: 'noredirect',
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'profile',
|
|
|
+ component: () => import('@/views/system/user/profile/index'),
|
|
|
+ name: 'Profile',
|
|
|
+ meta: { title: '个人中心', icon: 'user' }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
]
|
|
|
|
|
|
// 动态路由,基于用户权限动态去加载
|
|
@@ -174,8 +321,7 @@ export const dynamicRoutes = [
|
|
|
meta: { title: '修改生成配置', activeMenu: '/tool/gen' }
|
|
|
}
|
|
|
]
|
|
|
- },
|
|
|
-
|
|
|
+ }
|
|
|
]
|
|
|
|
|
|
// 防止连续点击多次路由报错
|