mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 08:34:29 +00:00
MergedStudent Results
This commit is contained in:
@@ -8,6 +8,7 @@ export default {
|
|||||||
},
|
},
|
||||||
emits: [ 'actionexecuted' ],
|
emits: [ 'actionexecuted' ],
|
||||||
props: {
|
props: {
|
||||||
|
mode: String,
|
||||||
res: Object,
|
res: Object,
|
||||||
actions: Object
|
actions: Object
|
||||||
},
|
},
|
||||||
@@ -20,6 +21,7 @@ export default {
|
|||||||
template: `
|
template: `
|
||||||
<result-prestudent
|
<result-prestudent
|
||||||
v-if="prestudent"
|
v-if="prestudent"
|
||||||
|
:mode="mode"
|
||||||
:res="prestudent"
|
:res="prestudent"
|
||||||
:actions="actions"
|
:actions="actions"
|
||||||
@actionexecuted="$emit('actionexecuted')"
|
@actionexecuted="$emit('actionexecuted')"
|
||||||
@@ -27,6 +29,7 @@ export default {
|
|||||||
></result-prestudent>
|
></result-prestudent>
|
||||||
<result-student
|
<result-student
|
||||||
v-else
|
v-else
|
||||||
|
:mode="mode"
|
||||||
:res="res.list[0]"
|
:res="res.list[0]"
|
||||||
:actions="actions"
|
:actions="actions"
|
||||||
@actionexecuted="$emit('actionexecuted')"
|
@actionexecuted="$emit('actionexecuted')"
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import employee from "./employee.js";
|
|||||||
import organisationunit from "./organisationunit.js";
|
import organisationunit from "./organisationunit.js";
|
||||||
import student from "./result/student.js";
|
import student from "./result/student.js";
|
||||||
import prestudent from "./result/prestudent.js";
|
import prestudent from "./result/prestudent.js";
|
||||||
|
import mergedStudent from "./result/mergedstudent.js";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: [ "searchoptions", "searchfunction" ],
|
props: [ "searchoptions", "searchfunction" ],
|
||||||
@@ -30,7 +31,8 @@ export default {
|
|||||||
employee: employee,
|
employee: employee,
|
||||||
organisationunit: organisationunit,
|
organisationunit: organisationunit,
|
||||||
student: student,
|
student: student,
|
||||||
prestudent: prestudent
|
prestudent: prestudent,
|
||||||
|
mergedStudent
|
||||||
},
|
},
|
||||||
template: /*html*/`
|
template: /*html*/`
|
||||||
<form ref="searchform" class="d-flex me-3" :class="searchoptions.cssclass" action="javascript:void(0);"
|
<form ref="searchform" class="d-flex me-3" :class="searchoptions.cssclass" action="javascript:void(0);"
|
||||||
@@ -58,6 +60,7 @@ export default {
|
|||||||
<person v-if="res.type === 'person'" :res="res" :actions="this.searchoptions.actions.person" @actionexecuted="this.hideresult"></person>
|
<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'" :mode="searchmode" :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>
|
<prestudent v-else-if="res.type === 'prestudent'" :mode="searchmode" :res="res" :actions="this.searchoptions.actions.prestudent" @actionexecuted="this.hideresult"></prestudent>
|
||||||
|
<merged-student v-else-if="res.type === 'mergedstudent'" :mode="searchmode" :res="res" :actions="this.searchoptions.actions.mergedstudent" @actionexecuted="this.hideresult"></merged-student>
|
||||||
<employee v-else-if="res.type === 'mitarbeiter' || res.type === 'mitarbeiter_ohne_zuordnung'" :res="res" :actions="this.searchoptions.actions.employee" @actionexecuted="this.hideresult"></employee>
|
<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>
|
<organisationunit v-else-if="res.type === 'organisationunit'" :res="res" :actions="this.searchoptions.actions.organisationunit" @actionexecuted="this.hideresult"></organisationunit>
|
||||||
<raum v-else-if="res.type === 'raum'" :res="res" :actions="this.searchoptions.actions.raum" @actionexecuted="this.hideresult"></raum>
|
<raum v-else-if="res.type === 'raum'" :res="res" :actions="this.searchoptions.actions.raum" @actionexecuted="this.hideresult"></raum>
|
||||||
@@ -238,12 +241,12 @@ export default {
|
|||||||
|
|
||||||
switch (this.searchoptions.mergeResults) {
|
switch (this.searchoptions.mergeResults) {
|
||||||
case 'student':
|
case 'student':
|
||||||
mergeTypes = ['student', 'prestudent'];
|
mergeTypes = ['student', 'studentStv', 'prestudent'];
|
||||||
mergedType += this.searchoptions.mergeResults;
|
mergedType += this.searchoptions.mergeResults;
|
||||||
mergeKey = 'uid';
|
mergeKey = 'uid';
|
||||||
break;
|
break;
|
||||||
case 'person':
|
case 'person':
|
||||||
mergeTypes = ['person', 'employee', 'unassigned_employee', 'mitarbeiter', 'mitarbeiter_ohne_zuordnung', 'student', 'prestudent'];
|
mergeTypes = ['person', 'employee', 'unassigned_employee', 'mitarbeiter', 'mitarbeiter_ohne_zuordnung', 'student', 'studentStv', 'prestudent'];
|
||||||
mergedType += this.searchoptions.mergeResults;
|
mergedType += this.searchoptions.mergeResults;
|
||||||
mergeKey = 'person_id';
|
mergeKey = 'person_id';
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user