mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-23 23:59:19 +08:00
refactor: 超级管理→平台管理,路径重构
数据库: - 超级管理 → 平台管理 (ID=40, path=/system/platform-admin) - 所有子菜单 path 统一为 /system/platform/... 前端: - views/organization/company-menu-manage → views/system/platform/company-menu-manage.vue - views/organization/company-permission-manage → views/system/platform/company-permission-manage.vue - system.ts 路由重构:平台管理作为父级,下属7个子页面
This commit is contained in:
@@ -59,26 +59,7 @@ const routes: RouteRecordRaw[] = [
|
||||
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: '公司权限管理',
|
||||
},
|
||||
},
|
||||
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
@@ -3,15 +3,24 @@ import type { RouteRecordRaw } from 'vue-router';
|
||||
const routes: RouteRecordRaw[] = [
|
||||
{
|
||||
meta: {
|
||||
icon: 'lucide:settings',
|
||||
order: 999,
|
||||
title: '系统管理',
|
||||
icon: 'lucide:shield',
|
||||
order: 100,
|
||||
title: '平台管理',
|
||||
},
|
||||
name: 'System',
|
||||
path: '/system',
|
||||
name: 'SystemPlatform',
|
||||
path: '/system/platform-admin',
|
||||
children: [
|
||||
{
|
||||
name: 'MenuManagement',
|
||||
name: 'PlatformCompanyManagement',
|
||||
path: '/system/company',
|
||||
component: () => import('#/views/organization/company/index.vue'),
|
||||
meta: {
|
||||
icon: 'lucide:building',
|
||||
title: '公司管理',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'PlatformMenuManagement',
|
||||
path: '/system/menu-management',
|
||||
component: () => import('#/views/system/menu/index.vue'),
|
||||
meta: {
|
||||
@@ -19,6 +28,51 @@ const routes: RouteRecordRaw[] = [
|
||||
title: '菜单管理',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'PlatformPermissionManagement',
|
||||
path: '/system/permission-management',
|
||||
component: () => import('#/views/system/permission/index.vue'),
|
||||
meta: {
|
||||
icon: 'lucide:shield-check',
|
||||
title: '权限码管理',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'PlatformFieldManagement',
|
||||
path: '/system/field-management',
|
||||
component: () => import('#/views/system/field/index.vue'),
|
||||
meta: {
|
||||
icon: 'lucide:database',
|
||||
title: '字段管理',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'PlatformAccountSuperManagement',
|
||||
path: '/system/account-super-management',
|
||||
component: () => import('#/views/organization/account-super/index.vue'),
|
||||
meta: {
|
||||
icon: 'lucide:user-check',
|
||||
title: '账户管理-超管',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'PlatformCompanyMenuAssign',
|
||||
path: '/system/platform/company-menu-manage',
|
||||
component: () => import('#/views/system/platform/company-menu-manage.vue'),
|
||||
meta: {
|
||||
icon: 'lucide:layoutDashboard',
|
||||
title: '公司菜单管理',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'PlatformCompanyPermissionAssign',
|
||||
path: '/system/platform/company-permission-manage',
|
||||
component: () => import('#/views/system/platform/company-permission-manage.vue'),
|
||||
meta: {
|
||||
icon: 'lucide:shield-check',
|
||||
title: '公司权限管理',
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user