fix: resetCategory
gitea/salix-front/pipeline/pr-master This commit looks good Details

This commit is contained in:
Alex Moreno 2024-11-22 11:05:48 +01:00
parent 1709795cf9
commit 2db0369b74
1 changed files with 2 additions and 9 deletions

View File

@ -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"
>
<template #tags="{ tag, formatFn }">
<strong v-if="tag.label === 'typeFk' && typeList">