mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-12 17:49:28 +00:00
Student Results
This commit is contained in:
@@ -6,11 +6,21 @@ export default {
|
||||
},
|
||||
emits: [ 'actionexecuted' ],
|
||||
props: {
|
||||
mode: String,
|
||||
res: Object,
|
||||
actions: Object
|
||||
},
|
||||
computed: {
|
||||
photo_url() {
|
||||
if (this.mode != 'simple')
|
||||
return this.photo_url;
|
||||
if (this.res.foto)
|
||||
return 'data:image/jpeg;base64,' + this.res.foto;
|
||||
return null;
|
||||
},
|
||||
emails() {
|
||||
if (this.mode == 'simple')
|
||||
return new Set([this.res.email]);
|
||||
return new Set(this.res.email);
|
||||
}
|
||||
},
|
||||
@@ -20,7 +30,7 @@ export default {
|
||||
:res="res"
|
||||
:actions="actions"
|
||||
:title="res.name"
|
||||
:image="res.photo_url"
|
||||
:image="photo_url"
|
||||
image-fallback="fas fa-user fa-4x"
|
||||
@actionexecuted="$emit('actionexecuted')"
|
||||
>
|
||||
|
||||
@@ -2,7 +2,7 @@ import person from "./person.js";
|
||||
import raum from "./raum.js";
|
||||
import employee from "./employee.js";
|
||||
import organisationunit from "./organisationunit.js";
|
||||
import student from "./student.js";
|
||||
import student from "./result/student.js";
|
||||
import prestudent from "./result/prestudent.js";
|
||||
|
||||
export default {
|
||||
@@ -56,7 +56,7 @@ export default {
|
||||
<div v-else-if="searchresult.length < 1">Es wurden keine Ergebnisse gefunden.</div>
|
||||
<template v-else="" v-for="res in searchresult">
|
||||
<person v-if="res.type === 'person'" :res="res" :actions="this.searchoptions.actions.person" @actionexecuted="this.hideresult"></person>
|
||||
<student v-else-if="res.type === 'student' || res.type === 'studentStv'" :res="res" :actions="this.searchoptions.actions.student" @actionexecuted="this.hideresult"></student>
|
||||
<student v-else-if="res.type === 'student' || res.type === 'studentStv'" :mode="searchmode" :res="res" :actions="this.searchoptions.actions.student" @actionexecuted="this.hideresult"></student>
|
||||
<prestudent v-else-if="res.type === 'prestudent'" :mode="searchmode" :res="res" :actions="this.searchoptions.actions.prestudent" @actionexecuted="this.hideresult"></prestudent>
|
||||
<employee v-else-if="res.type === 'mitarbeiter' || res.type === 'mitarbeiter_ohne_zuordnung'" :res="res" :actions="this.searchoptions.actions.employee" @actionexecuted="this.hideresult"></employee>
|
||||
<organisationunit v-else-if="res.type === 'organisationunit'" :res="res" :actions="this.searchoptions.actions.organisationunit" @actionexecuted="this.hideresult"></organisationunit>
|
||||
|
||||
Reference in New Issue
Block a user