From 5785d741bb98e587cac3c9936d5c7b2a4bcc3049 Mon Sep 17 00:00:00 2001 From: LesanOuO <1960681385@qq.com> Date: Sat, 7 Dec 2024 11:22:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=9A=E5=AE=9E=E4=BE=8B=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E9=80=89=E4=B8=ADSEQUENTIAL=5FAPPROVE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../penal/multi-instance/ElementMultiInstance.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/bpmnProcessDesigner/package/penal/multi-instance/ElementMultiInstance.vue b/src/components/bpmnProcessDesigner/package/penal/multi-instance/ElementMultiInstance.vue index 331ffa2b..de2fb0d7 100644 --- a/src/components/bpmnProcessDesigner/package/penal/multi-instance/ElementMultiInstance.vue +++ b/src/components/bpmnProcessDesigner/package/penal/multi-instance/ElementMultiInstance.vue @@ -301,13 +301,20 @@ const approveMethod = ref() const approveRatio = ref(100) const otherExtensions = ref() const getElementLoopNew = () => { - const extensionElements = bpmnElement.value.businessObject?.extensionElements ?? bpmnInstances().moddle.create('bpmn:ExtensionElements', { values: [] }) + const extensionElements = + bpmnElement.value.businessObject?.extensionElements ?? + bpmnInstances().moddle.create('bpmn:ExtensionElements', { values: [] }) approveMethod.value = extensionElements.values.filter( (ex) => ex.$type === `${prefix}:ApproveMethod` )?.[0]?.value otherExtensions.value = extensionElements.values.filter((ex) => ex.$type !== `${prefix}:ApproveMethod`) ?? [] + + if (!approveMethod.value) { + approveMethod.value = ApproveMethodType.SEQUENTIAL_APPROVE + updateLoopCharacteristics() + } } const onApproveMethodChange = () => { approveRatio.value = 100