瀏覽代碼

fix: 流程drewer编辑 expressionFormList 更新

lanceJiang 6 月之前
父節點
當前提交
cf3711b5b2

+ 1 - 6
src/components/scWorkflow/nodes/branch.vue

@@ -217,13 +217,8 @@ export default {
 				return
 			}
 			this.index = index
-			this.form = {}
 			this.form = JSON.parse(JSON.stringify(this.nodeConfig.conditionNodes[index]))
-			// const { formStructure } = JSON.parse(this.processForm) // 表单设计字段
-			// // 使用 filter 方法找到 required 属性为 true 的对象
-			// const requiredList = (formStructure?.fields || []).filter(item => item.options && item.options.required === true)
-			// console.log(`%c 这里打印出符合条件的表单对象-=== ${JSON.stringify(requiredList)}`, 'background: orange; color: #fff')
-			// this.expressionFormList = requiredList || []
+			this.getExpressionFormList()
 			this.drawer = true
 		},
 		editTitle() {

+ 1 - 1
src/components/scWorkflow/nodes/mergeBranch.vue

@@ -225,8 +225,8 @@ export default {
 				return
 			}
 			this.index = index
-			this.form = {}
 			this.form = JSON.parse(JSON.stringify(this.nodeConfig.inclusiveNodes[index]))
+			this.getExpressionFormList()
 			this.drawer = true
 		},
 		editTitle() {

+ 1 - 0
src/components/scWorkflow/nodes/routeBranch.vue

@@ -278,6 +278,7 @@ export default {
 			this.form = {}
 			this.form = JSON.parse(JSON.stringify(this.nodeConfig))
 			this.queryValidNodeList()
+			this.getExpressionFormList()
 			this.drawer = true
 		},
 		editTitle(refName) {