From e55613edc63e525792d3559f84309b1f9b08801b Mon Sep 17 00:00:00 2001 From: jason <2667446@qq.com> Date: Sat, 20 Jun 2026 21:57:40 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:[bpm]=20=E8=B6=85=E6=97=B6=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E4=B8=BA=E5=A4=A9=E6=97=B6=E6=A0=BC=E5=BC=8F=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/nodes-config/ChildProcessNodeConfig.vue | 8 ++++---- .../src/nodes-config/DelayTimerNodeConfig.vue | 8 ++++---- .../src/nodes-config/UserTaskNodeConfig.vue | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/components/SimpleProcessDesignerV2/src/nodes-config/ChildProcessNodeConfig.vue b/src/components/SimpleProcessDesignerV2/src/nodes-config/ChildProcessNodeConfig.vue index 7ec382fca..8616f7b89 100644 --- a/src/components/SimpleProcessDesignerV2/src/nodes-config/ChildProcessNodeConfig.vue +++ b/src/components/SimpleProcessDesignerV2/src/nodes-config/ChildProcessNodeConfig.vue @@ -529,7 +529,7 @@ const showChildProcessNodeConfig = (node: SimpleFlowNode) => { // 固定时长 if (configForm.value.timeoutType === DelayTypeEnum.FIXED_TIME_DURATION) { const strTimeDuration = node.childProcessSetting.timeoutSetting.timeExpression ?? '' - let parseTime = strTimeDuration.slice(2, strTimeDuration.length - 1) + let parseTime = strTimeDuration.match(/\d+/)?.[0] ?? '' let parseTimeUnit = strTimeDuration.slice(strTimeDuration.length - 1) configForm.value.timeDuration = parseInt(parseTime) configForm.value.timeUnit = convertTimeUnit(parseTimeUnit) @@ -586,12 +586,12 @@ const loadFormInfo = async () => { } } const getIsoTimeDuration = () => { - let strTimeDuration = 'PT' + let strTimeDuration = 'P' if (configForm.value.timeUnit === TimeUnitType.MINUTE) { - strTimeDuration += configForm.value.timeDuration + 'M' + strTimeDuration += 'T' + configForm.value.timeDuration + 'M' } if (configForm.value.timeUnit === TimeUnitType.HOUR) { - strTimeDuration += configForm.value.timeDuration + 'H' + strTimeDuration += 'T' + configForm.value.timeDuration + 'H' } if (configForm.value.timeUnit === TimeUnitType.DAY) { strTimeDuration += configForm.value.timeDuration + 'D' diff --git a/src/components/SimpleProcessDesignerV2/src/nodes-config/DelayTimerNodeConfig.vue b/src/components/SimpleProcessDesignerV2/src/nodes-config/DelayTimerNodeConfig.vue index 741796d3a..599c8d0c6 100644 --- a/src/components/SimpleProcessDesignerV2/src/nodes-config/DelayTimerNodeConfig.vue +++ b/src/components/SimpleProcessDesignerV2/src/nodes-config/DelayTimerNodeConfig.vue @@ -152,12 +152,12 @@ const getShowText = (): string => { return showText } const getIsoTimeDuration = () => { - let strTimeDuration = 'PT' + let strTimeDuration = 'P' if (configForm.value.timeUnit === TimeUnitType.MINUTE) { - strTimeDuration += configForm.value.timeDuration + 'M' + strTimeDuration += 'T' + configForm.value.timeDuration + 'M' } if (configForm.value.timeUnit === TimeUnitType.HOUR) { - strTimeDuration += configForm.value.timeDuration + 'H' + strTimeDuration += 'T' + configForm.value.timeDuration + 'H' } if (configForm.value.timeUnit === TimeUnitType.DAY) { strTimeDuration += configForm.value.timeDuration + 'D' @@ -172,7 +172,7 @@ const showDelayTimerNodeConfig = (node: SimpleFlowNode) => { // 固定时长 if (configForm.value.delayType === DelayTypeEnum.FIXED_TIME_DURATION) { const strTimeDuration = node.delaySetting.delayTime - let parseTime = strTimeDuration.slice(2, strTimeDuration.length - 1) + let parseTime = strTimeDuration.match(/\d+/)?.[0] ?? '' let parseTimeUnit = strTimeDuration.slice(strTimeDuration.length - 1) configForm.value.timeDuration = parseInt(parseTime) configForm.value.timeUnit = convertTimeUnit(parseTimeUnit) diff --git a/src/components/SimpleProcessDesignerV2/src/nodes-config/UserTaskNodeConfig.vue b/src/components/SimpleProcessDesignerV2/src/nodes-config/UserTaskNodeConfig.vue index f8ab8abf5..e1043408e 100644 --- a/src/components/SimpleProcessDesignerV2/src/nodes-config/UserTaskNodeConfig.vue +++ b/src/components/SimpleProcessDesignerV2/src/nodes-config/UserTaskNodeConfig.vue @@ -816,7 +816,7 @@ const showUserTaskNodeConfig = (node: SimpleFlowNode) => { configForm.value.timeoutHandlerEnable = node.timeoutHandler?.enable if (node.timeoutHandler?.enable && node.timeoutHandler?.timeDuration) { const strTimeDuration = node.timeoutHandler.timeDuration - let parseTime = strTimeDuration.slice(2, strTimeDuration.length - 1) + let parseTime = strTimeDuration.match(/\d+/)?.[0] ?? '' let parseTimeUnit = strTimeDuration.slice(strTimeDuration.length - 1) configForm.value.timeDuration = parseInt(parseTime) timeUnit.value = convertTimeUnit(parseTimeUnit) @@ -938,12 +938,12 @@ function useTimeoutHandler() { if (!configForm.value.timeoutHandlerEnable) { return undefined } - let strTimeDuration = 'PT' + let strTimeDuration = 'P' if (timeUnit.value === TimeUnitType.MINUTE) { - strTimeDuration += configForm.value.timeDuration + 'M' + strTimeDuration += 'T' + configForm.value.timeDuration + 'M' } if (timeUnit.value === TimeUnitType.HOUR) { - strTimeDuration += configForm.value.timeDuration + 'H' + strTimeDuration += 'T' + configForm.value.timeDuration + 'H' } if (timeUnit.value === TimeUnitType.DAY) { strTimeDuration += configForm.value.timeDuration + 'D'