| | |
| | | const { verify } = this.state |
| | | |
| | | let _columns = JSON.parse(JSON.stringify(verify.columns)) |
| | | let _cols = _columns.map(col => col.Column.toLowerCase()) |
| | | let _names = {} |
| | | let _cols = columns.map(item => { |
| | | let key = item.Column.toLowerCase() |
| | | _names[key] = item.Text |
| | | |
| | | return key |
| | | }) |
| | | let names = {$up: false} |
| | | |
| | | columns.forEach(col => { |
| | | if (!col.field) return |
| | | if (_cols.includes(col.field.toLowerCase())) { |
| | | names.$up = true |
| | | names[col.field.toLowerCase()] = col.label |
| | | let key = col.field.toLowerCase() |
| | | if (_cols.includes(key)) { |
| | | if (_names[key] !== col.label) { |
| | | names.$up = true |
| | | names[key] = col.label |
| | | } |
| | | return |
| | | } |
| | | |