Browse Source

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

jason 6 tháng trước cách đây
mục cha
commit
acdd72359c
1 tập tin đã thay đổi với 0 bổ sung13 xóa
  1. 0 13
      src/components/SimpleProcessDesignerV2/src/NodeHandler.vue

+ 0 - 13
src/components/SimpleProcessDesignerV2/src/NodeHandler.vue

@@ -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()