From 2db0369b741f57325e9f162eb45b0174b289b517 Mon Sep 17 00:00:00 2001 From: alexm Date: Fri, 22 Nov 2024 11:05:48 +0100 Subject: [PATCH] fix: resetCategory --- src/pages/Order/Card/OrderCatalogFilter.vue | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/pages/Order/Card/OrderCatalogFilter.vue b/src/pages/Order/Card/OrderCatalogFilter.vue index eb9faf031..03c479ef4 100644 --- a/src/pages/Order/Card/OrderCatalogFilter.vue +++ b/src/pages/Order/Card/OrderCatalogFilter.vue @@ -54,7 +54,7 @@ const resetCategory = (params, search) => { params.categoryFk = null; params.typeFk = null; arrayData.store.userFilter = null; - removeTagGroupParam(params, search); + search(); }; const selectCategory = async (params, category, search) => { @@ -137,12 +137,6 @@ const getCategoryClass = (category, params) => { } }; -const clearFilter = (key) => { - if (key === 'categoryFk') { - resetCategory(); - } -}; - function addOrder(value, field, params) { let { orderBy } = params; orderBy = JSON.parse(orderBy); @@ -158,11 +152,10 @@ function addOrder(value, field, params) { ref="vnFilterPanelRef" :data-key="props.dataKey" :hidden-tags="['filter', 'orderFk', 'orderBy']" - :un-removable-params="['orderFk', 'orderBy']" + :unremovable-params="['orderFk', 'orderBy']" :expr-builder="exprBuilder" :custom-tags="['tagGroups', 'categoryFk']" :redirect="false" - @remove="clearFilter" >