1- import { PermissionConst , EditionConst , RoleConst } from '@/utils/permission/data'
2- import { ComplexPermission } from '@/utils/permission/type'
1+ import { PermissionConst , EditionConst , RoleConst } from '@/utils/permission/data'
2+ import { ComplexPermission } from '@/utils/permission/type'
33
44const systemRouter = {
55 path : '/system' ,
66 name : 'system' ,
7- meta : { title : 'views.system.title' } ,
7+ meta : { title : 'views.system.title' } ,
88 hidden : true ,
99 component : ( ) => import ( '@/layout/layout-template/SystemMainLayout.vue' ) ,
1010 children : [
@@ -20,7 +20,49 @@ const systemRouter = {
2020 parentName : 'system' ,
2121 permission : [ RoleConst . ADMIN , EditionConst . IS_EE ] ,
2222 } ,
23- component : ( ) => import ( '@/views/user-manage/index.vue' ) ,
23+ component : ( ) => import ( '@/views/system/user-manage/index.vue' ) ,
24+ } ,
25+ {
26+ path : '/system/role' ,
27+ name : 'role' ,
28+ meta : {
29+ icon : 'app-resource-authorization' , // TODO
30+ iconActive : 'app-resource-authorization-active' , // TODO
31+ title : 'views.role.title' ,
32+ activeMenu : '/system' ,
33+ parentPath : '/system' ,
34+ parentName : 'system' ,
35+ permission : [
36+ new ComplexPermission (
37+ [ RoleConst . ADMIN , RoleConst . WORKSPACE_MANAGE . getWorkspaceRole ] ,
38+ [ PermissionConst . ROLE_READ ] ,
39+ [ EditionConst . IS_EE ] ,
40+ 'OR' ,
41+ ) ,
42+ ] ,
43+ } ,
44+ component : ( ) => import ( '@/views/system/role/index.vue' ) ,
45+ } ,
46+ {
47+ path : '/system/workspace' ,
48+ name : 'workspace' ,
49+ meta : {
50+ icon : 'app-resource-authorization' , // TODO
51+ iconActive : 'app-resource-authorization-active' , // TODO
52+ title : 'views.workspace.title' ,
53+ activeMenu : '/system' ,
54+ parentPath : '/system' ,
55+ parentName : 'system' ,
56+ permission : [
57+ new ComplexPermission (
58+ [ RoleConst . WORKSPACE_MANAGE . getWorkspaceRole , RoleConst . ADMIN ] ,
59+ [ PermissionConst . WORKSPACE_WORKSPACE_READ ] ,
60+ [ EditionConst . IS_EE ] ,
61+ 'OR' ,
62+ ) ,
63+ ] ,
64+ } ,
65+ component : ( ) => import ( '@/views/system/workspace/index.vue' ) ,
2466 } ,
2567 {
2668 path : '/system/resource-management' ,
@@ -69,49 +111,7 @@ const systemRouter = {
69111 parentPath : '/system' ,
70112 parentName : 'system' ,
71113 } ,
72- component : ( ) => import ( '@/views/resource-authorization/index.vue' ) ,
73- } ,
74- {
75- path : '/system/role' ,
76- name : 'role' ,
77- meta : {
78- icon : 'app-resource-authorization' , // TODO
79- iconActive : 'app-resource-authorization-active' , // TODO
80- title : 'views.role.title' ,
81- activeMenu : '/system' ,
82- parentPath : '/system' ,
83- parentName : 'system' ,
84- permission : [
85- new ComplexPermission (
86- [ RoleConst . ADMIN , RoleConst . WORKSPACE_MANAGE . getWorkspaceRole ] ,
87- [ PermissionConst . ROLE_READ ] ,
88- [ EditionConst . IS_EE ] ,
89- 'OR' ,
90- ) ,
91- ] ,
92- } ,
93- component : ( ) => import ( '@/views/role/index.vue' ) ,
94- } ,
95- {
96- path : '/system/workspace' ,
97- name : 'workspace' ,
98- meta : {
99- icon : 'app-resource-authorization' , // TODO
100- iconActive : 'app-resource-authorization-active' , // TODO
101- title : 'views.workspace.title' ,
102- activeMenu : '/system' ,
103- parentPath : '/system' ,
104- parentName : 'system' ,
105- permission : [
106- new ComplexPermission (
107- [ RoleConst . WORKSPACE_MANAGE . getWorkspaceRole , RoleConst . ADMIN ] ,
108- [ PermissionConst . WORKSPACE_WORKSPACE_READ ] ,
109- [ EditionConst . IS_EE ] ,
110- 'OR' ,
111- ) ,
112- ] ,
113- } ,
114- component : ( ) => import ( '@/views/workspace/index.vue' ) ,
114+ component : ( ) => import ( '@/views/system/resource-authorization/index.vue' ) ,
115115 } ,
116116 {
117117 path : '/system/shared' ,
@@ -262,7 +262,7 @@ const systemRouter = {
262262 parentName : 'system' ,
263263 permission : [ EditionConst . IS_PE , EditionConst . IS_EE ] ,
264264 } ,
265- component : ( ) => import ( '@/views/theme/index.vue' ) ,
265+ component : ( ) => import ( '@/views/system-setting/ theme/index.vue' ) ,
266266 } ,
267267 {
268268 path : '/system/authentication' ,
@@ -274,7 +274,7 @@ const systemRouter = {
274274 parentName : 'system' ,
275275 permission : [ EditionConst . IS_PE , EditionConst . IS_EE ] ,
276276 } ,
277- component : ( ) => import ( '@/views/authentication/index.vue' ) ,
277+ component : ( ) => import ( '@/views/system-setting/ authentication/index.vue' ) ,
278278 } ,
279279 {
280280 path : '/system/email' ,
@@ -286,7 +286,7 @@ const systemRouter = {
286286 parentName : 'system' ,
287287 //permission: new Role('ADMIN')
288288 } ,
289- component : ( ) => import ( '@/views/email/index.vue' ) ,
289+ component : ( ) => import ( '@/views/system-setting/ email/index.vue' ) ,
290290 } ,
291291 ] ,
292292 } ,
@@ -302,8 +302,8 @@ const systemRouter = {
302302 parentName : 'system' ,
303303 permission : [ EditionConst . IS_PE , EditionConst . IS_EE ] ,
304304 } ,
305- component : ( ) => import ( '@/views/operate-log/index.vue' )
306- }
305+ component : ( ) => import ( '@/views/system/ operate-log/index.vue' ) ,
306+ } ,
307307 ] ,
308308}
309309
0 commit comments