This commit is contained in:
2021-02-01 20:45:20 +00:00
parent 0399f5d966
commit 2f3d3255cb

View File

@@ -2,7 +2,7 @@
<div>
<gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error>
<v-card>
{{ dataTablePagingOptions }}
<!-- {{ dataTablePagingOptions }} -->
{{ headers }}
<v-card-title>
<v-select
@@ -468,7 +468,7 @@ export default {
//this would normally never fail and no return data is required here
//because getdatafromapi will have the data to refresh the sort of the view anyway
//so it's fire and forget
await window.$gz.api.post("data-list-column-view/new-sort", {
await window.$gz.api.post("data-list-column-view/sort", {
listKey: this.dataListKey,
sortBy: this.keyArrayFromSortByArray(
this.dataTablePagingOptions.sortBy
@@ -512,7 +512,7 @@ export default {
return sortBy.map(sortItem => {
let val = this.headers.find(z => z.value == sortItem);
if (val) {
return val.key;
return val.fk;
}
});
},
@@ -756,7 +756,7 @@ function buildHeaders(columnData) {
let cm = columnData[i];
let h = {};
h.text = window.$gz.translation.get(cm.cm);
h.key = cm.cm;
h.fk = cm.fk;
h.value = "columns.c" + i.toString(); //+".v";
if (i == 0) {
h.align = "start";