refactor: refs #8193 noteFilter
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
b548f34c81
commit
d3828fc068
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue