mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-16 22:42:16 +00:00
Tab Kontakt: Bankaccount: move tabulator options to computed, fix bug height
This commit is contained in:
@@ -45,7 +45,6 @@ export default{
|
||||
suggestions: null,
|
||||
places: null
|
||||
},
|
||||
height: 'auto',
|
||||
index: 'adresse_id',
|
||||
persistenceID: 'stv-details-kontakt-address'
|
||||
}
|
||||
@@ -151,6 +150,7 @@ export default{
|
||||
frozen: true
|
||||
},
|
||||
],
|
||||
height: 'auto'
|
||||
};
|
||||
return options;
|
||||
},
|
||||
|
||||
@@ -17,8 +17,20 @@ export default{
|
||||
uid: Number
|
||||
},
|
||||
data() {
|
||||
return{
|
||||
tabulatorOptions: {
|
||||
return {
|
||||
lastSelected: null,
|
||||
bankverbindungData: {
|
||||
verrechnung: true,
|
||||
typ: 'p'
|
||||
},
|
||||
statusNew: true,
|
||||
index: 'bankverbindung_id',
|
||||
persistenceID: 'stv-details-kontakt-bankaccount'
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
tabulatorOptions() {
|
||||
const options = {
|
||||
ajaxURL: 'dummy',
|
||||
ajaxRequestFunc: () => this.$api.call(ApiStvBankaccount.get(this.uid)),
|
||||
ajaxResponse: (url, params, response) => response.data,
|
||||
@@ -86,11 +98,12 @@ export default{
|
||||
frozen: true
|
||||
},
|
||||
],
|
||||
height: 'auto',
|
||||
index: 'bankverbindung_id',
|
||||
persistenceID: 'stv-details-kontakt-bankaccount'
|
||||
},
|
||||
tabulatorEvents: [
|
||||
height: 'auto'
|
||||
};
|
||||
return options;
|
||||
},
|
||||
tabulatorEvents() {
|
||||
const events = [
|
||||
{
|
||||
event: 'tableBuilt',
|
||||
handler: async() => {
|
||||
@@ -123,19 +136,11 @@ export default{
|
||||
cm.getColumnByField('bankverbindung_id').component.updateDefinition({
|
||||
title: this.$p.t('ui', 'bankverbindung_id')
|
||||
});
|
||||
/* cm.getColumnByField('actions').component.updateDefinition({
|
||||
title: this.$p.t('global', 'aktionen')
|
||||
});*/
|
||||
}
|
||||
}
|
||||
],
|
||||
lastSelected: null,
|
||||
bankverbindungData: {
|
||||
verrechnung: true,
|
||||
typ: 'p'
|
||||
},
|
||||
statusNew: true
|
||||
}
|
||||
];
|
||||
return events;
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
uid() {
|
||||
|
||||
@@ -128,6 +128,7 @@ export default {
|
||||
frozen: true
|
||||
},
|
||||
],
|
||||
height: 'auto'
|
||||
};
|
||||
return options;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user