#8193: Added filter in ClientNotes #1609

Open
jon wants to merge 24 commits from 8193-AddFilterInClientNotes into dev
1 changed files with 8 additions and 1 deletions
Showing only changes of commit d3828fc068 - Show all commits

View File

@ -9,6 +9,13 @@ const state = useState();
const user = state.getUser();
const vehicleId = computed(() => route.params.id);
const noteFilter = computed(() => {
return {
order: 'created DESC',
where: { vehicleFk: vehicleId.value },
};
});
const body = {
vehicleFk: vehicleId.value,
workerFk: user.value.id,
@ -20,7 +27,7 @@ const body = {
url="vehicleObservations"
data-key="vehicleObservations"
:add-note="true"
:filter="{ where: { vehicleFk: $route.params.id } }"
:filter="noteFilter"
:body="body"
:filter-columns="['workerFk']"
style="overflow-y: auto"