| | |
| | | const indexMapItem = getIndexMapItem(columns); |
| | | return (res.values || []).map((item, index) => { |
| | | const row = {} as any; |
| | | item?.forEach((item, index) => { |
| | | row[indexMapItem.get(index).name] = item; |
| | | item?.forEach((item, index, array) => { |
| | | if (indexMapItem.get(index)) { |
| | | row[indexMapItem.get(index).name] = item; |
| | | } |
| | | }); |
| | | return row; |
| | | }); |
| | |
| | | orderMap.set(prop, order); |
| | | column.order = getEleOrder(order); |
| | | } |
| | | node.tableData = parseRecordData(res, tableColumns.value); |
| | | node.tableData = parseRecordData(res, node.columns ?? []); |
| | | }; |
| | | |
| | | const handleSearchInput = async (prop?, order?, column?) => { |