From 2024e38e4b9f8045b2b11bf62a8001542dea6b93 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 26 Jan 2021 01:19:27 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 12 ++++++++---- ayanova/src/components/gz-data-table.vue | 5 +++++ .../src/views/inv-part-inventory-transactions.vue | 13 ++++++++++--- 3 files changed, 23 insertions(+), 7 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 9c15e6a0..9975df69 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -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) diff --git a/ayanova/src/components/gz-data-table.vue b/ayanova/src/components/gz-data-table.vue index 04cda7ca..f9ea2fcc 100644 --- a/ayanova/src/components/gz-data-table.vue +++ b/ayanova/src/components/gz-data-table.vue @@ -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; diff --git a/ayanova/src/views/inv-part-inventory-transactions.vue b/ayanova/src/views/inv-part-inventory-transactions.vue index 5d82f622..d88191fe 100644 --- a/ayanova/src/views/inv-part-inventory-transactions.vue +++ b/ayanova/src/views/inv-part-inventory-transactions.vue @@ -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: {