mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 04:29:20 +08:00
- 数据库:新增超级管理目录(sys_menu ID=40),将原超管专属菜单移入其下 - 新增公司菜单管理页面(公司菜单管理):左右分栏,公司列表+菜单树勾选 - 新增公司权限管理页面(公司权限管理):左右分栏,公司列表+权限码勾选 - 路由:/organization/company-menu-manage 和 /organization/company-permission-manage - 公司菜单管理/公司权限管理分配给职位1
87 lines
2.3 KiB
TypeScript
87 lines
2.3 KiB
TypeScript
import type { RouteRecordRaw } from 'vue-router';
|
|
|
|
const routes: RouteRecordRaw[] = [
|
|
{
|
|
meta: {
|
|
icon: 'lucide:building-2',
|
|
order: 200,
|
|
title: '组织管理',
|
|
},
|
|
name: 'Organization',
|
|
path: '/organization',
|
|
children: [
|
|
{
|
|
name: 'CompanyManagement',
|
|
path: '/organization/company-management',
|
|
component: () => import('#/views/organization/company/index.vue'),
|
|
meta: {
|
|
icon: 'lucide:building',
|
|
title: '公司管理',
|
|
},
|
|
},
|
|
{
|
|
name: 'DepartmentManagement',
|
|
path: '/organization/department-management',
|
|
component: () => import('#/views/organization/department/index.vue'),
|
|
meta: {
|
|
icon: 'lucide:users',
|
|
title: '部门管理',
|
|
},
|
|
},
|
|
{
|
|
name: 'JobManagement',
|
|
path: '/organization/position-management',
|
|
component: () => import('#/views/organization/position/index.vue'),
|
|
meta: {
|
|
icon: 'lucide:briefcase',
|
|
title: '职位管理',
|
|
},
|
|
},
|
|
{
|
|
name: 'JobMenuAssign',
|
|
path: '/organization/position-menu-assign',
|
|
component: () =>
|
|
import('#/views/organization/position-permission/index.vue'),
|
|
meta: {
|
|
icon: 'lucide:layoutDashboard',
|
|
title: '职位菜单分配',
|
|
},
|
|
},
|
|
{
|
|
name: 'JobPermissionAssign',
|
|
path: '/organization/position-permission-assign',
|
|
component: () =>
|
|
import(
|
|
'#/views/organization/position-permission-assign/index.vue'
|
|
),
|
|
meta: {
|
|
icon: 'lucide:shield-check',
|
|
title: '职位权限分配',
|
|
},
|
|
},
|
|
{
|
|
name: 'CompanyMenuAssign',
|
|
path: '/organization/company-menu-manage',
|
|
component: () =>
|
|
import('#/views/organization/company-menu-manage/index.vue'),
|
|
meta: {
|
|
icon: 'lucide:layoutDashboard',
|
|
title: '公司菜单管理',
|
|
},
|
|
},
|
|
{
|
|
name: 'CompanyPermissionAssign',
|
|
path: '/organization/company-permission-manage',
|
|
component: () =>
|
|
import('#/views/organization/company-permission-manage/index.vue'),
|
|
meta: {
|
|
icon: 'lucide:shield-check',
|
|
title: '公司权限管理',
|
|
},
|
|
},
|
|
],
|
|
},
|
|
];
|
|
|
|
export default routes;
|