CHECKPOINT - about to completely re-do much of the datatable object and underlying system, this is the final commit before doing that
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
<div>
|
||||
<gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error>
|
||||
<v-card>
|
||||
{{ dataTablePagingOptions }}
|
||||
<v-card-title>
|
||||
<v-select
|
||||
v-model="listViewId"
|
||||
@@ -39,7 +40,7 @@
|
||||
:options.sync="dataTablePagingOptions"
|
||||
:server-items-length="totalRecords"
|
||||
:loading="loading"
|
||||
:disable-sort="true"
|
||||
multi-sort
|
||||
:show-select="showSelect"
|
||||
:single-select="singleSelect"
|
||||
:footer-props="{
|
||||
@@ -531,9 +532,12 @@ export default {
|
||||
});
|
||||
},
|
||||
resetListView: function() {
|
||||
console.log("RESET LISTVIEW CALLED");
|
||||
let vm = this;
|
||||
vm.listViewId = 0;
|
||||
vm.listView = undefined;
|
||||
vm.dataTablePagingOptions.page = 1;
|
||||
saveFormSettings(vm);
|
||||
//needs to show as temp unsaved filter or overridden or something
|
||||
},
|
||||
|
||||
listViewChanged: async function() {
|
||||
@@ -610,7 +614,6 @@ export default {
|
||||
if (vm.loading) {
|
||||
return;
|
||||
}
|
||||
|
||||
//start with defaults
|
||||
let listOptions = {
|
||||
DataListKey: vm.dataListKey,
|
||||
@@ -690,6 +693,11 @@ export default {
|
||||
//loadFormSettings(vm);
|
||||
vm.loading = false;
|
||||
vm.getDataFromApi();
|
||||
},
|
||||
beforeUpdate() {
|
||||
if (this.metaView != null && this.listViewId != 0) {
|
||||
this.resetListView();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user