2025-07-04 17:16:38 +08:00
|
|
|
|
import { RoutesAlias } from '../routesAlias'
|
|
|
|
|
|
import { AppRouteRecord } from '@/types/router'
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 菜单列表、异步路由
|
|
|
|
|
|
*
|
|
|
|
|
|
* 支持两种模式:
|
|
|
|
|
|
* 1. 前端静态配置 - 直接使用本文件中定义的路由配置
|
|
|
|
|
|
* 2. 后端动态配置 - 后端返回菜单数据,前端解析生成路由
|
|
|
|
|
|
*
|
|
|
|
|
|
* 菜单标题(title):
|
|
|
|
|
|
* 可以是 i18n 的 key,也可以是字符串,比如:'用户列表'
|
|
|
|
|
|
*/
|
|
|
|
|
|
export const asyncRoutes: AppRouteRecord[] = [
|
2025-07-22 16:35:43 +08:00
|
|
|
|
{
|
|
|
|
|
|
path: '/admin/inquiry_system',
|
|
|
|
|
|
name: 'Inquiry_system',
|
|
|
|
|
|
component: RoutesAlias.inquirySystem,
|
|
|
|
|
|
meta: {
|
2025-07-22 17:00:25 +08:00
|
|
|
|
title: '询单系统'
|
2025-07-22 16:35:43 +08:00
|
|
|
|
}
|
|
|
|
|
|
},
|
2025-07-04 17:16:38 +08:00
|
|
|
|
{
|
2025-07-21 11:24:06 +08:00
|
|
|
|
path: '/crmpc/customer/add',
|
|
|
|
|
|
name: 'CrmpcustomerAdd',
|
|
|
|
|
|
component: RoutesAlias.CrmpcustomerAdd,
|
2025-07-04 17:16:38 +08:00
|
|
|
|
meta: {
|
2025-07-21 11:24:06 +08:00
|
|
|
|
title: '新增客户资料',
|
2025-07-22 17:00:25 +08:00
|
|
|
|
isHide: true
|
2025-07-21 11:24:06 +08:00
|
|
|
|
// isHideTab: true
|
|
|
|
|
|
}
|
2025-07-04 17:16:38 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2025-07-21 11:24:06 +08:00
|
|
|
|
path: '/crmpc/customer/show',
|
|
|
|
|
|
name: 'CrmpcustomerShow',
|
|
|
|
|
|
component: RoutesAlias.CrmpcustomerShow,
|
2025-07-04 17:16:38 +08:00
|
|
|
|
meta: {
|
2025-07-21 11:24:06 +08:00
|
|
|
|
title: '客户资料',
|
2025-07-22 17:00:25 +08:00
|
|
|
|
isHide: true
|
2025-07-21 11:24:06 +08:00
|
|
|
|
// isHideTab: true
|
|
|
|
|
|
}
|
2025-07-04 17:16:38 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2025-07-21 11:24:06 +08:00
|
|
|
|
path: '/crmpc/customer/edit',
|
|
|
|
|
|
name: 'CrmpcustomerEdit',
|
|
|
|
|
|
component: RoutesAlias.CrmpcustomerEdit,
|
2025-07-04 17:16:38 +08:00
|
|
|
|
meta: {
|
2025-07-21 11:24:06 +08:00
|
|
|
|
title: '编辑客户资料',
|
2025-07-22 17:00:25 +08:00
|
|
|
|
isHide: true
|
2025-07-21 11:24:06 +08:00
|
|
|
|
// isHideTab: true
|
|
|
|
|
|
}
|
2025-07-04 17:16:38 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2025-07-21 11:24:06 +08:00
|
|
|
|
path: '/crmpc/customer/followadd',
|
|
|
|
|
|
name: 'CustomerFollowAdd',
|
|
|
|
|
|
component: RoutesAlias.CrmpcustomerFollowadd,
|
2025-07-04 17:16:38 +08:00
|
|
|
|
meta: {
|
2025-07-21 11:24:06 +08:00
|
|
|
|
title: '添加跟进',
|
2025-07-22 17:00:25 +08:00
|
|
|
|
isHide: true
|
2025-07-21 11:24:06 +08:00
|
|
|
|
// isHideTab: true
|
|
|
|
|
|
}
|
2025-07-04 17:16:38 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2025-07-21 11:24:06 +08:00
|
|
|
|
path: '/crmpc/recycle',
|
|
|
|
|
|
name: 'Recycle',
|
|
|
|
|
|
component: RoutesAlias.recycle,
|
2025-07-04 17:16:38 +08:00
|
|
|
|
meta: {
|
2025-07-21 11:24:06 +08:00
|
|
|
|
title: '回收站',
|
|
|
|
|
|
isHide: true
|
|
|
|
|
|
}
|
2025-07-22 17:00:25 +08:00
|
|
|
|
}
|
2025-07-04 17:16:38 +08:00
|
|
|
|
]
|