From c2691f867d1124c77edde5e20a717b2ee6b43bfc Mon Sep 17 00:00:00 2001 From: ma0068 Date: Tue, 4 Mar 2025 09:57:25 +0100 Subject: [PATCH] form Abschlusspruefung as modal --- .../Abschlusspruefung/Abschlusspruefung.js | 646 +++++++++--------- 1 file changed, 328 insertions(+), 318 deletions(-) diff --git a/public/js/components/Stv/Studentenverwaltung/Details/Abschlusspruefung/Abschlusspruefung.js b/public/js/components/Stv/Studentenverwaltung/Details/Abschlusspruefung/Abschlusspruefung.js index a4f2d8907..a37ab7a97 100644 --- a/public/js/components/Stv/Studentenverwaltung/Details/Abschlusspruefung/Abschlusspruefung.js +++ b/public/js/components/Stv/Studentenverwaltung/Details/Abschlusspruefung/Abschlusspruefung.js @@ -49,9 +49,6 @@ export default { stg_kz(){ return this.studentKzs[0]; }, - showAllFormats() { - return this.isBerechtigtDocAndOdt.includes(this.stgInfo.oe_kurzbz); - } }, props: { student: Object @@ -282,11 +279,13 @@ export default { actionNewAbschlusspruefung() { this.resetForm(); this.statusNew = true; + this.$refs.finalexamModal.show(); this.setDefaultFormData(); }, actionEditAbschlusspruefung(abschlusspruefung_id) { this.resetForm(); this.statusNew = false; + this.$refs.finalexamModal.show(); this.loadAbschlusspruefung(abschlusspruefung_id); }, actionDeleteAbschlusspruefung(abschlusspruefung_id) { @@ -307,6 +306,7 @@ export default { return this.$fhcApi.factory.stv.abschlusspruefung.addNewAbschlusspruefung(this.$refs.formFinalExam, dataToSend) .then(response => { this.$fhcAlert.alertSuccess(this.$p.t('ui', 'successSave')); + this.hideModal('finalexamModal'); this.resetForm(); }) .catch(this.$fhcAlert.handleSystemError) @@ -314,6 +314,9 @@ export default { this.reload(); }); }, + hideModal(modalRef){ + this.$refs[modalRef].hide(); + }, reload() { this.$refs.table.reloadTable(); }, @@ -335,6 +338,7 @@ export default { return this.$fhcApi.factory.stv.abschlusspruefung.updateAbschlusspruefung(this.$refs.formFinalExam, dataToSend) .then(response => { this.$fhcAlert.alertSuccess(this.$p.t('ui', 'successSave')); + this.hideModal('finalexamModal'); this.resetForm(); }) .catch(this.$fhcAlert.handleSystemError) @@ -396,12 +400,9 @@ export default { setDefaultFormData() { this.resetForm(); - //TODO(Manu) test with uid in browser - //check lg: if no prüfungsnotizen - if (this.stgInfo.typ === 'b') { - // if (this.stgInfo.typ === 'b' || this.formData.pruefungstyp_kurzbz == 'Bachelor') { - this.formData.pruefungstyp_kurzbz = 'Bachelor'; + if (this.stgInfo.typ === 'b') { + this.formData.pruefungstyp_kurzbz = 'Bachelor'; this.formData.protokoll = this.$p.t('abschlusspruefung', 'pruefungsnotizenMaster'); } if (this.stgInfo.typ === 'd' || this.stgInfo === 'm') { @@ -462,7 +463,7 @@ export default {
- - - {{this.$p.t('global','details')}} -

[{{$p.t('ui', 'neu')}}]

-
- - - - - - - -
+ + + -
- - - - -
+ -
- - - - - -
- -
- - - - - - - -
- -
- - - - - -
- -
- - - - -
- -
- - - - -
- -
-
-

{{$p.t('abschlusspruefung', 'zurBeurteilung')}}

-
-

- - {{$p.t('abschlusspruefung', 'pruefungsprotokoll')}} - -

+ +
+ + + +
-
-
- - -
+
+ + + + + +
+ +
+ + + + + + + +
+ +
+ + + + + +
+ +
+ + + + +
+ +
+ + + + +
+ +
+
+

{{$p.t('abschlusspruefung', 'zurBeurteilung')}}

+
+ +
+ + + + + + - - - - +
` }