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

View File

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