From b5a14fd9d355bd1b116e9e8a39451f35a36761c6 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Thu, 22 May 2025 10:52:46 +0800 Subject: [PATCH] fix: The dropdown data of subsequent nodes in the form cannot be displayed back --- ui/src/workflow/nodes/form-node/index.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ui/src/workflow/nodes/form-node/index.ts b/ui/src/workflow/nodes/form-node/index.ts index b7c2dbec9fa..bc0da59aab3 100644 --- a/ui/src/workflow/nodes/form-node/index.ts +++ b/ui/src/workflow/nodes/form-node/index.ts @@ -4,6 +4,24 @@ class FormNode extends AppNode { constructor(props: any) { super(props, FormNodeVue) } + get_node_field_list() { + const result = [] + const fields = this.props.model.properties?.config?.fields || [] + let otherFields = [] + try { + otherFields = this.props.model.properties.node_data.form_field_list.map((item: any) => ({ + label: typeof item.label == 'string' ? item.label : item.label.label, + value: item.field + })) + } catch (e) {} + result.push({ + value: this.props.model.id, + label: this.props.model.properties.stepName, + type: this.props.model.type, + children: [...fields, ...otherFields] + }) + return result + } } export default { type: 'form-node',