20260914223013

This commit is contained in:
oneao committed 2026-09-14 22:30:13 +08:00
1 parent 549c8bd2eb
commit 63514476d7
60 files changed
+6478 -2004

No files matched your search

+39 -5
View File
@@ -107,10 +107,10 @@ export const routes = [
moduleId: 'v_b_othercompany',
},
},
// 往来单位详情:新增与编辑都在此页完成(:id = 'new' 表示新建)。
// 带动态段,因此不会出现在菜单管理的「路由地址」下拉里(见 collectMenuRoutes)。
// 往来单位详情:新增与编辑都在此页完成(不带参数为新增,?id=xxx 为编辑)。
// 静态路径,靠 EXCLUDED_PATHS 排除出菜单管理的「路由地址」下拉。
{
path: '/base/othercompany/detail/:id',
path: '/base/othercompany/detail',
name: 'base-othercompany-detail',
component: () => import('@/views/base/othercompany/detail.vue'),
meta: {
@@ -119,6 +119,40 @@ export const routes = [
moduleId: 'v_b_othercompany',
},
},
// 基础数据:联系人 —— 元数据驱动列表,新增 / 编辑跳详情页(v_b_contact)
{
path: '/base/contact',
name: 'base-contact',
component: () => import('@/views/base/contact/index.vue'),
meta: {
title: '联系人',
componentName: 'BaseContact',
moduleId: 'v_b_contact',
},
},
// 联系人详情:新增与编辑都在此页完成(不带参数为新增,?id=xxx 为编辑)。
// 静态路径,靠 EXCLUDED_PATHS 排除出菜单管理的「路由地址」下拉。
{
path: '/base/contact/detail',
name: 'base-contact-detail',
component: () => import('@/views/base/contact/detail.vue'),
meta: {
title: '联系人详情',
componentName: 'BaseContactDetail',
moduleId: 'v_b_contact',
},
},
// 基础数据:其他数据 —— 左分类树 + 右可编辑列表(根模块 base_otherdata)
{
path: '/base/otherdata',
name: 'base-otherdata',
component: () => import('@/views/base/otherdata/index.vue'),
meta: {
title: '其他数据',
componentName: 'BaseOtherdata',
moduleId: 'base_otherdata',
},
},
],
},
{
@@ -127,8 +161,8 @@ export const routes = [
},
]
/** 不作为菜单入口的路由:独立布局、无需登录即可访问的页面 */
const EXCLUDED_PATHS = new Set(['/login'])
/** 不作为菜单入口的路由:独立布局页(/login)与详情页(静态路径,无法靠动态段规则排除) */
const EXCLUDED_PATHS = new Set(['/login', '/base/othercompany/detail', '/base/contact/detail'])
/**
* 收集可作为菜单入口的页面路由(递归展开布局容器与分组节点)。