forked from verdnatura/salix-front
hotFix(claim_development): reload when change route id
This commit is contained in:
parent
6abce3c7d0
commit
8c754dd196
|
@ -20,7 +20,8 @@ const workers = ref([]);
|
|||
const selected = ref([]);
|
||||
const saveButtonRef = ref();
|
||||
|
||||
const developmentsFilter = {
|
||||
const developmentsFilter = computed(() => {
|
||||
return {
|
||||
fields: [
|
||||
'id',
|
||||
'claimFk',
|
||||
|
@ -34,6 +35,7 @@ const developmentsFilter = {
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue