0
0
Fork 0

hotFix(claim_development): reload when change route id

This commit is contained in:
Alex Moreno 2024-08-05 15:22:34 +02:00
parent 6abce3c7d0
commit 8c754dd196
1 changed files with 17 additions and 15 deletions

View File

@ -20,20 +20,22 @@ const workers = ref([]);
const selected = ref([]);
const saveButtonRef = ref();
const developmentsFilter = {
fields: [
'id',
'claimFk',
'claimReasonFk',
'claimResultFk',
'claimResponsibleFk',
'workerFk',
'claimRedeliveryFk',
],
where: {
claimFk: route.params.id,
},
};
const developmentsFilter = computed(() => {
return {
fields: [
'id',
'claimFk',
'claimReasonFk',
'claimResultFk',
'claimResponsibleFk',
'workerFk',
'claimRedeliveryFk',
],
where: {
claimFk: route.params.id,
},
};
});
const columns = computed(() => [
{
@ -142,9 +144,9 @@ const columns = computed(() => [
ref="claimDevelopmentForm"
:data-required="{ claimFk: route.params.id }"
v-model:selected="selected"
auto-load
@save-changes="$router.push(`/claim/${route.params.id}/action`)"
:default-save="false"
auto-load
>
<template #body="{ rows }">
<QTable