| | |
| | | this.state.formlist.forEach((item, index) => { |
| | | if (item.hidden || item.forbid) return |
| | | |
| | | if (item.type === 'text') { // 文本搜索 |
| | | if (item.type === 'text') { |
| | | fields.push( |
| | | <Col span={12} key={index}> |
| | | <Form.Item label={item.tooltip ? |
| | |
| | | values.content = columns.filter(col => col.value === values.field)[0].text |
| | | } |
| | | } |
| | | if (['bottom', 'header'].includes(values.elemType) && values.actions) { |
| | | if (values.elemType === 'bottom' && values.actions) { |
| | | values.actions = values.actions.map(item => actions.filter(action => action.value === item)[0]) |
| | | } |
| | | if (values.elemType === 'header' && values.actions) { |
| | | values.actions = actions.filter(action => action.value === values.actions) |
| | | } |
| | | |
| | | if (['avatar'].includes(values.elemType)) { |
| | | if (values.type === 'icon') { |
| | | let column = columns.filter(col => col.value === values.field)[0] |