This commit is contained in:
2021-02-01 23:27:18 +00:00
parent 67cd3ccbf2
commit c9c3ac38e3
2 changed files with 6 additions and 21 deletions

View File

@@ -9,10 +9,8 @@ MISC ITEMS THAT CAME UP
LISTVIEW REPLACE CURRENT <----HERE not THERE ---v
(below this is all past for reference)
Update datatable to send to server sort changes
update client to adapt ui to returned columnview
Sort done for normal wide table view however mobile view is *not* using datatable it's using dataiterator so next is:
Convert mobile view to datatable, hopefully figure out whatever made me do it that way and fix it
.......

View File

@@ -2,8 +2,8 @@
<div>
<gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error>
<v-card>
{{ dataTablePagingOptions }}
{{ headers }}
<!-- {{ dataTablePagingOptions }}
{{ headers }} -->
<v-card-title>
<v-select
v-model="listViewId"
@@ -187,7 +187,7 @@
:options.sync="dataTablePagingOptions"
:server-items-length="totalRecords"
:loading="loading"
:disable-sort="true"
multi-sort
:show-select="showSelect"
:single-select="singleSelect"
:footer-props="{
@@ -531,24 +531,11 @@ export default {
} else {
sortDesc.push(false);
}
// console.log(`${key}: ${rsort[key]}`);
});
}
//vm.selected = [...preSelected];
this.dataTablePagingOptions.sortBy = [...sortBy];
this.dataTablePagingOptions.sortDesc = [...sortDesc];
console.log("setsortindicator:", { sortBy: sortBy, sortDesc: sortDesc });
// {
// "sortBy": {
// "customername": "-",
// "customerphone1": "+",
// "customeremail": "-"
// }
// }
//to this
//
//this.dataTablePagingOptions.sortDesc
//{ "page": 1, "itemsPerPage": 10, "sortBy": [ "columns.c0", "columns.c1", "columns.c2" ], "sortDesc": [ false, false, true ], "groupBy": [], "groupDesc": [], "mustSort": false, "multiSort": true }
},
refresh() {
this.getDataFromApi();