mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-25 17:22:55 +00:00
fix: The dropdown data of subsequent nodes in the form cannot be displayed back (#3129)
This commit is contained in:
parent
81a3af2c8b
commit
8f7d91798b
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in New Issue