| | |
| | | resourceType: '0', |
| | | setAll: 'false', |
| | | options: [], |
| | | dataSource: '', |
| | | linkField: '', |
| | | valueField: '', |
| | | valueText: '', |
| | | orderBy: '', |
| | | orderType: 'asc', |
| | | match: _match, |
| | | display: 'dropdown' |
| | |
| | | const { type } = this.props |
| | | const { dict, fields } = this.state |
| | | |
| | | let label = '' |
| | | if (type === 'search') { |
| | | label = dict['header.menu.search.add'] |
| | | } else if (type === 'columns') { |
| | | label = dict['model.menu.column.add'] |
| | | } else if (type === 'fields') { |
| | | label = dict['model.menu.field.add'] |
| | | } |
| | | |
| | | return ( |
| | | <div className="quickly-add"> |
| | | <Button type="primary" block onClick={this.queryField}>{label}</Button> |
| | | <Button type="primary" block onClick={this.queryField}>{dict['model.batchAdd']}</Button> |
| | | {/* 根据字段名添加显示列及搜索条件 */} |
| | | <Modal |
| | | wrapClassName="model-table-fieldmanage-modal" |