File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
ui/src/workflow/nodes/form-node Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,24 @@ class FormNode extends AppNode {
4
4
constructor ( props : any ) {
5
5
super ( props , FormNodeVue )
6
6
}
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
+ }
7
25
}
8
26
export default {
9
27
type : 'form-node' ,
You can’t perform that action at this time.
0 commit comments