| | |
| | | static propTpyes = { |
| | | type: PropTypes.string, // 搜索条件添加、显示列添加 |
| | | config: PropTypes.object, // 容器Id |
| | | tableFields: PropTypes.string, // 已选表字段集 |
| | | updatefield: PropTypes.func |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | queryField = () => { |
| | | const { type, config, tableFields } = this.props |
| | | const { type, config } = this.props |
| | | // 判断是否已选择表名 |
| | | if (!tableFields || tableFields.length === 0) { |
| | | if (!window.GLOB.tableFields || window.GLOB.tableFields.length === 0) { |
| | | notification.warning({ |
| | | top: 92, |
| | | message: '请选择表名!', |
| | |
| | | |
| | | // 表字段集转为map数据 |
| | | let columns = new Map() |
| | | tableFields.forEach(table => { |
| | | window.GLOB.tableFields.forEach(table => { |
| | | table.columns.forEach(column => { |
| | | columns.set(column.field.toLowerCase(), column) |
| | | }) |