From a3aa012d6c826ae5e896cbdb133be0e9afe4328b Mon Sep 17 00:00:00 2001 From: duxingchen Date: Tue, 1 Sep 2026 14:25:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E5=8A=A8=E7=AB=AF=E6=B5=81?= =?UTF-8?q?=E8=BD=AC=E6=A0=91=E4=BF=AE=E5=A4=8D=E6=96=AD=E6=9D=A1=E7=AE=AD?= =?UTF-8?q?=E5=A4=B4=E4=B8=8E=E5=88=86=E6=94=AF=E5=B1=82=E7=BA=A7=E5=A1=8C?= =?UTF-8?q?=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 父节点与第一个主线子节点之间补 ↓ 连线箭头 - 新增 isBranchContext prop:进入分支后子子孙孙强制缩进,不再回主干道 --- track-uniapp/src/pages/scan/components/FlowTree.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/track-uniapp/src/pages/scan/components/FlowTree.vue b/track-uniapp/src/pages/scan/components/FlowTree.vue index 55fd03f..7486050 100644 --- a/track-uniapp/src/pages/scan/components/FlowTree.vue +++ b/track-uniapp/src/pages/scan/components/FlowTree.vue @@ -21,6 +21,8 @@ + + - + !c.parent_task_id || c.task_type === "TRANSFER" || c.task_type === "RECOVERY" ); }, // 分支子任务:其余(SPAWN 协助等),缩进显示 + // 分支上下文拦截:处于分支时,全部子任务都作为分支继续缩进 branchChildren() { + if (this.isBranchContext) return this.node.child_tasks || []; return (this.node.child_tasks || []).filter((c) => c.parent_task_id && c.task_type !== "TRANSFER" && c.task_type !== "RECOVERY" );