This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user