feat(ui): 详情页父子导航/列表链接按钮/办件详情内嵌流程图(办件进度抽屉数据源就绪)
build / build (push) Successful in 3m6s

This commit is contained in:
chenxing
2026-09-17 01:03:59 +08:00
parent e52c4324f6
commit 429a7f9152
9 changed files with 55 additions and 28 deletions
+4 -1
View File
@@ -49,7 +49,7 @@ const menuArr = computed(() => flaten(modList.value));
const routeChange = (to: any) => {
const meta: any = to.meta || {};
const { modId, title, parentId } = meta;
const { modId, title } = meta;
const navArr: any[] = [];
// 优先按 path 匹配菜单(平台模块 id 与路由 meta.modId 不保证一致),
@@ -68,6 +68,9 @@ const routeChange = (to: any) => {
return;
}
// 详情页父级(左侧高亮 + 面包屑"父页>本页"):路由 meta.parentId 静态默认,
// 可被来源列表跳转时的 ?pid=<父菜单modId> 动态覆盖(同一详情页多个入口,UserBase 同款范式)
const parentId = Number(to.query?.pid) || meta.parentId;
if (parentId) {
const parent = menuArr.value.find((x: any) => x.modId === parentId);
if (parent) {