This commit is contained in:
@@ -58,8 +58,7 @@ SHELL / NAV / MENUS / LAYOUT
|
||||
|
||||
- TOOD:
|
||||
|
||||
- SERVER: Keep data filter routes and stuff at server pretty much as is but keep in mind they are only for the client's consumption
|
||||
- SERVER: needs relative date tokens back again but simply for validation to ensure they are correct tokens when storing a datafilter
|
||||
|
||||
- SERVER: DataList fetcher ListOptions no longer uses datafilterid anymore nor does any part of datalist code, instead they accept a single sort and filter json fragment
|
||||
- SERVER: DataList controller get list route change from GET to POST
|
||||
- SERVER: DataList controller get list route change from query string properties for listoptions to POST in FORM options (since much bigger)
|
||||
|
||||
@@ -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