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

@@ -58,8 +58,7 @@ SHELL / NAV / MENUS / LAYOUT
- TOOD: - 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 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 GET to POST
- SERVER: DataList controller get list route change from query string properties for listoptions to POST in FORM options (since much bigger) - SERVER: DataList controller get list route change from query string properties for listoptions to POST in FORM options (since much bigger)

View File

@@ -390,13 +390,9 @@ export default {
//build that.headers here //build that.headers here
that.headers = buildHeaders(res.columns); that.headers = buildHeaders(res.columns);
//Post process data here and then set that.records //Post process data here and then set that.records
that.records = buildRecords( that.records = buildRecords(res.data, res.columns);
res.data,
res.columns,
that.$options.filters //this is the VUE filters collection, nothing to do with the local data structure
);
that.loading = false; 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 //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 //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 //iterate data, build each object keyed with index name and display set to correct locale filter and then return
if (!listData) { if (!listData) {
return; return;