各个节点数据绑定

This commit is contained in:
gexinzhineng/gxzn27 2023-01-28 18:07:17 +08:00
parent b704aae49b
commit ba11e6612e
3 changed files with 8 additions and 3 deletions

View File

@ -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) =>

View File

@ -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) =>

View File

@ -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)
}