From ce9b6c5b885019857fbcf2e9aa7c16d02601ce5b Mon Sep 17 00:00:00 2001 From: jason <2667446@qq.com> Date: Sat, 31 May 2025 20:50:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20[BPM=20=E5=B7=A5=E4=BD=9C=E6=B5=81]=20S?= =?UTF-8?q?imple=20=E6=A8=A1=E5=9E=8B=20-=20=E6=9D=A1=E4=BB=B6=E8=8A=82?= =?UTF-8?q?=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/nodes/exclusive-node.vue | 277 ++++++++++++++++++ .../components/process-node-tree.vue | 7 +- .../styles/simple-process-designer.scss | 4 +- 3 files changed, 283 insertions(+), 5 deletions(-) create mode 100644 apps/web-antd/src/components/simple-process-design/components/nodes/exclusive-node.vue diff --git a/apps/web-antd/src/components/simple-process-design/components/nodes/exclusive-node.vue b/apps/web-antd/src/components/simple-process-design/components/nodes/exclusive-node.vue new file mode 100644 index 000000000..3ac884ad3 --- /dev/null +++ b/apps/web-antd/src/components/simple-process-design/components/nodes/exclusive-node.vue @@ -0,0 +1,277 @@ + + + + + + + + + 添加条件 + + + + + + + + + + + + + + + + + + + + {{ item.name }} + + 优先级{{ index + 1 }} + + + + {{ item.showText }} + + + {{ NODE_DEFAULT_TEXT.get(NodeType.CONDITION_NODE) }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/web-antd/src/components/simple-process-design/components/process-node-tree.vue b/apps/web-antd/src/components/simple-process-design/components/process-node-tree.vue index d8681f3e3..fadf8b3ad 100644 --- a/apps/web-antd/src/components/simple-process-design/components/process-node-tree.vue +++ b/apps/web-antd/src/components/simple-process-design/components/process-node-tree.vue @@ -5,6 +5,7 @@ import { NodeType } from '../consts'; import { useWatchNode } from '../helpers'; import CopyTaskNode from './nodes/copy-task-node.vue'; import EndEventNode from './nodes/end-event-node.vue'; +import ExclusiveNode from './nodes/exclusive-node.vue'; import InclusiveNode from './nodes/inclusive-node.vue'; import StartUserNode from './nodes/start-user-node.vue'; import TriggerNode from './nodes/trigger-node.vue'; @@ -86,12 +87,12 @@ const recursiveFindParentNode = ( @update:flow-node="handleModelValueUpdate" /> - + @find-parent-node="findParentNode" + />