Skip to content

Commit 8f7d917

Browse files
authored
fix: The dropdown data of subsequent nodes in the form cannot be displayed back (#3129)
1 parent 81a3af2 commit 8f7d917

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

ui/src/workflow/nodes/form-node/index.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,24 @@ class FormNode extends AppNode {
44
constructor(props: any) {
55
super(props, FormNodeVue)
66
}
7+
get_node_field_list() {
8+
const result = []
9+
const fields = this.props.model.properties?.config?.fields || []
10+
let otherFields = []
11+
try {
12+
otherFields = this.props.model.properties.node_data.form_field_list.map((item: any) => ({
13+
label: typeof item.label == 'string' ? item.label : item.label.label,
14+
value: item.field
15+
}))
16+
} catch (e) {}
17+
result.push({
18+
value: this.props.model.id,
19+
label: this.props.model.properties.stepName,
20+
type: this.props.model.type,
21+
children: [...fields, ...otherFields]
22+
})
23+
return result
24+
}
725
}
826
export default {
927
type: 'form-node',

0 commit comments

Comments
 (0)