perf: [BPM 工作流] 条件分支后面允许添加并行分支

pull/804/head
jason 2025-07-24 22:29:53 +08:00
parent c8cf4dfa92
commit acdd72359c
1 changed files with 0 additions and 13 deletions

View File

@ -97,8 +97,6 @@ defineOptions({
name: 'NodeHandler'
})
const message = useMessage() //
const popoverShow = ref(false)
const props = defineProps({
childNode: {
@ -115,17 +113,6 @@ const emits = defineEmits(['update:childNode'])
const readonly = inject<Boolean>('readonly') //
const addNode = (type: number) => {
//
if (
type === NodeType.PARALLEL_BRANCH_NODE &&
[NodeType.CONDITION_BRANCH_NODE, NodeType.INCLUSIVE_BRANCH_NODE].includes(
props.currentNode?.type
)
) {
message.error('条件分支、包容分支后面,不允许直接添加并行分支')
return
}
popoverShow.value = false
if (type === NodeType.USER_TASK_NODE || type === NodeType.TRANSACTOR_NODE) {
const id = 'Activity_' + generateUUID()