remove unnecessary bottom calc functions

This commit is contained in:
Johann Hoffmann
2026-04-21 15:32:51 +02:00
parent 194de7b4e7
commit 2c72f704d0
+1 -11
View File
@@ -27,8 +27,7 @@ export default {
{title: Vue.computed(() => this.$p.t('lehre/orgform')), field: 'orgform_kurzbz', widthGrow: 1},
{title: Vue.computed(() => this.$p.t('lehre/kurzbz')), field: 'studiengang_kuerzel', widthGrow: 1},
{title: Vue.computed(() => this.$p.t('lehre/semesterstunden')), field: 'semesterstunden',
bottomCalc: this.semesterstundenCalc, bottomCalcFormatter: this.semesterstundenCalcFormatter, bottomCalcParams: this.semesterstundenParamLookup,
widthGrow: 1, visible: true},
bottomCalc: this.semesterstundenCalc, widthGrow: 1, visible: true},
{title: Vue.computed(() => this.$p.t('global/actions')), headerSort: false,
field: 'menu', formatter: this.actionFormatter, widthGrow: 1, tooltip: this.spoofingFunc}
],
@@ -50,15 +49,6 @@ export default {
},
methods: {
semesterstundenCalcFormatter(cell) {
return cell.getValue()
},
semesterstundenParamLookup (values, data) {
const first = data[0]
debugger
return first ? first.anwesenheit + ' %' : ''
},
semesterstundenCalc(values, data) {
let sum = 0
values.forEach(val => {