From 2b72d7077c39bba55421292265b3e7c32acf79ee Mon Sep 17 00:00:00 2001 From: gaoyunqi Date: Sat, 23 Mar 2024 12:16:42 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=BA=E6=96=B0=E5=BB=BA=E6=B5=81?= =?UTF-8?q?=E7=A8=8B=E5=8A=A0=E5=85=A5=E4=B8=80=E4=B8=AA=E7=94=A8=E4=BA=8E?= =?UTF-8?q?=E5=9B=9E=E9=80=80=E7=9A=84=E8=B5=B7=E8=8D=89=E8=8A=82=E7=82=B9?= =?UTF-8?q?=EF=BC=8C=E5=B9=B6=E6=8F=90=E7=A4=BA=E4=B8=8D=E8=83=BD=E5=88=A0?= =?UTF-8?q?=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../design/bpmn/components/BasicPanel.vue | 3 ++ .../workflow/design/bpmn/config/property.ts | 42 ++++++++++++++++++- 2 files changed, 43 insertions(+), 2 deletions(-) diff --git a/src/views/workflow/design/bpmn/components/BasicPanel.vue b/src/views/workflow/design/bpmn/components/BasicPanel.vue index 1a02b9f..4fe53ad 100644 --- a/src/views/workflow/design/bpmn/components/BasicPanel.vue +++ b/src/views/workflow/design/bpmn/components/BasicPanel.vue @@ -3,6 +3,9 @@ +
+ 草稿节点只能改名不能删除,且审批人必须为发起人,否则会导致流程审批异常。 +
{ export const initStartProperties = () => { const bpmnStore = useBpmnStore(); initProperties(getStartNodeId, BpmnNodeKey.START, t('开始节点'), bpmnStore.processInfo.processId); + initProperties('Activity_draft', BpmnNodeKey.USER, '发起审批', bpmnStore.processInfo.processId); }; // 修改流程属性 export const changeProcessProperties = async (processConfig: ProcessConfig) => { @@ -74,7 +75,27 @@ export const initProperties = (id: InfoId, type: InfoType, name: string, parentI properties.noHandler = processInfo.noHandler; properties.isPrevChooseNext = processInfo.isPrevChooseNext; } - + if (id === 'Activity_draft') { + // 将草稿节点的审批人设置为流程发起者 + properties.approverConfigs = [{ + checked:false, + id: 'Event_start_node', + memberType: 3, + name: '开始节点' + }]; + properties.countersignConfig = { + addOrRemove: 1, + finishType: 0, + multipleInstancesType: 0, + percentage: 0, + countersignList: [{ + checked: false, + id: 'Event_start_node', + memberType: 3, + name: '开始节点' + }] + } + } setProperties(id, properties); }; // 移除节点信息缓存 @@ -142,13 +163,30 @@ export const getInitializeXml = (resourceId: string) => { - + + Flow_line_draft + + + Flow_line_draft + + + + + + + + + + + + +