This commit is contained in:
@@ -118,13 +118,26 @@ export default {
|
||||
that.apiBaseUrl + "?" + window.$gz.api.buildQuery(listOptions);
|
||||
window.$gz.api.get(listUrl).then(res => {
|
||||
that.loading = false;
|
||||
that.Items = res.data;
|
||||
that.totalItems = res.paging.count;
|
||||
//build that.headers here
|
||||
that.headers = buildHeaders(res.columns);
|
||||
//Post process data here and then set that.records
|
||||
that.records = buildRecords(res.data);
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
/* Xeslint-disable */
|
||||
|
||||
//Called by getDataFromApi on retrieval of list with columnData
|
||||
function buildHeaders(columnData) {
|
||||
//iterate columns, build headers and return
|
||||
}
|
||||
|
||||
//Called by getDataFromApi on retrieval of list with columnData
|
||||
function buildRecords(listData) {
|
||||
//iterate columns, build headers and return
|
||||
}
|
||||
|
||||
//DataTable component
|
||||
//https://vuetifyjs.com/en/components/data-tables#paginate-and-sort-server-side
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user