diff --git a/application/views/lehre/anrechnung/requestAnrechnung.php b/application/views/lehre/anrechnung/requestAnrechnung.php index 328af2f4f..81b07b1ee 100644 --- a/application/views/lehre/anrechnung/requestAnrechnung.php +++ b/application/views/lehre/anrechnung/requestAnrechnung.php @@ -85,7 +85,7 @@ else } -
+
diff --git a/public/js/components/Cis/Mylv/Semester/Studiengang.js b/public/js/components/Cis/Mylv/Semester/Studiengang.js index 123986d56..9629ba307 100644 --- a/public/js/components/Cis/Mylv/Semester/Studiengang.js +++ b/public/js/components/Cis/Mylv/Semester/Studiengang.js @@ -33,7 +33,7 @@ export default { template: `

{{bezeichnung}} - {{kuerzel}} - {{semester}}.{{p.t('lehre/semester')}} + {{semester}}.{{$p.t('lehre/semester')}}

diff --git a/public/js/components/Cis/Mylv/Student.js b/public/js/components/Cis/Mylv/Student.js index 068f0f84d..8b6164192 100644 --- a/public/js/components/Cis/Mylv/Student.js +++ b/public/js/components/Cis/Mylv/Student.js @@ -91,7 +91,7 @@ export default { }, template: ` -

{{p.t('lehre/myLV')}}

+

{{$p.t('lehre/myLV')}}


diff --git a/public/js/components/Cis/Profil/MitarbeiterProfil.js b/public/js/components/Cis/Profil/MitarbeiterProfil.js index acae0cc5a..8bba26ea2 100644 --- a/public/js/components/Cis/Profil/MitarbeiterProfil.js +++ b/public/js/components/Cis/Profil/MitarbeiterProfil.js @@ -34,20 +34,15 @@ export default { // tabulator options funktionen_table_options: { + persistenceID: "filterTableMaProfilFunktionen", + persistence: { + columns: false + }, height: 300, layout: "fitColumns", responsiveLayout: "collapse", responsiveLayoutCollapseUseFormatters: false, responsiveLayoutCollapseFormatter: Vue.$collapseFormatter, - data: [ - { - Bezeichnung: "", - Organisationseinheit: "", - Gültig_von: "", - Gültig_bis: "", - Wochenstunden: "", - }, - ], columns: [ { title: @@ -58,18 +53,21 @@ export default { formatter: "responsiveCollapse", maxWidth: 40, headerClick: this.collapseFunction, + visible: true }, { title: "Bezeichnung", field: "Bezeichnung", headerFilter: true, minWidth: 200, + visible: true }, { title: "Organisationseinheit", field: "Organisationseinheit", headerFilter: true, minWidth: 200, + visible: true }, { title: "Gültig_von", @@ -77,6 +75,7 @@ export default { headerFilter: true, resizable: true, minWidth: 200, + visible: true }, { title: "Gültig_bis", @@ -84,12 +83,14 @@ export default { headerFilter: true, resizable: true, minWidth: 200, + visible: true }, { title: "Wochenstunden", field: "Wochenstunden", headerFilter: true, minWidth: 200, + visible: true }, ], }, @@ -111,12 +112,14 @@ export default { formatter: "responsiveCollapse", maxWidth: 40, headerClick: this.collapseFunction, + visible: true }, { title: "Betriebsmittel", field: "betriebsmittel", headerFilter: true, minWidth: 200, + visible: true }, { title: "Nummer", @@ -124,15 +127,17 @@ export default { headerFilter: true, resizable: true, minWidth: 200, + visible: true }, { title: "Ausgegeben_am", field: "Ausgegeben_am", headerFilter: true, minWidth: 200, + visible: true }, ], - }, + } }; }, @@ -140,7 +145,12 @@ export default { data: Object, editData: Object, }, - + 'data.funktionen'(newVal) { + if(this.$refs.funktionenTable) this.$refs.funktionenTable.tabulator.setData(newVal); + }, + 'data.mittel'(newVal) { + if(this.$refs.betriebsmittelTable) this.$refs.betriebsmittelTable.tabulator.setData(newVal); + }, methods: { betriebsmittelTableBuilt: function () { this.$refs.betriebsmittelTable.tabulator.setData(this.data.mittel); @@ -256,15 +266,6 @@ export default { value: this.data.ort_kurzbz } }; - - // return { - // [`${this.$p.t('profil', 'Geburtsdatum')}`]: this.data.gebdatum, - // [`${this.$p.t('profil', 'Geburtsort')}`]: this.data.gebort, - // [`${this.$p.t('profil', 'Kurzzeichen')}`]: this.data.kurzbz, - // [`${this.$p.t('profil', 'Telefon')}`]: - // (this.data.standort_telefon ? this.data.standort_telefon.kontakt + " " + this.data.telefonklappe : this.data.telefonklappe), - // [`${this.$p.t('profil', 'Büro')}`]: this.data.ort_kurzbz, - // }; }, }, @@ -390,11 +391,25 @@ export default {
- +
- +
diff --git a/public/js/components/Cis/Profil/MitarbeiterViewProfil.js b/public/js/components/Cis/Profil/MitarbeiterViewProfil.js index 07cb83402..baf6fe745 100644 --- a/public/js/components/Cis/Profil/MitarbeiterViewProfil.js +++ b/public/js/components/Cis/Profil/MitarbeiterViewProfil.js @@ -20,20 +20,15 @@ export default { collapseIconFunktionen: true, funktionen_table_options: { + persistenceID: "filterTableMaViewProfilFunktionen", + persistence: { + columns: false + }, height: 300, layout: "fitColumns", responsiveLayout: "collapse", responsiveLayoutCollapseUseFormatters: false, responsiveLayoutCollapseFormatter: Vue.$collapseFormatter, - data: [ - { - Bezeichnung: "", - Organisationseinheit: "", - Gültig_von: "", - Gültig_bis: "", - Wochenstunden: "", - }, - ], columns: [ //? option when wanting to hide the collapsed list @@ -46,18 +41,21 @@ export default { formatter: "responsiveCollapse", maxWidth: 40, headerClick: this.collapseFunction, + visible: true }, { title: "Bezeichnung", field: "Bezeichnung", headerFilter: true, minWidth: 200, + visible: true }, { title: "Organisationseinheit", field: "Organisationseinheit", headerFilter: true, minWidth: 200, + visible: true }, { title: "Gültig_von", @@ -65,6 +63,7 @@ export default { headerFilter: true, resizable: true, minWidth: 200, + visible: true }, { title: "Gültig_bis", @@ -72,12 +71,14 @@ export default { headerFilter: true, resizable: true, minWidth: 200, + visible: true }, { title: "Wochenstunden", field: "Wochenstunden", headerFilter: true, minWidth: 200, + visible: true }, ], }, @@ -91,7 +92,11 @@ export default { this.$refs.funktionenTable.tabulator.setData(this.data.funktionen); }, }, - + watch: { + 'data.funktionen'(newVal) { + if(this.$refs.funktionenTable) this.$refs.funktionenTable.tabulator.setData(newVal); + }, + }, computed: { getTelefonValue() { if(this.data.standort_telefon?.kontakt) { @@ -153,15 +158,6 @@ export default { value: this.data.ort_kurzbz } }; - - // return { - // [`${this.$p.t('profil', 'Geburtsdatum')}`]: this.data.gebdatum, - // [`${this.$p.t('profil', 'Geburtsort')}`]: this.data.gebort, - // [`${this.$p.t('profil', 'Kurzzeichen')}`]: this.data.kurzbz, - // [`${this.$p.t('profil', 'Telefon')}`]: - // (this.data.standort_telefon ? this.data.standort_telefon + " " + this.data.telefonklappe : this.data.telefonklappe), - // [`${this.$p.t('profil', 'Büro')}`]: this.data.ort_kurzbz, - // }; }, }, diff --git a/public/js/components/Cis/Profil/StudentProfil.js b/public/js/components/Cis/Profil/StudentProfil.js index 1c1f55997..5b4609e5f 100644 --- a/public/js/components/Cis/Profil/StudentProfil.js +++ b/public/js/components/Cis/Profil/StudentProfil.js @@ -206,17 +206,6 @@ export default { value: this.data.gruppe.trim() } }; - - // so nicht - // return { - // [`${this.$p.t('profil','Geburtsdatum')}`]: this.data.gebdatum, - // [`${this.$p.t('profil', 'Geburtsort')}`]: this.data.gebort, - // [`${this.$p.t('person', 'personenkennzeichen')}`]: this.data.personenkennzeichen, - // [`${this.$p.t('lehre', 'studiengang')}`]: this.data.studiengang, - // [`${this.$p.t('lehre', 'semester')}`]: this.data.semester, - // [`${this.$p.t('lehre', 'lehrverband')}`]: this.data.verband, - // [`${this.$p.t('lehre', 'gruppe')}`]: this.data.gruppe.trim(), - // }; }, }, created() { diff --git a/public/js/components/Cis/Profil/StudentViewProfil.js b/public/js/components/Cis/Profil/StudentViewProfil.js index b1e4479df..1c2044441 100644 --- a/public/js/components/Cis/Profil/StudentViewProfil.js +++ b/public/js/components/Cis/Profil/StudentViewProfil.js @@ -66,36 +66,26 @@ export default { value: this.data.gebort }, personenkennzeichen: { - label: `${this.$p.t('person','Geburtsort')}`, + label: `${this.$p.t('person','personenkennzeichen')}`, value: this.data.personenkennzeichen }, studiengang: { - label: `${this.$p.t('lehre','Geburtsort')}`, + label: `${this.$p.t('lehre','studiengang')}`, value: this.data.studiengang }, semester: { - label: `${this.$p.t('lehre','Geburtsort')}`, + label: `${this.$p.t('lehre','semester')}`, value: this.data.semester }, verband: { - label: `${this.$p.t('lehre','Geburtsort')}`, + label: `${this.$p.t('lehre','lehrverband')}`, value: this.data.verband }, gruppe: { - label: `${this.$p.t('lehre','Geburtsort')}`, + label: `${this.$p.t('lehre','gruppe')}`, value: this.data.gruppe.trim() } }; - - // return { - // Geburtsdatum: this.data.gebdatum, - // Geburtsort: this.data.gebort, - // Personenkennzeichen: this.data.personenkennzeichen, - // Studiengang: this.data.studiengang, - // Semester: this.data.semester, - // Verband: this.data.verband, - // Gruppe: this.data.gruppe.trim(), - // }; }, }, diff --git a/public/js/components/Cis/Sprachen.js b/public/js/components/Cis/Sprachen.js index 397efae82..fd53d06db 100644 --- a/public/js/components/Cis/Sprachen.js +++ b/public/js/components/Cis/Sprachen.js @@ -9,11 +9,13 @@ export default { changeLanguage: function(lang){ if(this.allActiveLanguages.some(l => l.sprache === lang)) { + const isReload = document.querySelector('[cis4Reload]') this.$p.setLanguage(lang, this.$fhcApi) .then(res => res.data) .then(data => { - this.$emit('languageChanged', lang); + if(isReload) window.location.reload() + else this.$emit('languageChanged', lang); }) } }, diff --git a/public/js/components/Dashboard/Dashboard.js b/public/js/components/Dashboard/Dashboard.js index b1219cad6..74a65ecaa 100644 --- a/public/js/components/Dashboard/Dashboard.js +++ b/public/js/components/Dashboard/Dashboard.js @@ -55,6 +55,7 @@ export default { } this.$refs.widgetpicker.getWidget().then(widget_id => { widget.widget = widget_id; + widget.id = 'loading_' + String((new Date()).valueOf()); let loading = {...widget}; loading.loading = true; this.sections.forEach(section => { @@ -169,11 +170,11 @@ export default { }, template: `
-

+

{{ $p.t('global/personalGreeting', [ viewDataInternal?.name ]) }}

` -} \ No newline at end of file +} diff --git a/public/js/components/DashboardWidget/Stundenplan.js b/public/js/components/DashboardWidget/Stundenplan.js index 732176c0c..bf4324f4a 100644 --- a/public/js/components/DashboardWidget/Stundenplan.js +++ b/public/js/components/DashboardWidget/Stundenplan.js @@ -180,7 +180,7 @@ export default {