-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Expand file tree
/
Copy pathsystem.ts
More file actions
101 lines (100 loc) · 2.95 KB
/
system.ts
File metadata and controls
101 lines (100 loc) · 2.95 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
import { Role, ComplexPermission } from '@/utils/permission/type'
const systemRouter = {
path: '/system',
name: 'system',
meta: { title: 'views.system.title', permission: 'USER_MANAGEMENT:READ' },
hidden: true,
component: () => import('@/layout/layout-template/SystemMainLayout.vue'),
children: [
{
path: '/system/user',
name: 'user',
meta: {
icon: 'User',
iconActive: 'UserFilled',
title: 'views.userManage.title',
activeMenu: '/system',
parentPath: '/system',
parentName: 'system',
},
component: () => import('@/views/user-manage/index.vue'),
},
{
path: '/system/authorization',
name: 'authorization',
meta: {
icon: 'app-resource-authorization',
iconActive: 'app-resource-authorization-active',
title: 'views.resourceAuthorization.title',
activeMenu: '/system',
parentPath: '/system',
parentName: 'system',
},
component: () => import('@/views/resource-authorization/index.vue'),
},
{
path: '/system/role',
name: 'role',
meta: {
icon: 'app-resource-authorization', // TODO
iconActive: 'app-resource-authorization-active', // TODO
title: 'views.role.title',
activeMenu: '/system',
parentPath: '/system',
parentName: 'system',
},
component: () => import('@/views/role/index.vue'),
},
{
path:'/system/setting',
name: 'setting',
meta: {
icon: 'app-setting',
iconActive: 'app-setting-active',
title: 'views.system.subTitle',
activeMenu: '/system',
parentPath: '/system',
parentName: 'system',
},
children: [
{
path: '/system/theme',
name: 'theme',
meta: {
title: 'views.system.theme.title',
activeMenu: '/setting',
parentPath: '/setting',
parentName: 'setting',
//permission: new ComplexPermission(['ADMIN'], ['x-pack'], 'AND')
},
component: () => import('@/views/theme/index.vue'),
},
{
path: '/system/authentication',
name: 'authentication',
meta: {
title: 'views.system.authentication.title',
activeMenu: '/setting',
parentPath: '/setting',
parentName: 'setting',
//permission: new ComplexPermission(['ADMIN'], ['x-pack'], 'AND')
},
component: () => import('@/views/authentication/index.vue')
},
{
path: '/system/email',
name: 'email',
meta: {
title: 'views.system.email.title',
activeMenu: '/setting',
parentPath: '/setting',
parentName: 'setting',
//permission: new Role('ADMIN')
},
component: () => import('@/views/email/index.vue')
}
]
}
],
}
export default systemRouter