Room Results

This commit is contained in:
cgfhtw
2025-06-23 13:48:52 +02:00
parent b96a7ab180
commit cf62563fa3
2 changed files with 9 additions and 4 deletions
@@ -6,6 +6,7 @@ export default {
},
emits: [ 'actionexecuted' ],
props: {
mode: String,
res: Object,
actions: Object
},
@@ -46,7 +47,10 @@ export default {
<div class="searchbar_tablerow">
<div class="searchbar_tablecell">{{ $p.t('search/result_workplaces') }}</div>
<div class="searchbar_tablecell">
<div v-if="mode == 'simple'" class="searchbar_tablecell">
{{ res.sitzplaetze }}
</div>
<div v-else class="searchbar_tablecell">
<template v-if="res.max_person !== null && res.workplaces !== null">
{{ $p.t('search/result_workplaces_pc', res) }}
</template>
@@ -66,7 +70,8 @@ export default {
<div class="searchbar_tablerow">
<div class="searchbar_tablecell">{{ $p.t('search/result_equipment') }}</div>
<div class="searchbar_tablecell">
<div class="no-margin-paragraphs" v-html="equipment"></div>
<div v-if="mode == 'simple'" class="no-margin-paragraphs" v-html="res.austattung.replace('<br />','')"></div>
<div v-else class="no-margin-paragraphs" v-html="equipment"></div>
</div>
</div>
</div>
+2 -2
View File
@@ -1,5 +1,5 @@
import person from "./result/person.js";
import raum from "./raum.js";
import raum from "./result/room.js";
import employee from "./result/employee.js";
import organisationunit from "./organisationunit.js";
import student from "./result/student.js";
@@ -66,7 +66,7 @@ export default {
<merged-person v-else-if="res.type === 'mergedperson'" :mode="searchmode" :res="res" :actions="this.searchoptions.actions.mergedperson" @actionexecuted="this.hideresult"></merged-person>
<employee v-else-if="res.type === 'mitarbeiter' || res.type === 'mitarbeiter_ohne_zuordnung' || res.type === 'employee' || res.type === 'unassigned_employee'" :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>
<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.type === 'room'" :mode="searchmode" :res="res" :actions="this.searchoptions.actions.raum" @actionexecuted="this.hideresult"></raum>
<div v-else="">Unbekannter Ergebnistyp: '{{ res.type }}'.</div>
</template>
</div>