| | |
| | | if (item.type === 'colspan' && item.unfold === 'true') { |
| | | cell = {title: item.label, children: []} |
| | | |
| | | item.subColumn.forEach(col => { |
| | | item.subcols.forEach(col => { |
| | | |
| | | if (col.rowspan === 'true') { |
| | | rowspan = col |
| | |
| | | </div> |
| | | ) |
| | | } else if (item.type === 'colspan') { |
| | | if (item.subColumn.length === 0) return '' |
| | | if (item.subcols.length === 0) return '' |
| | | let ordertype = item.order |
| | | let contents = [] |
| | | let images = [] |
| | | |
| | | item.subColumn.forEach(col => { |
| | | item.subcols.forEach(col => { |
| | | if (!col.field || !record.hasOwnProperty(col.field)) return |
| | | |
| | | if (col.type === 'number') { |
| | |
| | | let index = '' |
| | | let _activeIndex = null |
| | | if (selectedRowKeys.length > 0) { |
| | | index = selectedRowKeys[selectedRowKeys.length - 1] |
| | | index = selectedRowKeys.slice(-1)[0] |
| | | } |
| | | |
| | | if (setting.tableType === 'checkbox') { |
| | |
| | | if (newkeys.includes(index)) { |
| | | newkeys = newkeys.filter(item => item !== index) |
| | | if (newkeys.length > 0) { |
| | | _index = newkeys[newkeys.length - 1] |
| | | _index = newkeys.slice(-1)[0] |
| | | } |
| | | this.changedata(_index) |
| | | } else { |