fix: 多实例默认选中SEQUENTIAL_APPROVE
parent
e52049876e
commit
5785d741bb
|
@ -301,13 +301,20 @@ const approveMethod = ref()
|
||||||
const approveRatio = ref(100)
|
const approveRatio = ref(100)
|
||||||
const otherExtensions = ref()
|
const otherExtensions = ref()
|
||||||
const getElementLoopNew = () => {
|
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(
|
approveMethod.value = extensionElements.values.filter(
|
||||||
(ex) => ex.$type === `${prefix}:ApproveMethod`
|
(ex) => ex.$type === `${prefix}:ApproveMethod`
|
||||||
)?.[0]?.value
|
)?.[0]?.value
|
||||||
|
|
||||||
otherExtensions.value =
|
otherExtensions.value =
|
||||||
extensionElements.values.filter((ex) => ex.$type !== `${prefix}:ApproveMethod`) ?? []
|
extensionElements.values.filter((ex) => ex.$type !== `${prefix}:ApproveMethod`) ?? []
|
||||||
|
|
||||||
|
if (!approveMethod.value) {
|
||||||
|
approveMethod.value = ApproveMethodType.SEQUENTIAL_APPROVE
|
||||||
|
updateLoopCharacteristics()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
const onApproveMethodChange = () => {
|
const onApproveMethodChange = () => {
|
||||||
approveRatio.value = 100
|
approveRatio.value = 100
|
||||||
|
|
Loading…
Reference in New Issue