Betriebsmittel.js: use arrow function for dynamic ajaxParams, Filter.js: remove required from filterType

This commit is contained in:
Harald Bamberger
2024-07-11 18:32:47 +02:00
parent 16ab9998b0
commit 9d455c35d0
2 changed files with 8 additions and 7 deletions
@@ -36,10 +36,12 @@ export default {
tabulatorOptions: {
ajaxURL: 'dummy',
ajaxRequestFunc: this.endpoint.getAllBetriebsmittel,
ajaxParams: {
type: this.typeId,
id: this.id
},
ajaxParams: () => {
return {
type: this.typeId,
id: this.id
}
},
ajaxResponse: (url, params, response) => response.data,
columns: [
{title: "Nummer", field: "nummer", width: 150},
@@ -149,7 +151,7 @@ export default {
},
watch: {
id() {
this.$refs.table.tabulator.setData('dummy', {type: this.typeId, id: this.id});
this.$refs.table.tabulator.setData('dummy');
}
},
methods: {
+1 -2
View File
@@ -48,8 +48,7 @@ export const CoreFilterCmpt = {
default: true
},
filterType: {
type: String,
required: true
type: String
},
tabulatorOptions: Object,
tabulatorEvents: Array,