Browse Source

fix:调整路由

main
xuziqiang 4 months ago
parent
commit
be09e531b9
  1. 2
      hx-ai-intelligent/src/directives/permission.ts
  2. 48
      hx-ai-intelligent/src/router/organizationManage.ts

2
hx-ai-intelligent/src/directives/permission.ts

@ -7,8 +7,6 @@ import type { App, Directive, DirectiveBinding } from 'vue';
import { authorizationService } from '/nerv-lib/saas/store/modules/authorization-service'; import { authorizationService } from '/nerv-lib/saas/store/modules/authorization-service';
function isAuth(el: Element, binding: any) { function isAuth(el: Element, binding: any) {
console.log(el, binding);
const { checkPermission, checkAllPermission, checkPermissionRouter } = authorizationService(); const { checkPermission, checkAllPermission, checkPermissionRouter } = authorizationService();
const { value, modifiers } = binding; const { value, modifiers } = binding;

48
hx-ai-intelligent/src/router/organizationManage.ts

@ -14,49 +14,23 @@ const organizationManage = {
children: [ children: [
{ {
path: 'index', path: 'index',
name: 'userManageIndex', name: 'UserManageIndex',
component: () => import('/@/view/organizationManage/usermanage/index.vue'), component: () => import('/@/view/organizationManage/usermanage/index.vue'),
meta: { meta: {
title: '用户管理', title: '用户管理',
keepAlive: true, keepAlive: true,
isCheck: false,
operates: [ operates: [
{ title: '新增', code: 'userAdd' }, { title: '新增', code: 'userAdd' },
{ { title: '导入', code: 'userImport' },
title: '导入', { title: '模板下载', code: 'userTemDownload' },
code: 'userImport', { title: '导出', code: 'userExports' },
}, { title: '批量删除', code: 'userBatchDel' },
{ { title: '编辑', code: 'userEdit' },
title: '模板下载', { title: '冻结', code: 'userFrozen' },
code: 'userTemDownload', { title: '解冻', code: 'userUnFrozen' },
}, { title: '重置密码', code: 'userCodeReset' },
{ { title: '删除', code: 'userDelete' },
title: '导出',
code: 'userExports',
},
{
title: '批量删除',
code: 'userBatchDel',
},
{
title: '编辑',
code: 'userEdit',
},
{
title: '冻结',
code: 'userFrozen',
},
{
title: '解冻',
code: 'userUnFrozen',
},
{
title: '重置密码',
code: 'userCodeReset',
},
{
title: '删除',
code: 'userDelete',
},
], ],
// backApi: [], // backApi: [],
}, },

Loading…
Cancel
Save