From cc76b5269e160e846cc5c414b646b08631f1794f Mon Sep 17 00:00:00 2001 From: lvjunzhao <967725@dms.yudean.com> Date: Wed, 23 Apr 2025 10:08:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=89=8D=E5=90=8E=E5=AE=9A=E4=B9=89=20?= =?UTF-8?q?=E7=9A=84=E7=A9=BA=E5=80=BC=E7=BD=AE=E6=8D=A2=E6=95=B0=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bpmn/panel/process/globalEvent/Index.vue | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/views/workflow/design/bpmn/panel/process/globalEvent/Index.vue b/src/views/workflow/design/bpmn/panel/process/globalEvent/Index.vue index 936b6a6..4da074f 100644 --- a/src/views/workflow/design/bpmn/panel/process/globalEvent/Index.vue +++ b/src/views/workflow/design/bpmn/panel/process/globalEvent/Index.vue @@ -750,6 +750,9 @@ const deletePrequalifyAfterEvent = (index) => { }; const addGlobalFinishBeforeEvent = () => { + if(!processInfo.value.globalFinishBeforeEventConfigs) { + processInfo.value.globalFinishBeforeEventConfigs = []; + } processInfo.value.globalFinishBeforeEventConfigs.push({ type: NodeEventExType.API, apiConfig: {}, @@ -761,6 +764,9 @@ const deleteFinishBeforeEvent = (index) => { }; const addGlobalRejectAfterEvent = () => { + if(!processInfo.value.globalRejectAfterEventConfigs) { + processInfo.value.globalRejectAfterEventConfigs = []; + } processInfo.value.globalRejectAfterEventConfigs.push({ type: NodeEventExType.API, apiConfig: {}, @@ -772,6 +778,9 @@ const deleteRejectAfterEvent = (index) => { }; const addGlobalAgreeAfterEvent = () => { + if(!processInfo.value.globalAgreeAfterEventConfigs) { + processInfo.value.globalAgreeAfterEventConfigs = []; + } processInfo.value.globalAgreeAfterEventConfigs.push({ type: NodeEventExType.API, apiConfig: {}, @@ -783,6 +792,9 @@ const deleteAgreeAfterEvent = (index) => { }; const addGlobalSuspendedBeforeEvent = () => { + if(!processInfo.value.globalSuspendedBeforeEventConfigs) { + processInfo.value.globalSuspendedBeforeEventConfigs = []; + } processInfo.value.globalSuspendedBeforeEventConfigs.push({ type: NodeEventExType.API, apiConfig: {}, @@ -794,6 +806,9 @@ const deleteSuspendedBeforeEvent = (index) => { }; const addGlobalRestoreAfterEvent = () => { + if(!processInfo.value.globalRestoreAfterEventConfigs) { + processInfo.value.globalRestoreAfterEventConfigs = []; + } processInfo.value.globalRestoreAfterEventConfigs.push({ type: NodeEventExType.API, apiConfig: {}, @@ -805,6 +820,9 @@ const deleteRestoreAfterEvent = (index) => { }; // 全局会签事件添加 const addGlobalSetSignAfterEvent = () => { + if(!processInfo.value.globalSetSignAfterEventConfigs) { + processInfo.value.globalSetSignAfterEventConfigs = []; + } processInfo.value.globalSetSignAfterEventConfigs.push({ type: NodeEventExType.API, apiConfig: {},