mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
Betriebsmittel.js: use arrow function for dynamic ajaxParams, Filter.js: remove required from filterType
This commit is contained in:
@@ -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: {
|
||||
|
||||
@@ -48,8 +48,7 @@ export const CoreFilterCmpt = {
|
||||
default: true
|
||||
},
|
||||
filterType: {
|
||||
type: String,
|
||||
required: true
|
||||
type: String
|
||||
},
|
||||
tabulatorOptions: Object,
|
||||
tabulatorEvents: Array,
|
||||
|
||||
Reference in New Issue
Block a user