This commit is contained in:
2020-02-11 22:55:58 +00:00
parent 34aff3570d
commit 6914b15e58
2 changed files with 4 additions and 9 deletions

View File

@@ -390,13 +390,9 @@ export default {
//build that.headers here
that.headers = buildHeaders(res.columns);
//Post process data here and then set that.records
that.records = buildRecords(
res.data,
res.columns,
that.$options.filters //this is the VUE filters collection, nothing to do with the local data structure
);
that.records = buildRecords(res.data, res.columns);
that.loading = false;
that.totalRecords = res.paging.count;
that.totalRecords = res.totalRecordCount;
//persist the paging options so user sees same page and list on refresh or leave and return scenario
@@ -445,7 +441,7 @@ function buildHeaders(columnData) {
}
//Called by getDataFromApi on retrieval of list with columnData
function buildRecords(listData, columndefinitions, filters) {
function buildRecords(listData, columndefinitions) {
//iterate data, build each object keyed with index name and display set to correct locale filter and then return
if (!listData) {
return;