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'
3+
34const systemRouter = {
45 path : '/system' ,
56 name : 'system' ,
6- meta : { title : 'views.system.title' } ,
7+ meta : { title : 'views.system.title' } ,
78 hidden : true ,
89 component : ( ) => import ( '@/layout/layout-template/SystemMainLayout.vue' ) ,
910 children : [
@@ -17,7 +18,7 @@ const systemRouter = {
1718 activeMenu : '/system' ,
1819 parentPath : '/system' ,
1920 parentName : 'system' ,
20- permission : [ RoleConst . ADMIN , EditionConst . IS_EE ] ,
21+ permission : [ RoleConst . ADMIN , EditionConst . IS_EE ] ,
2122 } ,
2223 component : ( ) => import ( '@/views/user-manage/index.vue' ) ,
2324 } ,
@@ -80,7 +81,7 @@ const systemRouter = {
8081 activeMenu : '/system' ,
8182 parentPath : '/system' ,
8283 parentName : 'system' ,
83- permission :[ new ComplexPermission ( [ RoleConst . ADMIN , RoleConst . WORKSPACE_MANAGE . getWorkspaceRole ] , [ PermissionConst . ROLE_READ ] , [ EditionConst . IS_EE ] , 'OR' ) , ] ,
84+ permission : [ new ComplexPermission ( [ RoleConst . ADMIN , RoleConst . WORKSPACE_MANAGE . getWorkspaceRole ] , [ PermissionConst . ROLE_READ ] , [ EditionConst . IS_EE ] , 'OR' ) , ] ,
8485 } ,
8586 component : ( ) => import ( '@/views/role/index.vue' ) ,
8687 } ,
@@ -94,7 +95,7 @@ const systemRouter = {
9495 activeMenu : '/system' ,
9596 parentPath : '/system' ,
9697 parentName : 'system' ,
97- permission :[ new ComplexPermission ( [ RoleConst . WORKSPACE_MANAGE . getWorkspaceRole , RoleConst . ADMIN ] , [ PermissionConst . WORKSPACE_WORKSPACE_READ ] , [ EditionConst . IS_EE ] , 'OR' ) , ] ,
98+ permission : [ new ComplexPermission ( [ RoleConst . WORKSPACE_MANAGE . getWorkspaceRole , RoleConst . ADMIN ] , [ PermissionConst . WORKSPACE_WORKSPACE_READ ] , [ EditionConst . IS_EE ] , 'OR' ) , ] ,
9899 } ,
99100 component : ( ) => import ( '@/views/workspace/index.vue' ) ,
100101 } ,
@@ -156,7 +157,7 @@ const systemRouter = {
156157 activeMenu : '/system' ,
157158 parentPath : '/system' ,
158159 parentName : 'system' ,
159- permission :[ new ComplexPermission ( [ RoleConst . WORKSPACE_MANAGE . getWorkspaceRole , RoleConst . ADMIN ] , [ PermissionConst . WORKSPACE_USER_GROUP_READ ] , [ EditionConst . IS_EE , EditionConst . IS_PE ] , 'OR' ) , ] ,
160+ permission : [ new ComplexPermission ( [ RoleConst . WORKSPACE_MANAGE . getWorkspaceRole , RoleConst . ADMIN ] , [ PermissionConst . WORKSPACE_USER_GROUP_READ ] , [ EditionConst . IS_EE , EditionConst . IS_PE ] , 'OR' ) , ] ,
160161 } ,
161162 children : [
162163 {
@@ -167,7 +168,7 @@ const systemRouter = {
167168 activeMenu : '/system' ,
168169 parentPath : '/system' ,
169170 parentName : 'system' ,
170- permission :[ new ComplexPermission ( [ RoleConst . WORKSPACE_MANAGE . getWorkspaceRole , RoleConst . ADMIN ] , [ PermissionConst . WORKSPACE_CHAT_USER_READ ] , [ EditionConst . IS_EE , EditionConst . IS_PE ] , 'OR' ) , ] ,
171+ permission : [ new ComplexPermission ( [ RoleConst . WORKSPACE_MANAGE . getWorkspaceRole , RoleConst . ADMIN ] , [ PermissionConst . WORKSPACE_CHAT_USER_READ ] , [ EditionConst . IS_EE , EditionConst . IS_PE ] , 'OR' ) , ] ,
171172 } ,
172173 component : ( ) => import ( '@/views/system-chat-user/user-manage/index.vue' ) ,
173174 } ,
@@ -179,7 +180,7 @@ const systemRouter = {
179180 activeMenu : '/system' ,
180181 parentPath : '/system' ,
181182 parentName : 'system' ,
182- permission :[ new ComplexPermission ( [ RoleConst . WORKSPACE_MANAGE . getWorkspaceRole , RoleConst . ADMIN ] , [ PermissionConst . WORKSPACE_USER_GROUP_READ ] , [ EditionConst . IS_EE , EditionConst . IS_PE ] , 'OR' ) , ] ,
183+ permission : [ new ComplexPermission ( [ RoleConst . WORKSPACE_MANAGE . getWorkspaceRole , RoleConst . ADMIN ] , [ PermissionConst . WORKSPACE_USER_GROUP_READ ] , [ EditionConst . IS_EE , EditionConst . IS_PE ] , 'OR' ) , ] ,
183184 } ,
184185 component : ( ) => import ( '@/views/system-chat-user/group/index.vue' ) ,
185186 } ,
@@ -191,8 +192,8 @@ const systemRouter = {
191192 activeMenu : '/system' ,
192193 parentPath : '/system' ,
193194 parentName : 'system' ,
194- permission :[ new ComplexPermission ( [ RoleConst . WORKSPACE_MANAGE . getWorkspaceRole , RoleConst . ADMIN ] ,
195- [ PermissionConst . CHAT_USER_AUTH_READ ] , [ EditionConst . IS_EE , EditionConst . IS_PE ] , 'OR' ) , ] ,
195+ permission : [ new ComplexPermission ( [ RoleConst . WORKSPACE_MANAGE . getWorkspaceRole , RoleConst . ADMIN ] ,
196+ [ PermissionConst . CHAT_USER_AUTH_READ ] , [ EditionConst . IS_EE , EditionConst . IS_PE ] , 'OR' ) , ] ,
196197 } ,
197198 component : ( ) => import ( '@/views/system-chat-user/authentication/index.vue' ) ,
198199 } ,
@@ -248,6 +249,20 @@ const systemRouter = {
248249 } ,
249250 ] ,
250251 } ,
252+ {
253+ path : '/operate' ,
254+ name : 'operate' ,
255+ meta : {
256+ icon : 'app-document' ,
257+ iconActive : 'app-document-active' ,
258+ title : 'views.operateLog.title' ,
259+ activeMenu : '/system' ,
260+ parentPath : '/system' ,
261+ parentName : 'system' ,
262+ permission : [ EditionConst . IS_PE , EditionConst . IS_EE ] ,
263+ } ,
264+ component : ( ) => import ( '@/views/operate-log/index.vue' )
265+ }
251266 ] ,
252267}
253268
0 commit comments