This commit is contained in:
@@ -7,6 +7,10 @@ import type { RouteRecordRaw } from "vue-router";
|
||||
* ② meta.modId = 对应 app_module.custom_id(后端 FlowBaseController 取 custom_id 作 modId)。
|
||||
* 数据/授权维护见 UserBase 侧「模块管理」与 flow-center接入UserBase菜单.sql。
|
||||
* 办理页 /task/:taskId 为 UserMsg jumpPath 落地页(不挂菜单)。
|
||||
* <p>
|
||||
* 详情/深链页(不挂菜单)通过 meta.parentId 关联父级菜单(UserBase 同款范式):左侧菜单保持
|
||||
* 父级高亮、面包屑补全"父页>本页"。同一详情页可能被多个列表进入(如办件详情既可从"我的办件"
|
||||
* 也可从"办件记录"),此时列表页跳转带 ?pid=<父菜单modId> 动态覆盖 meta.parentId 静态默认。
|
||||
*/
|
||||
const routes: RouteRecordRaw[] = [
|
||||
{
|
||||
@@ -25,20 +29,21 @@ const routes: RouteRecordRaw[] = [
|
||||
path: "/task/:taskId",
|
||||
name: "flow_task_handle",
|
||||
component: () => import("@/views/flow/TaskHandle.vue"),
|
||||
meta: { title: "任务办理" },
|
||||
// 父级默认指向我的待办所在的"工作台"(外部消息落地页无 pid,走静态默认)
|
||||
meta: { title: "任务办理", parentId: 100 },
|
||||
},
|
||||
{
|
||||
path: "/instance/:instanceId",
|
||||
name: "flow_instance_detail",
|
||||
component: () => import("@/views/flow/InstanceDetail.vue"),
|
||||
meta: { title: "办件详情" },
|
||||
meta: { title: "办件详情", parentId: 102 },
|
||||
},
|
||||
{
|
||||
// 流程示意图深链页(不挂菜单,同 /task/:taskId 模式);跨应用入口 window.open 整页跳转
|
||||
path: "/diagram",
|
||||
name: "flow_diagram",
|
||||
component: () => import("@/views/flow/FlowDiagram.vue"),
|
||||
meta: { title: "流程示意图" },
|
||||
meta: { title: "流程示意图", parentId: 103 },
|
||||
},
|
||||
{
|
||||
path: "/admin/instances",
|
||||
@@ -58,7 +63,7 @@ const routes: RouteRecordRaw[] = [
|
||||
path: "/admin/defs/editor",
|
||||
name: "flow_def_editor",
|
||||
component: () => import("@/views/flow/admin/def-editor/index.vue"),
|
||||
meta: { title: "流程编辑器" },
|
||||
meta: { title: "流程编辑器", parentId: 103 },
|
||||
},
|
||||
{
|
||||
path: "/admin/maps",
|
||||
|
||||
Reference in New Issue
Block a user