From e8193a0aa0340bca1bcee4790deb7e8de4586735 Mon Sep 17 00:00:00 2001 From: jason <2667446@qq.com> Date: Tue, 30 Apr 2024 00:10:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BF=E9=92=89=E9=92=89=E6=B5=81=E7=A8=8B?= =?UTF-8?q?=E8=AE=BE=E8=AE=A1=E5=99=A8-=20=E5=AE=8C=E5=96=84=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E5=88=86=E6=94=AF=E8=8A=82=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/NodeHandler.vue | 4 +- .../SimpleProcessDesignerV2/src/consts.ts | 3 +- .../src/nodes-config/ConditionNodeConfig.vue | 18 ++-- .../src/nodes/CopyTaskNode.vue | 2 +- .../src/nodes/ExclusiveNode.vue | 84 +++++++++++-------- .../src/nodes/UserTaskNode.vue | 2 +- .../theme/simple-process-designer.scss | 62 +++++++++++++- 7 files changed, 123 insertions(+), 52 deletions(-) diff --git a/src/components/SimpleProcessDesignerV2/src/NodeHandler.vue b/src/components/SimpleProcessDesignerV2/src/NodeHandler.vue index b885b1c4..73183b14 100644 --- a/src/components/SimpleProcessDesignerV2/src/NodeHandler.vue +++ b/src/components/SimpleProcessDesignerV2/src/NodeHandler.vue @@ -100,7 +100,7 @@ const addNode = (type: number) => { childNode: undefined, attributes: { conditionType: 1, - defaultCondition: false + defaultFlow: false } }, { @@ -111,7 +111,7 @@ const addNode = (type: number) => { childNode: undefined, attributes: { conditionType: undefined, - defaultCondition: true + defaultFlow: true } } ] diff --git a/src/components/SimpleProcessDesignerV2/src/consts.ts b/src/components/SimpleProcessDesignerV2/src/consts.ts index 2648d820..69afb993 100644 --- a/src/components/SimpleProcessDesignerV2/src/consts.ts +++ b/src/components/SimpleProcessDesignerV2/src/consts.ts @@ -115,6 +115,5 @@ export const APPROVE_METHODS: DictDataVO [] = [ ] export const CONDITION_CONFIG_TYPES: DictDataVO [] = [ - { label: '条件规则', value: 1 }, - { label: '条件表达式', value: 2 } + { label: '自定义条件表达式', value: 1 } ] diff --git a/src/components/SimpleProcessDesignerV2/src/nodes-config/ConditionNodeConfig.vue b/src/components/SimpleProcessDesignerV2/src/nodes-config/ConditionNodeConfig.vue index 23e3cc6c..c449af1b 100644 --- a/src/components/SimpleProcessDesignerV2/src/nodes-config/ConditionNodeConfig.vue +++ b/src/components/SimpleProcessDesignerV2/src/nodes-config/ConditionNodeConfig.vue @@ -13,10 +13,10 @@