forked from verdnatura/salix-front
fix: refs #6938 id filter
This commit is contained in:
parent
68069ba9c6
commit
1e77e82784
|
@ -10,7 +10,7 @@ import CardSummary from 'components/ui/CardSummary.vue';
|
|||
import VnUserLink from 'src/components/ui/VnUserLink.vue';
|
||||
import VnTitle from 'src/components/common/VnTitle.vue';
|
||||
|
||||
const {params} = useRoute();
|
||||
const { params } = useRoute();
|
||||
const { t } = useI18n();
|
||||
|
||||
const $props = defineProps({
|
||||
|
@ -27,11 +27,11 @@ onMounted(async () => {
|
|||
workerUrl.value = (await getUrl('')) + `worker/${entityId.value}/`;
|
||||
});
|
||||
|
||||
const filter = {where: {id: params.id}};
|
||||
const filter = { where: { id: entityId.value } };
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<CardSummary ref="summary" :url="`Workers/summary`" :filter="filter" >
|
||||
<CardSummary ref="summary" :url="`Workers/summary`" :filter="filter">
|
||||
<template #header="{ entity }">
|
||||
<div>{{ entity.id }} - {{ entity.firstName }} {{ entity.lastName }}</div>
|
||||
</template>
|
||||
|
|
Loading…
Reference in New Issue