diff --git a/public/js/components/Cis/Profil/MitarbeiterViewProfil.js b/public/js/components/Cis/Profil/MitarbeiterViewProfil.js index 53d5267c8..0c9d451f4 100755 --- a/public/js/components/Cis/Profil/MitarbeiterViewProfil.js +++ b/public/js/components/Cis/Profil/MitarbeiterViewProfil.js @@ -1,4 +1,3 @@ - import { CoreFilterCmpt } from "../../../components/filter/Filter.js"; import Mailverteiler from "./ProfilComponents/Mailverteiler.js"; import QuickLinks from "./ProfilComponents/QuickLinks.js"; @@ -15,11 +14,11 @@ export default { ProfilEmails, ProfilInformation, }, - inject: ['collapseFunction'], + inject: ["collapseFunction"], data() { return { collapseIconFunktionen: true, - + funktionen_table_options: { height: 300, layout: "fitColumns", @@ -82,22 +81,18 @@ export default { }, ], }, - }; }, //? this is the prop passed to the dynamic component with the custom data of the view props: ["data"], - methods: { - - }, + methods: {}, computed: { - personEmails() { return this.data?.emails ? this.data.emails : []; }, - + profilInformation() { if (!this.data) { return {}; @@ -110,13 +105,10 @@ export default { Anrede: this.data.anrede, Titel: this.data.titel, Postnomen: this.data.postnomen, - foto_sperre:this.data.foto_sperre, - foto:this.data.foto, - + foto_sperre: this.data.foto_sperre, + foto: this.data.foto, }; }, - - roleInformation() { if (!this.data) { @@ -127,25 +119,22 @@ export default { Geburtsdatum: this.data.gebdatum, Geburtsort: this.data.gebort, Kurzzeichen: this.data.kurzbz, - Telefon: (this.data.standort_telefon?this.data.standort_telefon:"") + " " + this.data.telefonklappe, + Telefon: + (this.data.standort_telefon ? this.data.standort_telefon : "") + + " " + + this.data.telefonklappe, Büro: this.data.ort_kurzbz, }; }, - - }, mounted() { - - this.$refs.funktionenTable.tabulator.on("tableBuilt", () => { this.$refs.funktionenTable.tabulator.setData(this.data.funktionen); }); - - }, - template: /*html*/` + template: /*html*/ `
@@ -153,7 +142,7 @@ export default {
- +
@@ -176,7 +165,7 @@ export default {
- +
@@ -195,7 +184,7 @@ export default {
- +
@@ -207,7 +196,7 @@ export default {
- +
@@ -239,7 +228,7 @@ export default {
- +
@@ -258,7 +247,7 @@ export default {
- +
@@ -269,7 +258,7 @@ export default { - + diff --git a/public/js/components/Cis/Profil/StudentViewProfil.js b/public/js/components/Cis/Profil/StudentViewProfil.js index 8f09a11af..4fb0a76ca 100755 --- a/public/js/components/Cis/Profil/StudentViewProfil.js +++ b/public/js/components/Cis/Profil/StudentViewProfil.js @@ -5,29 +5,22 @@ import RoleInformation from "./ProfilComponents/RoleInformation.js"; import ProfilInformation from "./ProfilComponents/ProfilInformation.js"; export default { - data() { - return { - - - }; + return {}; }, - components:{ + components: { QuickLinks, Mailverteiler, ProfilEmails, RoleInformation, - ProfilInformation + ProfilInformation, }, props: ["data"], - methods: { - - }, + methods: {}, computed: { - - profilInformation() { + profilInformation() { if (!this.data) { return {}; } @@ -39,9 +32,8 @@ export default { Anrede: this.data.anrede, Titel: this.data.titel, Postnomen: this.data.postnomen, - foto_sperre:this.data.foto_sperre, - foto:this.data.foto, - + foto_sperre: this.data.foto_sperre, + foto: this.data.foto, }; }, @@ -64,16 +56,11 @@ export default { Gruppe: this.data.gruppe.trim(), }; }, - }, - mounted() { - + mounted() {}, - - }, - - template: /*html*/` + template: /*html*/ `
@@ -81,7 +68,7 @@ export default {
- +
@@ -102,7 +89,7 @@ export default {
- +
@@ -118,7 +105,7 @@ export default {
- +
@@ -128,7 +115,7 @@ export default {
- +
@@ -161,7 +148,7 @@ export default {
- +
@@ -174,7 +161,7 @@ export default { - +