This commit is contained in:
@@ -9,10 +9,8 @@ MISC ITEMS THAT CAME UP
|
|||||||
|
|
||||||
LISTVIEW REPLACE CURRENT <----HERE not THERE ---v
|
LISTVIEW REPLACE CURRENT <----HERE not THERE ---v
|
||||||
(below this is all past for reference)
|
(below this is all past for reference)
|
||||||
Update datatable to send to server sort changes
|
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
|
||||||
update client to adapt ui to returned columnview
|
|
||||||
|
|
||||||
.......
|
.......
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
<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
|
||||||
v-model="listViewId"
|
v-model="listViewId"
|
||||||
@@ -187,7 +187,7 @@
|
|||||||
:options.sync="dataTablePagingOptions"
|
:options.sync="dataTablePagingOptions"
|
||||||
:server-items-length="totalRecords"
|
:server-items-length="totalRecords"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
:disable-sort="true"
|
multi-sort
|
||||||
:show-select="showSelect"
|
:show-select="showSelect"
|
||||||
:single-select="singleSelect"
|
:single-select="singleSelect"
|
||||||
:footer-props="{
|
:footer-props="{
|
||||||
@@ -531,24 +531,11 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
sortDesc.push(false);
|
sortDesc.push(false);
|
||||||
}
|
}
|
||||||
// console.log(`${key}: ${rsort[key]}`);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
//vm.selected = [...preSelected];
|
|
||||||
this.dataTablePagingOptions.sortBy = [...sortBy];
|
this.dataTablePagingOptions.sortBy = [...sortBy];
|
||||||
this.dataTablePagingOptions.sortDesc = [...sortDesc];
|
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() {
|
refresh() {
|
||||||
this.getDataFromApi();
|
this.getDataFromApi();
|
||||||
|
|||||||
Reference in New Issue
Block a user