155 lines
4.1 KiB
TypeScript
155 lines
4.1 KiB
TypeScript
import type { AppRouteRecord } from '@/types/router'
|
|
|
|
/**
|
|
* 前端路由(Demo 参考页 + 系统管理)
|
|
* 与后端菜单对齐时请同步 `backend/app/api/menu.py`。
|
|
*/
|
|
export const sqxpAdminRoutes: AppRouteRecord[] = [
|
|
{
|
|
id: '10000000000000000000000000000002',
|
|
name: 'Demo',
|
|
path: '/demo',
|
|
component: '/index/index',
|
|
meta: {
|
|
title: 'Demo',
|
|
icon: 'grid',
|
|
keepAlive: false,
|
|
roles: ['admin']
|
|
},
|
|
children: [
|
|
{
|
|
id: '10000000000000000000000000000001_child',
|
|
name: 'Console',
|
|
path: 'console',
|
|
component: '/dashboard/console/index',
|
|
meta: {
|
|
title: '工作台',
|
|
icon: 'home-filled',
|
|
keepAlive: true,
|
|
fixedTab: true,
|
|
menuCode: 'dashboard'
|
|
}
|
|
},
|
|
{
|
|
id: '10000000000000000000000000000005',
|
|
name: 'Unit',
|
|
path: 'unit',
|
|
component: '/system/unit/index',
|
|
meta: { title: '商品单位', keepAlive: true }
|
|
},
|
|
{
|
|
id: '10000000000000000000000000000021',
|
|
name: 'OrderList',
|
|
path: 'order',
|
|
component: '/system/order/index',
|
|
meta: { title: '订单列表', keepAlive: true }
|
|
},
|
|
{
|
|
id: '10000000000000000000000000000006',
|
|
name: 'Product',
|
|
path: 'product',
|
|
component: '/system/product/index',
|
|
meta: { title: '商品管理', keepAlive: true }
|
|
},
|
|
{
|
|
id: '10000000000000000000000000000004',
|
|
name: 'Category',
|
|
path: 'category',
|
|
component: '/system/category/index',
|
|
meta: { title: '商品分类', keepAlive: true }
|
|
}
|
|
]
|
|
},
|
|
{
|
|
id: '20000000000000000000000000000001',
|
|
name: 'System',
|
|
path: '/system',
|
|
component: '/index/index',
|
|
meta: {
|
|
title: '系统管理',
|
|
icon: 'setting',
|
|
keepAlive: false,
|
|
roles: ['admin']
|
|
},
|
|
children: [
|
|
{
|
|
id: '20000000000000000000000000000002',
|
|
name: 'Tenant',
|
|
path: 'tenant',
|
|
component: '/system/tenant/index',
|
|
meta: { title: '租户管理', keepAlive: true }
|
|
},
|
|
{
|
|
id: 'user-management-route',
|
|
name: 'SystemUser',
|
|
path: 'user',
|
|
component: '/system/user/index',
|
|
meta: { title: '用户管理', keepAlive: true }
|
|
},
|
|
{
|
|
id: 'user-detail-route',
|
|
name: 'SystemUserDetail',
|
|
path: 'user/detail',
|
|
component: '/system/user/detail',
|
|
meta: { title: '用户详情', isHide: true, keepAlive: true }
|
|
},
|
|
{
|
|
id: 'role-management-route',
|
|
name: 'SystemRole',
|
|
path: 'role',
|
|
component: '/system/role/index',
|
|
meta: { title: '角色管理', keepAlive: true }
|
|
},
|
|
{
|
|
id: 'menu-management-route',
|
|
name: 'SystemMenu',
|
|
path: 'menu',
|
|
component: '/system/menu/index',
|
|
meta: { title: '菜单管理', keepAlive: true }
|
|
},
|
|
{
|
|
id: 'dept-management-route',
|
|
name: 'SystemDept',
|
|
path: 'dept',
|
|
component: '/system/dept/index',
|
|
meta: { title: '组织管理', keepAlive: true }
|
|
},
|
|
{
|
|
id: 'dict-management-route',
|
|
name: 'SystemDict',
|
|
path: 'dict',
|
|
component: '/system/dict/index',
|
|
meta: { title: '字典管理', keepAlive: true }
|
|
},
|
|
{
|
|
id: 'site-management-route',
|
|
name: 'SystemSite',
|
|
path: 'site',
|
|
component: '/system/site/index',
|
|
meta: { title: '站点管理', keepAlive: true }
|
|
},
|
|
{
|
|
id: 'post-management-route',
|
|
name: 'SystemPost',
|
|
path: 'post',
|
|
component: '/system/post/index',
|
|
meta: { title: '职位管理', keepAlive: true }
|
|
},
|
|
{
|
|
id: 'unit-management-route',
|
|
name: 'SystemUnit',
|
|
path: 'unit',
|
|
component: '/system/unit/index',
|
|
meta: { title: '物品单位', keepAlive: true }
|
|
},
|
|
{
|
|
id: 'express-management-route',
|
|
name: 'SystemExpress',
|
|
path: 'express',
|
|
component: '/system/express/index',
|
|
meta: { title: '快递公司管理', keepAlive: true }
|
|
}
|
|
]
|
|
}
|
|
]
|