fix: 服务任务无法启动
parent
7043dea354
commit
0bbf4c9143
|
@ -1,6 +1,10 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="panel-tab__content">
|
<div class="panel-tab__content">
|
||||||
<el-radio-group v-model="approveMethod" @change="onApproveMethodChange">
|
<el-radio-group
|
||||||
|
v-if="type === 'UserTask'"
|
||||||
|
v-model="approveMethod"
|
||||||
|
@change="onApproveMethodChange"
|
||||||
|
>
|
||||||
<div class="flex-col">
|
<div class="flex-col">
|
||||||
<div v-for="(item, index) in APPROVE_METHODS" :key="index">
|
<div v-for="(item, index) in APPROVE_METHODS" :key="index">
|
||||||
<el-radio :value="item.value" :label="item.value">
|
<el-radio :value="item.value" :label="item.value">
|
||||||
|
@ -23,6 +27,9 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
|
<div v-else>
|
||||||
|
除了UserTask以外节点的多实例待实现
|
||||||
|
</div>
|
||||||
<!-- 与Simple设计器配置合并,保留以前的代码 -->
|
<!-- 与Simple设计器配置合并,保留以前的代码 -->
|
||||||
<el-form label-width="90px" style="display: none">
|
<el-form label-width="90px" style="display: none">
|
||||||
<el-form-item label="快捷配置">
|
<el-form-item label="快捷配置">
|
||||||
|
@ -301,19 +308,21 @@ const approveMethod = ref()
|
||||||
const approveRatio = ref(100)
|
const approveRatio = ref(100)
|
||||||
const otherExtensions = ref()
|
const otherExtensions = ref()
|
||||||
const getElementLoopNew = () => {
|
const getElementLoopNew = () => {
|
||||||
const extensionElements =
|
if (props.type === 'UserTask') {
|
||||||
bpmnElement.value.businessObject?.extensionElements ??
|
const extensionElements =
|
||||||
bpmnInstances().moddle.create('bpmn:ExtensionElements', { values: [] })
|
bpmnElement.value.businessObject?.extensionElements ??
|
||||||
approveMethod.value = extensionElements.values.filter(
|
bpmnInstances().moddle.create('bpmn:ExtensionElements', { values: [] })
|
||||||
(ex) => ex.$type === `${prefix}:ApproveMethod`
|
approveMethod.value = extensionElements.values.filter(
|
||||||
)?.[0]?.value
|
(ex) => ex.$type === `${prefix}:ApproveMethod`
|
||||||
|
)?.[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) {
|
if (!approveMethod.value) {
|
||||||
approveMethod.value = ApproveMethodType.SEQUENTIAL_APPROVE
|
approveMethod.value = ApproveMethodType.SEQUENTIAL_APPROVE
|
||||||
updateLoopCharacteristics()
|
updateLoopCharacteristics()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const onApproveMethodChange = () => {
|
const onApproveMethodChange = () => {
|
||||||
|
|
Loading…
Reference in New Issue