| | |
| | | content = `${record[col.field]}` |
| | | } |
| | | |
| | | if (col.editType === 'select' && col.options.length > 0) { |
| | | if (col.editType === 'select' && col.showValue !== 'value' && col.options.length > 0) { |
| | | content = col.map.get(content) || content |
| | | } else if (col.editType === 'switch') { |
| | | if (content === col.openVal) { |
| | |
| | | content = `${record[col.field]}` |
| | | } |
| | | |
| | | if (col.editType === 'select' && col.options.length > 0) { |
| | | if (col.editType === 'select' && col.showValue !== 'value' && col.options.length > 0) { |
| | | content = col.map.get(content) || content |
| | | } else if (col.editType === 'switch') { |
| | | if (content === col.openVal) { |
| | |
| | | delete result.status |
| | | |
| | | this.props.columns.forEach(item => { |
| | | if (item.arr_field && result[item.arr_field]) { |
| | | result[item.uuid] = result[item.arr_field] |
| | | if (item.arr_field && result[item.field]) { |
| | | result[item.uuid] = result[item.field] |
| | | } |
| | | }) |
| | | |