This commit is contained in:
2021-09-09 19:43:14 +00:00
parent f6b4c93eee
commit 3fb25fce47
3 changed files with 19 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@ ROADMAP STAGE 6 - "REALITY" All in on porting over all the real objects from v7 @@@@@@@@@@@@@@@ ROADMAP STAGE 6 - "MAKE IT HAPPEN" All in on porting over all the real objects from v7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
“Accept the things to which fate binds you, and love the people with whom fate brings you together,but do so with all your heart.” “Accept the things to which fate binds you, and love the people with whom fate brings you together,but do so with all your heart.”
― Marcus Aurelius, Meditations ― Marcus Aurelius, Meditations
@@ -10,6 +10,10 @@
## ROUGH SCHEDULE ## ROUGH SCHEDULE
GetLastReport is not implemented anywhere but is useful adn key GetLastReport is not implemented anywhere but is useful adn key
lastreport new icon or no icon or...??
Erase all data / generate data should maybe also erase all local cached browser data like ?reset ??
or maybe not, this is related to reports which I think don't clear in erasedatabase??
new testing cases new testing cases
Schedule form Schedule form
Dashboard / widgets Dashboard / widgets

View File

@@ -1291,7 +1291,7 @@ async function fetchSavedFilterList(vm) {
//////////////////// ////////////////////
// //
function saveFormSettings(vm) { function saveFormSettings(vm) {
window.$gz.form.setFormSettings(vm.formKey, { let newFormSettings = {
temp: { page: vm.dataTablePagingOptions.page }, temp: { page: vm.dataTablePagingOptions.page },
saved: { saved: {
itemsPerPage: vm.dataTablePagingOptions.itemsPerPage, itemsPerPage: vm.dataTablePagingOptions.itemsPerPage,
@@ -1299,7 +1299,18 @@ function saveFormSettings(vm) {
activeFilterId: vm.activeFilterId activeFilterId: vm.activeFilterId
} }
} }
}); };
//preserve anything not directly related to datatable
//for now it's just the last report so nothing fancy here
let formSettings = window.$gz.form.getFormSettings(vm.formKey);
console.log("datatable-saveformsettings fetched is:", formSettings);
if (formSettings != null && formSettings.saved != null) {
if (formSettings.saved.lastReport != null) {
newFormSettings.lastReport = formSettings.saved.lastReport;
}
}
window.$gz.form.setFormSettings(vm.formKey, newFormSettings);
} }
//////////////////// ////////////////////

View File

@@ -185,6 +185,7 @@ export default new Vuex.Store({
state.formSettings = {}; state.formSettings = {};
}, },
setFormSettings(state, data) { setFormSettings(state, data) {
console.log("Store::setformsettings", data);
state.formSettings[data.formKey] = data.formSettings; state.formSettings[data.formKey] = data.formSettings;
}, },
clearFormSettings(state, formKey) { clearFormSettings(state, formKey) {