From 9ebb04a01b6aab4d29a67ee7d0f6cc2d601d24a8 Mon Sep 17 00:00:00 2001 From: SimonGschnell Date: Mon, 29 Jan 2024 09:49:50 +0100 Subject: [PATCH] StudentView also uses the layout components --- .../Cis/Profil/MitarbeiterViewProfil.js | 25 +- .../Cis/Profil/StudentViewProfil.js | 317 ++---------------- 2 files changed, 36 insertions(+), 306 deletions(-) diff --git a/public/js/components/Cis/Profil/MitarbeiterViewProfil.js b/public/js/components/Cis/Profil/MitarbeiterViewProfil.js index e2d727ad7..77b74d437 100644 --- a/public/js/components/Cis/Profil/MitarbeiterViewProfil.js +++ b/public/js/components/Cis/Profil/MitarbeiterViewProfil.js @@ -152,30 +152,7 @@ export default {
-
-
-

-

- -

- -
-
+
diff --git a/public/js/components/Cis/Profil/StudentViewProfil.js b/public/js/components/Cis/Profil/StudentViewProfil.js index 4c1a41db7..3996f1950 100644 --- a/public/js/components/Cis/Profil/StudentViewProfil.js +++ b/public/js/components/Cis/Profil/StudentViewProfil.js @@ -1,3 +1,8 @@ +import QuickLinks from "./ProfilComponents/QuickLinks.js"; +import Mailverteiler from "./ProfilComponents/Mailverteiler.js"; +import ProfilEmails from "./ProfilComponents/ProfilEmails.js"; +import RoleInformation from "./ProfilComponents/RoleInformation.js"; +import ProfilInformation from "./ProfilComponents/ProfilInformation.js"; export default { @@ -7,56 +12,51 @@ export default { }; }, + components:{ + QuickLinks, + Mailverteiler, + ProfilEmails, + RoleInformation, + ProfilInformation + }, - //? this is the prop passed to the dynamic component with the custom data of the view props: ["data"], methods: { }, computed: { - - - get_image_base64_src() { - if (!this.data) { - return ""; - } - return "data:image/jpeg;base64," + this.data.foto; - }, - - //? this computed function returns all the informations for the first column in the profil - personData() { + profilInformation() { if (!this.data) { return {}; } return { + Vorname: this.data.vorname, + Nachname: this.data.nachname, Username: this.data.username, Anrede: this.data.anrede, - Matrikelnummer: this.data.matrikelnummer, - Titel: this.data.titelpre, + Titel: this.data.titel, Postnomen: this.data.postnomen, + foto_sperre:this.data.foto_sperre, + foto:this.data.foto, + }; }, - personKontakt() { - if (!this.data) { - return {}; - } - - return { - emails: this.data.emails, - - }; - }, - - specialData() { + personEmails() { + return this.data?.emails ? this.data.emails : []; + }, + + roleInformation() { if (!this.data) { return {}; } return { + Geburtsdatum: this.data.gebdatum, + Geburtsort: this.data.gebort, Personenkennzeichen: this.data.personenkennzeichen, Studiengang: this.data.studiengang, Semester: this.data.semester, @@ -64,9 +64,6 @@ export default { Gruppe: this.data.gruppe.trim(), }; }, - - - }, @@ -84,30 +81,7 @@ export default {
-
-
-

-

- -

- -
-
+
@@ -147,98 +121,9 @@ export default {
- -
-
- StudentIn -
-
- - - - - -
- - - - - - -
-
-
- - -
-
- -
- - - - - -
-
-
- - -
-
Vorname
- {{data.vorname}} - -
- - - -
-
- - - - -
-
Nachname
- {{data.nachname}} - -
- - -
-
- - -
- - - - - - - - -
- - -
-
{{bez}}
- {{wert?wert:'-'}} - -
- - - -
- - -
- - - -
-
-
+ + +
@@ -259,60 +144,9 @@ export default {
- -
-
- Mails -
- -
- - - -
- - - - + + - -
-
- -
-
- - - -
-
- - -
-
{{email.type }}
- {{email.email}} - -
- - -
-
-
-
- - - - - - - - - -
- - -
-
@@ -321,28 +155,7 @@ export default {
-
- -
- Studenten Information -
-
-
-
- - -
-
{{bez}}
- {{wert?wert:'-'}} - -
- -
-
- -
- -
+
@@ -365,20 +178,6 @@ export default { - - - - - - - - - - - - - - @@ -397,28 +196,11 @@ export default {
-
-
- Quick Links -
- -
- - - -
- -
@@ -427,36 +209,7 @@ export default { -
-
- Mailverteilers -
-
- -
Sie sind Mitgglied in folgenden Verteilern:
-
-
-
-
- - - -
- -
- -
-
{{verteiler.beschreibung}}
-
- -
-
- - - - +