Browse Source

feat: 路由分支 节点选择调整

lanceJiang 5 months ago
parent
commit
7e5b7ee6bb
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/components/scWorkflow/nodes/routeBranch.vue

+ 4 - 4
src/components/scWorkflow/nodes/routeBranch.vue

@@ -267,11 +267,11 @@ export default {
 				}
 			}
 			const rootConfig = this.getRootConfig()
-			console.error(rootConfig, 'rootConfig')
+			// console.error(rootConfig, 'rootConfig')
 			fn(rootConfig)
-			console.warn(validNodeList, 'validNodeList')
-			// 只允许选择审核人
-			this.validNodeList = validNodeList.filter(v => v.type === 1)
+			// console.warn(validNodeList, 'validNodeList')
+			// 只允许选择 0:发起人,1:审核人
+			this.validNodeList = validNodeList.filter(v => [0, 1].includes(v.type))
 		},
 		show() {
 			if (this.disabled) return