0
0
Fork 0

fix: refs #7717 fixed searchbar filter with rightmenu filters' applied

This commit is contained in:
Jon Elias 2024-07-22 12:52:58 +02:00
parent 02e1de083a
commit def3ca33a2
3 changed files with 8 additions and 9 deletions

View File

@ -100,9 +100,11 @@ onMounted(() => {
}); });
async function search() { async function search() {
const staticParams = Object.entries(store.userParams).filter( const staticParams = Object.entries(store.userParams);
([key, value]) => value && (props.staticParams || []).includes(key) console.log('staticParams: ', staticParams);
); // .filter(
// ([key, value]) => value && (props.staticParams || []).includes(key)
// );
arrayData.reset(['skip', 'page']); arrayData.reset(['skip', 'page']);
if (props.makeFetch) if (props.makeFetch)

View File

@ -53,6 +53,7 @@ function extractValueTags(items) {
</script> </script>
<template> <template>
<!-- TODO Sobreescribir la barra de búsqueda -->
<Teleport to="#searchbar"> <Teleport to="#searchbar">
<VnSearchbar <VnSearchbar
data-key="OrderCatalogList" data-key="OrderCatalogList"

View File

@ -3,12 +3,12 @@ import axios from 'axios';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { computed, ref } from 'vue'; import { computed, ref } from 'vue';
import { dashIfEmpty, toCurrency, toDate } from 'src/filters'; import { dashIfEmpty, toCurrency, toDate } from 'src/filters';
import VnSearchbar from 'src/components/ui/VnSearchbar.vue';
import OrderSummary from 'pages/Order/Card/OrderSummary.vue'; import OrderSummary from 'pages/Order/Card/OrderSummary.vue';
import { useSummaryDialog } from 'src/composables/useSummaryDialog'; import { useSummaryDialog } from 'src/composables/useSummaryDialog';
import VnTable from 'src/components/VnTable/VnTable.vue'; import VnTable from 'src/components/VnTable/VnTable.vue';
import VnInputDate from 'src/components/common/VnInputDate.vue'; import VnInputDate from 'src/components/common/VnInputDate.vue';
import VnSelect from 'src/components/common/VnSelect.vue'; import VnSelect from 'src/components/common/VnSelect.vue';
import OrderSearchbar from './Card/OrderSearchbar.vue';
const { t } = useI18n(); const { t } = useI18n();
const { viewSummary } = useSummaryDialog(); const { viewSummary } = useSummaryDialog();
@ -132,11 +132,7 @@ async function fetchClientAddress(id, data) {
} }
</script> </script>
<template> <template>
<VnSearchbar <OrderSearchbar />
data-key="OrderList"
:label="t('Search order')"
:info="t('You can search orders by reference')"
/>
<VnTable <VnTable
ref="tableRef" ref="tableRef"
data-key="OrderList" data-key="OrderList"