fix: 修复流程线和结束节点监听器无法回显问题
parent
582712d764
commit
ae3ff10a5e
|
|
@ -119,7 +119,9 @@ export default {
|
||||||
})
|
})
|
||||||
this.modeler.on('element.click', e => {
|
this.modeler.on('element.click', e => {
|
||||||
const { element } = e
|
const { element } = e
|
||||||
if (element.type === 'bpmn:Process') {
|
if (element.type === 'bpmn:Process'
|
||||||
|
|| element.type === 'bpmn:SequenceFlow'
|
||||||
|
|| element.type === 'bpmn:EndEvent' ) {
|
||||||
this.element = element
|
this.element = element
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,8 @@ export default {
|
||||||
mixins: [mixinPanel, mixinExecutionListener],
|
mixins: [mixinPanel, mixinExecutionListener],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
formData: {}
|
formData: {},
|
||||||
|
executionListenerLength: 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -89,7 +90,14 @@ export default {
|
||||||
created() {
|
created() {
|
||||||
let cache = commonParse(this.element)
|
let cache = commonParse(this.element)
|
||||||
cache = conditionExpressionParse(cache)
|
cache = conditionExpressionParse(cache)
|
||||||
this.formData = cache
|
this.formData = cache;
|
||||||
|
this.computedExecutionListenerLength();
|
||||||
|
},
|
||||||
|
methods:{
|
||||||
|
computedExecutionListenerLength() {
|
||||||
|
this.executionListenerLength = this.element.businessObject.extensionElements?.values
|
||||||
|
?.filter(item => item.$type === 'flowable:ExecutionListener').length ?? 0
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,8 @@ export default {
|
||||||
mixins: [mixinPanel, mixinExecutionListener],
|
mixins: [mixinPanel, mixinExecutionListener],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
formData: {}
|
formData: {},
|
||||||
|
executionListenerLength: 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -85,6 +86,13 @@ export default {
|
||||||
created() {
|
created() {
|
||||||
// this.updateProperties({ 'flowable:initiator': 'INITIATOR' })
|
// this.updateProperties({ 'flowable:initiator': 'INITIATOR' })
|
||||||
this.formData = commonParse(this.element)
|
this.formData = commonParse(this.element)
|
||||||
|
this.computedExecutionListenerLength();
|
||||||
|
},
|
||||||
|
methods:{
|
||||||
|
computedExecutionListenerLength() {
|
||||||
|
this.executionListenerLength = this.element.businessObject.extensionElements?.values
|
||||||
|
?.filter(item => item.$type === 'flowable:ExecutionListener').length ?? 0
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue