|
@@ -5,65 +5,23 @@ import Layout from '@/layout'
|
|
const userRouter = {
|
|
const userRouter = {
|
|
path: '/user',
|
|
path: '/user',
|
|
component: Layout,
|
|
component: Layout,
|
|
- redirect: '/user/club',
|
|
|
|
|
|
+ redirect: '/user/list',
|
|
alwaysShow: true, // will always show the root menu
|
|
alwaysShow: true, // will always show the root menu
|
|
- name: 'userSetting', // name必须和后台配置一致,不然匹配不到
|
|
|
|
|
|
+ name: 'UserSitting', // name必须和后台配置一致,不然匹配不到
|
|
meta: { title: '用户管理', icon: 'user' },
|
|
meta: { title: '用户管理', icon: 'user' },
|
|
children: [
|
|
children: [
|
|
{
|
|
{
|
|
- path: 'record',
|
|
|
|
- component: () => import('@/views/index'),
|
|
|
|
- redirect: '/user/record/list',
|
|
|
|
- name: 'UserRecordMenu',
|
|
|
|
- meta: { title: '用户行为记录', icon: 'international' },
|
|
|
|
- children: [
|
|
|
|
- {
|
|
|
|
- path: 'list',
|
|
|
|
- hidden: true,
|
|
|
|
- component: () => import('@/views/user/record/list'),
|
|
|
|
- name: 'RecordList',
|
|
|
|
- meta: { title: '用户行为记录', activeMenu: '/user/record' }
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- path: 'detail',
|
|
|
|
- hidden: true,
|
|
|
|
- component: () => import('@/views/user/record/detail-list.vue'),
|
|
|
|
- name: 'RecordDtails',
|
|
|
|
- meta: { title: '查看详情', activeMenu: '/user/record/' }
|
|
|
|
- }
|
|
|
|
- ]
|
|
|
|
|
|
+ path: 'record-list',
|
|
|
|
+ component: () => import('@/views/user/record/list'),
|
|
|
|
+ name: 'RecordList',
|
|
|
|
+ meta: { title: '用户行为记录', icon: 'international', activeMenu: '/user/list' }
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- path: 'club',
|
|
|
|
- name: 'UserClubMenu',
|
|
|
|
- redirect: '/user/club/list',
|
|
|
|
- alwaysShow: true,
|
|
|
|
- component: () => import('@/views/index'),
|
|
|
|
- meta: { title: '机构管理' },
|
|
|
|
- children: [
|
|
|
|
- {
|
|
|
|
- path: 'list',
|
|
|
|
- name: 'ClubList',
|
|
|
|
- component: () => import('@/views/user/club/list'),
|
|
|
|
- meta: { title: '机构列表' }
|
|
|
|
- }
|
|
|
|
- ]
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- path: 'supplier',
|
|
|
|
- name: 'UserSupplierMenu',
|
|
|
|
- redirect: '/user/supplier/list',
|
|
|
|
- alwaysShow: true,
|
|
|
|
- component: () => import('@/views/index'),
|
|
|
|
- meta: { title: '供应商管理', useDefault: true },
|
|
|
|
- children: [
|
|
|
|
- {
|
|
|
|
- path: 'list',
|
|
|
|
- name: 'SupplierAllList',
|
|
|
|
- component: () => import('@/views/user/supplier/list'),
|
|
|
|
- meta: { title: '供应商列表' }
|
|
|
|
- }
|
|
|
|
- ]
|
|
|
|
|
|
+ path: 'detail-list',
|
|
|
|
+ hidden: true,
|
|
|
|
+ component: () => import('@/views/user/record/detail-list'),
|
|
|
|
+ name: 'RecordDtails',
|
|
|
|
+ meta: { title: '查看详情', noCache: true, activeMenu: '/user/list' }
|
|
}
|
|
}
|
|
]
|
|
]
|
|
}
|
|
}
|