forked from verdnatura/salix-front
39 lines
789 B
Vue
39 lines
789 B
Vue
<script setup>
|
|
import { useRoute } from 'vue-router';
|
|
|
|
import VnNotes from 'src/components/ui/VnNotes.vue';
|
|
|
|
const route = useRoute();
|
|
|
|
const filter = {
|
|
order: 'created DESC',
|
|
where: { workerFk: route.params.id },
|
|
include: {
|
|
relation: 'worker',
|
|
scope: {
|
|
fields: ['id', 'firstName', 'lastName'],
|
|
include: {
|
|
relation: 'user',
|
|
scope: {
|
|
fields: ['id', 'nickname'],
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|
|
|
|
const body = {
|
|
workerFk: route.params.id,
|
|
};
|
|
</script>
|
|
|
|
<template>
|
|
<VnNotes
|
|
style="overflow-y: auto"
|
|
:add-note="{ type: Boolean, default: true }"
|
|
url="WorkerObservations"
|
|
:filter="filter"
|
|
:body="body"
|
|
/>
|
|
</template>
|