uc.js
3.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
/* Layout */
import Layout from '@/layout/index';
import Emptylayout from '@/layout/emptyLayout';
const ucRoutes = [
{
path: '/uc',
component: Layout,
name: 'system',
redirect: '/uc/user/index',
meta: {
title: '系统管理',
icon: 'dashbord'
},
children: [
{
path: 'user',
component: Emptylayout,
meta: {
title: '人员管理'
},
children: [
{
path: 'index',
component: () => import('@/views/uc/user/index.vue'),
meta: {
title: '人员管理',
breadcrumb: false,
permissions: ['user']
}
},
{
path: 'view',
component: () => import('@/views/uc/user/view.vue'),
name: 'userView',
meta: {
title: '查看',
activeMenu: '/uc/user/index',
permissions: ['userView']
},
hidden: true
}]
}, {
path: 'department',
component: () => import('@/views/uc/department/index.vue'),
meta: {
title: '部门管理',
permissions: ['depart']
}
}, {
path: 'group',
component: Emptylayout,
meta: {
title: '群组管理',
permissions: ['ucGroup']
},
children: [
{
path: 'index',
component: () => import('@/views/uc/group/manage/index.vue'),
meta: {
title: '群组管理',
breadcrumb: false
}
},
{
path: 'add',
component: () => import('@/views/uc/group/edit/index.vue'),
meta: {
title: '新增',
breadcrumb: false
}
},
{
path: 'category',
component: () => import('@/views/uc/group/category/index.vue'),
name: 'userAdd',
meta: {
title: '群组类别',
activeMenu: '/uc/group/index'
},
hidden: true
}
]
}, {
path: 'role',
component: () => import('@/views/uc/role/index.vue'),
meta: {
title: '角色管理',
permissions: ['role']
}
}, {
path: 'menu',
component: () => import('@/views/uc/menu/index.vue'),
meta: {
title: '菜单管理',
permissions: ['menu']
}
}, {
path: 'personal',
name: 'userCenter',
component: () => import('@/views/uc/personal/index.vue'),
meta: {
title: '个人设置',
permissions: ['userCenter']
}
}, {
path: 'system',
component: () => import('@/views/uc/system/index.vue'),
meta: {
title: '系统设置',
permissions: ['system']
}
}
]
}
];
export default ucRoutes;