Skip to content

Commit acdd723

Browse files
committed
perf: [BPM 工作流] 条件分支后面允许添加并行分支
1 parent c8cf4df commit acdd723

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/components/SimpleProcessDesignerV2/src/NodeHandler.vue

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,6 @@ defineOptions({
9797
name: 'NodeHandler'
9898
})
9999
100-
const message = useMessage() // 消息弹窗
101-
102100
const popoverShow = ref(false)
103101
const props = defineProps({
104102
childNode: {
@@ -115,17 +113,6 @@ const emits = defineEmits(['update:childNode'])
115113
const readonly = inject<Boolean>('readonly') // 是否只读
116114
117115
const addNode = (type: number) => {
118-
// 校验:条件分支、包容分支后面,不允许直接添加并行分支
119-
if (
120-
type === NodeType.PARALLEL_BRANCH_NODE &&
121-
[NodeType.CONDITION_BRANCH_NODE, NodeType.INCLUSIVE_BRANCH_NODE].includes(
122-
props.currentNode?.type
123-
)
124-
) {
125-
message.error('条件分支、包容分支后面,不允许直接添加并行分支')
126-
return
127-
}
128-
129116
popoverShow.value = false
130117
if (type === NodeType.USER_TASK_NODE || type === NodeType.TRANSACTOR_NODE) {
131118
const id = 'Activity_' + generateUUID()

0 commit comments

Comments
 (0)