From 081fdcaba58db02c22226f5cbcf46d022a677abf Mon Sep 17 00:00:00 2001 From: pablone Date: Wed, 18 Oct 2023 13:31:23 +0200 Subject: [PATCH] feat(vnrow): create component vnrow refs #6118 --- src/components/ui/CardDescriptor.vue | 2 ++ src/components/ui/VnRow.vue | 14 ++++++++++++++ src/pages/Claim/Card/ClaimBasicData.vue | 8 ++++++-- src/pages/Claim/Card/ClaimDescriptor.vue | 3 +++ 4 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 src/components/ui/VnRow.vue diff --git a/src/components/ui/CardDescriptor.vue b/src/components/ui/CardDescriptor.vue index 65a89ee28..e4b8740e9 100644 --- a/src/components/ui/CardDescriptor.vue +++ b/src/components/ui/CardDescriptor.vue @@ -41,7 +41,9 @@ async function fetch() { if ($props.filter) params.filter = JSON.stringify($props.filter); const { data } = await axios.get($props.url, { params }); + console.log(data); entity.value = data; + console.log('entity.value: ', entity.value); emit('onFetch', data); } diff --git a/src/components/ui/VnRow.vue b/src/components/ui/VnRow.vue new file mode 100644 index 000000000..687d0cdf4 --- /dev/null +++ b/src/components/ui/VnRow.vue @@ -0,0 +1,14 @@ + + + diff --git a/src/pages/Claim/Card/ClaimBasicData.vue b/src/pages/Claim/Card/ClaimBasicData.vue index f6ba556e9..a36b08541 100644 --- a/src/pages/Claim/Card/ClaimBasicData.vue +++ b/src/pages/Claim/Card/ClaimBasicData.vue @@ -6,6 +6,7 @@ import { useI18n } from 'vue-i18n'; import { useSession } from 'src/composables/useSession'; import FetchData from 'components/FetchData.vue'; import FormModel from 'components/FormModel.vue'; +import VnRow from 'components/ui/VnRow.vue'; const route = useRoute(); const { t } = useI18n(); @@ -44,6 +45,7 @@ function setWorkers(data) { } function setClaimStates(data) { + console.log(data); claimStates.value = data; claimStatesCopy.value = data; } @@ -51,6 +53,7 @@ function setClaimStates(data) { const workerFilter = { options: workers, filterFn: (options, value) => { + console.log('Filtering workers with value:', value); const search = value.toLowerCase(); if (value === '') return workersCopy.value; @@ -70,6 +73,7 @@ const workerFilter = { const statesFilter = { options: claimStates, filterFn: (options, value) => { + console.log('Filtering claim states with value:', value); const search = value.toLowerCase(); if (value === '') return claimStatesCopy.value; @@ -99,7 +103,7 @@ const statesFilter = { model="claim" >