From d3d73b985e724def3d7b1735127920ea0a7c7ccb Mon Sep 17 00:00:00 2001 From: alexm Date: Mon, 26 Feb 2024 09:16:37 +0100 Subject: [PATCH] refs #6336 fix(claimSummary): loadPhoto, ItemDescriptor --- src/pages/Claim/Card/ClaimSummary.vue | 17 ++++++++++++----- src/pages/Item/Card/ItemDescriptor.vue | 20 ++++++++++++++++++-- src/pages/Item/Card/ItemDescriptorProxy.vue | 5 +++++ 3 files changed, 35 insertions(+), 7 deletions(-) diff --git a/src/pages/Claim/Card/ClaimSummary.vue b/src/pages/Claim/Card/ClaimSummary.vue index cdc1f15be..b93cbbd81 100644 --- a/src/pages/Claim/Card/ClaimSummary.vue +++ b/src/pages/Claim/Card/ClaimSummary.vue @@ -35,7 +35,6 @@ const claimDmsFilter = ref({ relation: 'dms', }, ], - where: { claimFk: entityId.value }, }); onMounted(async () => { @@ -141,6 +140,11 @@ const claimDms = ref([]); const multimediaDialog = ref(); const multimediaSlide = ref(); +async function getClaimDms() { + claimDmsFilter.value.where = { claimFk: entityId.value }; + await claimDmsRef.value.fetch(); +} + function setClaimDms(data) { claimDms.value = []; data.forEach((media) => { @@ -163,10 +167,13 @@ function openDialog(dmsId) { url="ClaimDms" :filter="claimDmsFilter" @on-fetch="(data) => setClaimDms(data)" - limit="20" ref="claimDmsRef" /> - + @@ -252,7 +259,8 @@ function openDialog(dmsId) { > @@ -274,7 +282,6 @@ function openDialog(dmsId) { - {{ t('claim.summary.photos') }} diff --git a/src/pages/Item/Card/ItemDescriptor.vue b/src/pages/Item/Card/ItemDescriptor.vue index 362fcfc67..8c986e627 100644 --- a/src/pages/Item/Card/ItemDescriptor.vue +++ b/src/pages/Item/Card/ItemDescriptor.vue @@ -1,5 +1,5 @@ @@ -21,6 +25,7 @@ const $props = defineProps({ :id="$props.id" :summary="ItemSummary" :dated="dated" + :sale-fk="saleFk" />