This commit is contained in:
2021-01-26 01:19:27 +00:00
parent 43a7fcc9e5
commit 2024e38e4b
3 changed files with 23 additions and 7 deletions

View File

@@ -9,9 +9,8 @@ todo: DataList if there is a meta filter it should default to no filter first th
The current filter if any applied fights with the meta filter and in many cases would block it completely
This way they can save it as a common filter if they want and
todo: Part form menu has links to inventory list filtered for that part not implemented yet but could be now
make sure it checks if useinvenotry is in effect
todo: DataList - there are a bunch of props being set that don't exist, for example currentListViewId, dataListFilter, dataListSort
remove them with impunity
todo: userbiz validate can delete has funky error
@@ -166,7 +165,12 @@ todo: server boot up message should show the port it's listening on if possible
CURRENTLY DOING:
CURRENTLY DOING: fun with meta list view Grid needs to reset to no view first then apply meta or something
Wont' work to call soemthign in create on list host form
can't get a ref to the gzdatatable taht works, possibly becuase it's in oncreate
maybe can do it in a later event
maybe look at vue events in datagrid itself
is there one that can process the fact that there is a meta view and just ahndle it internally *(this is best solution)

View File

@@ -530,6 +530,11 @@ export default {
}
});
},
resetListView: function() {
console.log("RESET LISTVIEW CALLED");
let vm = this;
vm.listViewId = 0;
},
listViewChanged: async function() {
let vm = this;

View File

@@ -11,8 +11,6 @@
ref="gzdatatable"
formKey="part-inventory-transaction-list"
:dataListKey="dataListKey"
:dataListFilter="dataListFilter"
:dataListSort="dataListSort"
:showSelect="rights.read"
:reload="reload"
:metaView="metaView"
@@ -53,6 +51,14 @@ export default {
});
}
vm.metaView = JSON.stringify(metaFilter);
debugger;
this.$refs.gzdatatable.resetListView();
let refs = vm.$refs;
console.log(refs);
console.log(refs.gzdatatable);
// console.log("FLIPPING resetlistview", vm.$refs.gzdatatable);
//vm.$refs.gzdatatable.resetListView();
}
generateMenu(vm);
@@ -70,7 +76,8 @@ export default {
ayType: window.$gz.type.PartInventory,
selectedItems: [],
metaView: undefined,
reload: false
reload: false,
resetListView: false
};
},
methods: {