mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 09:49:20 +08:00
后端: - PermissionService: 新增 getSystemPermissionTree() 只返回系统管理分支 - PermissionController: 新增 GET /permission/system/tree 前端: - 新增 getSystemPermissionTreeApi() - 新增路由 SystemPlatformSystemPermission(系统权限) - 新增 views/system/system-permission/index.vue 多级表格展示
88 lines
2.2 KiB
TypeScript
88 lines
2.2 KiB
TypeScript
import type { RouteRecordRaw } from 'vue-router';
|
|
|
|
const routes: RouteRecordRaw[] = [
|
|
{
|
|
name: 'SystemPlatformCompany',
|
|
path: '/platform-admin/company',
|
|
component: () => import('#/views/organization/company/index.vue'),
|
|
meta: {
|
|
icon: 'lucide:building',
|
|
title: '公司管理',
|
|
requiresAuth: true,
|
|
},
|
|
},
|
|
{
|
|
name: 'SystemPlatformMenu',
|
|
path: '/platform-admin/menu',
|
|
component: () => import('#/views/system/menu/index.vue'),
|
|
meta: {
|
|
icon: 'lucide:menu',
|
|
title: '系统菜单',
|
|
requiresAuth: true,
|
|
},
|
|
},
|
|
{
|
|
name: 'SystemPlatformPermission',
|
|
path: '/platform-admin/permission',
|
|
component: () => import('#/views/system/permission/index.vue'),
|
|
meta: {
|
|
icon: 'lucide:shield-check',
|
|
title: '权限点',
|
|
requiresAuth: true,
|
|
},
|
|
},
|
|
{
|
|
name: 'SystemPlatformSystemPermission',
|
|
path: '/platform-admin/system-permission',
|
|
component: () => import('#/views/system/system-permission/index.vue'),
|
|
meta: {
|
|
icon: 'lucide:layoutDashboard',
|
|
title: '系统权限',
|
|
requiresAuth: true,
|
|
},
|
|
},
|
|
{
|
|
name: 'SystemPlatformField',
|
|
path: '/platform-admin/field',
|
|
component: () => import('#/views/system/field/index.vue'),
|
|
meta: {
|
|
icon: 'lucide:database',
|
|
title: '字段管理',
|
|
requiresAuth: true,
|
|
},
|
|
},
|
|
{
|
|
name: 'SystemPlatformAccountSuper',
|
|
path: '/platform-admin/account-super',
|
|
component: () => import('#/views/organization/account-super/index.vue'),
|
|
meta: {
|
|
icon: 'lucide:user-check',
|
|
title: '平台账户管理',
|
|
requiresAuth: true,
|
|
},
|
|
},
|
|
{
|
|
name: 'SystemPlatformCompanyMenuManage',
|
|
path: '/platform-admin/company-menu-manage',
|
|
component: () => import('#/views/system/company-menu-manage/index.vue'),
|
|
meta: {
|
|
icon: 'lucide:layoutDashboard',
|
|
title: '公司菜单管理',
|
|
requiresAuth: true,
|
|
},
|
|
},
|
|
{
|
|
name: 'SystemPlatformCompanyPermissionManage',
|
|
path: '/platform-admin/company-permission-manage',
|
|
component: () =>
|
|
import('#/views/system/company-permission-manage/index.vue'),
|
|
meta: {
|
|
icon: 'lucide:shield-check',
|
|
title: '公司权限管理',
|
|
requiresAuth: true,
|
|
},
|
|
},
|
|
];
|
|
|
|
export default routes;
|