forked from verdnatura/salix-front
fix: refs #7717 fixed searchbar filter with rightmenu filters' applied
This commit is contained in:
parent
02e1de083a
commit
def3ca33a2
|
@ -100,9 +100,11 @@ onMounted(() => {
|
|||
});
|
||||
|
||||
async function search() {
|
||||
const staticParams = Object.entries(store.userParams).filter(
|
||||
([key, value]) => value && (props.staticParams || []).includes(key)
|
||||
);
|
||||
const staticParams = Object.entries(store.userParams);
|
||||
console.log('staticParams: ', staticParams);
|
||||
// .filter(
|
||||
// ([key, value]) => value && (props.staticParams || []).includes(key)
|
||||
// );
|
||||
arrayData.reset(['skip', 'page']);
|
||||
|
||||
if (props.makeFetch)
|
||||
|
|
|
@ -53,6 +53,7 @@ function extractValueTags(items) {
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<!-- TODO Sobreescribir la barra de búsqueda -->
|
||||
<Teleport to="#searchbar">
|
||||
<VnSearchbar
|
||||
data-key="OrderCatalogList"
|
||||
|
|
|
@ -3,12 +3,12 @@ import axios from 'axios';
|
|||
import { useI18n } from 'vue-i18n';
|
||||
import { computed, ref } from 'vue';
|
||||
import { dashIfEmpty, toCurrency, toDate } from 'src/filters';
|
||||
import VnSearchbar from 'src/components/ui/VnSearchbar.vue';
|
||||
import OrderSummary from 'pages/Order/Card/OrderSummary.vue';
|
||||
import { useSummaryDialog } from 'src/composables/useSummaryDialog';
|
||||
import VnTable from 'src/components/VnTable/VnTable.vue';
|
||||
import VnInputDate from 'src/components/common/VnInputDate.vue';
|
||||
import VnSelect from 'src/components/common/VnSelect.vue';
|
||||
import OrderSearchbar from './Card/OrderSearchbar.vue';
|
||||
|
||||
const { t } = useI18n();
|
||||
const { viewSummary } = useSummaryDialog();
|
||||
|
@ -132,11 +132,7 @@ async function fetchClientAddress(id, data) {
|
|||
}
|
||||
</script>
|
||||
<template>
|
||||
<VnSearchbar
|
||||
data-key="OrderList"
|
||||
:label="t('Search order')"
|
||||
:info="t('You can search orders by reference')"
|
||||
/>
|
||||
<OrderSearchbar />
|
||||
<VnTable
|
||||
ref="tableRef"
|
||||
data-key="OrderList"
|
||||
|
|
Loading…
Reference in New Issue