From a89748827f45f621afae11f63345640a6ba427c3 Mon Sep 17 00:00:00 2001 From: carlossa Date: Mon, 29 Jan 2024 11:42:08 +0100 Subject: [PATCH] refs #6677 url --- src/components/FetchData.vue | 3 +- src/components/common/VnSelectFilter.vue | 72 +++++++++++++++---- src/pages/Claim/Card/ClaimDevelopment.vue | 4 +- .../InvoiceIn/Card/InvoiceInBasicData.vue | 45 ++++-------- 4 files changed, 75 insertions(+), 49 deletions(-) diff --git a/src/components/FetchData.vue b/src/components/FetchData.vue index 137f751db..4f5d7a57d 100644 --- a/src/components/FetchData.vue +++ b/src/components/FetchData.vue @@ -45,7 +45,7 @@ onMounted(async () => { async function fetch(fetchFilter = {}) { try { const filter = Object.assign(fetchFilter, $props.filter); // eslint-disable-line vue/no-dupe-keys - if ($props.where) filter.where = $props.where; + if ($props.where && !fetchFilter.where) filter.where = $props.where; if ($props.sortBy) filter.order = $props.sortBy; if ($props.limit) filter.limit = $props.limit; @@ -54,6 +54,7 @@ async function fetch(fetchFilter = {}) { }); emit('onFetch', data); + return data; } catch (e) { // } diff --git a/src/components/common/VnSelectFilter.vue b/src/components/common/VnSelectFilter.vue index 182ec8e16..5735bf370 100644 --- a/src/components/common/VnSelectFilter.vue +++ b/src/components/common/VnSelectFilter.vue @@ -1,8 +1,8 @@ - + s