fixup for row id bug after change to system where FIRST column is NOT actually the rowid column anymore
This commit is contained in:
@@ -64,9 +64,6 @@
|
|||||||
<template v-slot:body="{ items }">
|
<template v-slot:body="{ items }">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr v-for="item in items" :key="item.id">
|
<tr v-for="item in items" :key="item.id">
|
||||||
{{
|
|
||||||
item.id
|
|
||||||
}}
|
|
||||||
<template v-if="showSelect">
|
<template v-if="showSelect">
|
||||||
<td>
|
<td>
|
||||||
<v-checkbox
|
<v-checkbox
|
||||||
@@ -614,12 +611,19 @@ function buildRecords(listData, columndefinitions) {
|
|||||||
for (let iRow = 0; iRow < listData.length; iRow++) {
|
for (let iRow = 0; iRow < listData.length; iRow++) {
|
||||||
let row = listData[iRow];
|
let row = listData[iRow];
|
||||||
//iterate row and build object representing row data keyed to index
|
//iterate row and build object representing row data keyed to index
|
||||||
//first column is the default column which sets the id for the row
|
|
||||||
let o = { id: row[0].v, columns: {} };
|
//container object for row
|
||||||
debugger;
|
//id will be set later when code below encounters the id column which could be in any position but is identified by it's rid property
|
||||||
|
let o = { id: undefined, columns: {} };
|
||||||
|
|
||||||
for (let iColumn = 0; iColumn < row.length; iColumn++) {
|
for (let iColumn = 0; iColumn < row.length; iColumn++) {
|
||||||
let column = row[iColumn];
|
let column = row[iColumn];
|
||||||
|
|
||||||
|
//rowId?
|
||||||
|
if (column.rid) {
|
||||||
|
o.id = column.i;
|
||||||
|
}
|
||||||
|
|
||||||
let dataType = columndefinitions[iColumn].dt;
|
let dataType = columndefinitions[iColumn].dt;
|
||||||
let display = column.v;
|
let display = column.v;
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
:dataListKey="dataListKey"
|
:dataListKey="dataListKey"
|
||||||
:dataListFilter="dataListFilter"
|
:dataListFilter="dataListFilter"
|
||||||
:dataListSort="dataListSort"
|
:dataListSort="dataListSort"
|
||||||
:showSelect="true"
|
:showSelect="false"
|
||||||
:singleSelect="false"
|
:singleSelect="false"
|
||||||
v-on:update:selected="handleSelected"
|
v-on:update:selected="handleSelected"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user