提交
This commit is contained in:
1 parent
c3be9d1dce
commit
299609706c
328 files changed
+144899
-13873
No files matched your search
@@ -1,8 +1,9 @@
|
||||
import { AppRouteRecord } from '@/types/router'
|
||||
import { sqxpAdminRoutes } from './sqxp'
|
||||
import { plRoutes } from './pl'
|
||||
|
||||
/**
|
||||
* 动态菜单与路由(前端权限模式 VITE_ACCESS_MODE=frontend 时使用)
|
||||
* 山峡化工业务菜单,与 backend/app/api/menu.py 中 get_admin_menu_list 对齐
|
||||
*/
|
||||
export const routeModules: AppRouteRecord[] = [...sqxpAdminRoutes]
|
||||
export const routeModules: AppRouteRecord[] = [...sqxpAdminRoutes, ...plRoutes]
|
||||
@@ -0,0 +1,121 @@
|
||||
import { AppRouteRecord } from '@/types/router'
|
||||
|
||||
/**
|
||||
* 运输管理路由
|
||||
*/
|
||||
export const plRoutes: AppRouteRecord[] = [
|
||||
{
|
||||
id: 'PL000000000000000000000000000001',
|
||||
name: 'TransportPlan',
|
||||
path: '/pl',
|
||||
component: '/index/index',
|
||||
meta: { title: '运输管理', icon: 'ri:truck-line', keepAlive: false, roles: ['admin'] },
|
||||
children: [
|
||||
{
|
||||
id: 'PL00000000000000000000000000002',
|
||||
name: 'PlCarrier',
|
||||
path: 'carrier',
|
||||
component: '/pl/carrier/index',
|
||||
meta: { title: '承运商管理', keepAlive: true, menuCode: 'pl:carrier:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000003',
|
||||
name: 'PlVehicle',
|
||||
path: 'vehicle',
|
||||
component: '/pl/vehicle/index',
|
||||
meta: { title: '车辆管理', keepAlive: true, menuCode: 'pl:vehicle:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000003S',
|
||||
name: 'PlSelfVehicle',
|
||||
path: 'self-vehicle',
|
||||
component: '/pl/self-vehicle/index',
|
||||
meta: { title: '山峡自有车辆', keepAlive: true, menuCode: 'pl:self-vehicle:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000004',
|
||||
name: 'PlPersonnel',
|
||||
path: 'personnel',
|
||||
component: '/pl/personnel/index',
|
||||
meta: { title: '人员管理', keepAlive: true, menuCode: 'pl:driver:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000004R',
|
||||
name: 'PlDriverRedirect',
|
||||
path: 'driver',
|
||||
redirect: '/pl/personnel',
|
||||
meta: { title: '司机管理', isHide: true, menuCode: 'pl:driver:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000010',
|
||||
name: 'PlPlan',
|
||||
path: 'plan',
|
||||
component: '/pl/plan/index',
|
||||
meta: { title: '运输计划', keepAlive: true, menuCode: 'pl:plan:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000015',
|
||||
name: 'PlPlanCert',
|
||||
path: 'plan-cert',
|
||||
component: '/pl/plan-cert/index',
|
||||
meta: { title: '危化品证上传', keepAlive: true, menuCode: 'pl:plan-cert:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000011',
|
||||
name: 'PlPlanCreate',
|
||||
path: 'plan/create',
|
||||
component: '/pl/plan/form',
|
||||
meta: { title: '新增计划', keepAlive: false, isHide: true, menuCode: 'pl:plan:add' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000012',
|
||||
name: 'PlPlanEdit',
|
||||
path: 'plan/edit/:id',
|
||||
component: '/pl/plan/form',
|
||||
meta: { title: '编辑计划', keepAlive: false, isHide: true, menuCode: 'pl:plan:edit' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000013',
|
||||
name: 'PlPlanDetail',
|
||||
path: 'plan/detail/:id',
|
||||
component: '/pl/plan/detail',
|
||||
meta: { title: '计划详情', keepAlive: false, isHide: true, menuCode: 'pl:plan:query' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000014',
|
||||
name: 'PlPlanArrange',
|
||||
path: 'plan/arrange/:id',
|
||||
component: '/pl/plan/arrange',
|
||||
meta: { title: '运输安排', keepAlive: false, isHide: true, menuCode: 'pl:plan:arrange' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000020',
|
||||
name: 'PlTransport',
|
||||
path: 'transport',
|
||||
component: '/pl/transport/index',
|
||||
meta: { title: '运输管理', keepAlive: true, isHide: true, menuCode: 'pl:transport:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000030',
|
||||
name: 'PlFreight',
|
||||
path: 'freight',
|
||||
component: '/pl/freight/index',
|
||||
meta: { title: '运费结算', keepAlive: true, menuCode: 'pl:freight:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000040',
|
||||
name: 'PlInventory',
|
||||
path: 'inventory',
|
||||
component: '/pl/inventory/ledger',
|
||||
meta: { title: '库存台账', keepAlive: true, isHide: true, menuCode: 'pl:inventory:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000050',
|
||||
name: 'PlDocumentReminder',
|
||||
path: 'document-reminder',
|
||||
component: '/pl/inventory/document-reminder',
|
||||
meta: { title: '证件提醒', keepAlive: true, menuCode: 'pl:document:list' }
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -1,12 +1,12 @@
|
||||
import type { AppRouteRecord } from '@/types/router'
|
||||
|
||||
/**
|
||||
* 前端路由(控制台、报销管理、CRM 管理、地磅管理、工作流管理、系统管理)
|
||||
* 前端路由(报销管理、CRM 管理、地磅管理、工作流管理、系统管理;运输见 pl.ts)
|
||||
* 与后端菜单对齐时请同步 `sys_menu`(bx 见 docs/sql/20260606_bx_menu.sql;db 见 docs/sql/20260607_db_menu.sql)。
|
||||
*/
|
||||
export const sqxpAdminRoutes: AppRouteRecord[] = [
|
||||
// ──────────────────────────────────────────────
|
||||
// 1. 控制台(Dashboard)
|
||||
// 控制台(已废弃,门户布局不展示;路由保留兼容旧链接)
|
||||
// ──────────────────────────────────────────────
|
||||
{
|
||||
id: 'DSH000000000000000000000000000001',
|
||||
@@ -17,6 +17,7 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [
|
||||
title: '控制台',
|
||||
icon: 'ri:dashboard-line',
|
||||
keepAlive: false,
|
||||
isHide: true,
|
||||
roles: ['admin']
|
||||
}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user