From ba11e6612e4cf00b9c1e5ed810658d932d760393 Mon Sep 17 00:00:00 2001 From: gexinzhineng/gxzn27 <1348660141@qq.com> Date: Sat, 28 Jan 2023 18:07:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=84=E4=B8=AA=E8=8A=82=E7=82=B9=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=BB=91=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../package/penal/listeners/ElementListeners.vue | 4 +++- .../package/penal/listeners/UserTaskListeners.vue | 3 ++- .../package/penal/properties/ElementProperties.vue | 4 +++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/yudao-ui-admin-vue3/src/components/bpmnProcessDesigner/package/penal/listeners/ElementListeners.vue b/yudao-ui-admin-vue3/src/components/bpmnProcessDesigner/package/penal/listeners/ElementListeners.vue index cc8de5413..739c2cd98 100644 --- a/yudao-ui-admin-vue3/src/components/bpmnProcessDesigner/package/penal/listeners/ElementListeners.vue +++ b/yudao-ui-admin-vue3/src/components/bpmnProcessDesigner/package/penal/listeners/ElementListeners.vue @@ -293,7 +293,9 @@ const resetListenersList = () => { otherExtensionList.value = [] console.log(bpmnElement.value, 'bpmnElement.value') bpmnElementListeners.value = - bpmnElement.value.businessObject?.extensionElements?.values?.filter( + // bpmnElement.value.businessObject?.extensionElements?.filter( + bpmnElement.value.businessObject?.extensionElements?.filter( + // bpmnElement.value.businessObject?.extensionElements?.values?.filter( (ex) => ex.$type === `${prefix}:ExecutionListener` ) ?? [] elementListenersList.value = bpmnElementListeners.value.map((listener) => diff --git a/yudao-ui-admin-vue3/src/components/bpmnProcessDesigner/package/penal/listeners/UserTaskListeners.vue b/yudao-ui-admin-vue3/src/components/bpmnProcessDesigner/package/penal/listeners/UserTaskListeners.vue index 0c81a63de..ebafc1cdd 100644 --- a/yudao-ui-admin-vue3/src/components/bpmnProcessDesigner/package/penal/listeners/UserTaskListeners.vue +++ b/yudao-ui-admin-vue3/src/components/bpmnProcessDesigner/package/penal/listeners/UserTaskListeners.vue @@ -338,7 +338,8 @@ const resetListenersList = () => { bpmnElement.value = window.bpmnInstances.bpmnElement otherExtensionList.value = [] bpmnElementListeners.value = - bpmnElement.value.businessObject?.extensionElements?.values?.filter( + // bpmnElement.value.businessObject?.extensionElements?.filter( + bpmnElement.value.businessObject?.extensionElements?.filter( (ex) => ex.$type === `${prefix}:TaskListener` ) ?? [] elementListenersList.value = bpmnElementListeners.value.map((listener) => diff --git a/yudao-ui-admin-vue3/src/components/bpmnProcessDesigner/package/penal/properties/ElementProperties.vue b/yudao-ui-admin-vue3/src/components/bpmnProcessDesigner/package/penal/properties/ElementProperties.vue index 2764fb73c..33b53b3a1 100644 --- a/yudao-ui-admin-vue3/src/components/bpmnProcessDesigner/package/penal/properties/ElementProperties.vue +++ b/yudao-ui-admin-vue3/src/components/bpmnProcessDesigner/package/penal/properties/ElementProperties.vue @@ -82,10 +82,12 @@ const bpmnElementPropertyList = ref() const attributeFormRef = ref() const resetAttributesList = () => { + console.log(window, 'windowwindowwindowwindowwindowwindowwindow') bpmnElement.value = window.bpmnInstances.bpmnElement otherExtensionList.value = [] // 其他扩展配置 bpmnElementProperties.value = - bpmnElement.value.businessObject?.extensionElements?.values?.filter((ex) => { + // bpmnElement.value.businessObject?.extensionElements?.filter((ex) => { + bpmnElement.value.businessObject?.extensionElements?.filter((ex) => { if (ex.$type !== `${prefix}:Properties`) { otherExtensionList.value.push(ex) }