Status als eigener Tab

This commit is contained in:
ma0068
2024-03-04 10:10:35 +01:00
parent b98794a292
commit a7f1e43225
5 changed files with 30 additions and 14 deletions
@@ -31,6 +31,10 @@ class Config extends FHC_Controller
'title' => 'PreStudentIn',
'component' => './Stv/Studentenverwaltung/Details/Prestudent.js'
];
$result['status'] = [
'title' => 'Status',
'component' => './Stv/Studentenverwaltung/Details/Status.js'
];
$result['noten'] = [
'title' => 'Noten',
'component' => './Stv/Studentenverwaltung/Details/Noten.js'
+2 -1
View File
@@ -143,7 +143,8 @@ class Student_model extends DB_Model
{
return error($result);
}
else {
else
{
$resultObject = current(getData($result));
if (property_exists($resultObject, 'anzahl')) {
@@ -554,24 +554,17 @@ export default {
<br>
<!-- {{defaultSemester}} | {{hasAdminPermission}} | {{hasAdminPermission}}-->
<div class="col-12 pb-3">
<legend>Status</legend>
<TblStatus :prestudent_id="modelValue.prestudent_id"></TblStatus>
</div>
<hr>
<div class="col-8">
<legend>Gesamthistorie</legend>
<TblHistory :person_id="modelValue.person_id"></TblHistory>
</div>
<!-- <div class="col-12 pb-3">
<legend>Status</legend>
<TblStatus :prestudent_id="modelValue.prestudent_id"></TblStatus>
</div>-->
</div>
`
@@ -356,7 +356,7 @@ export default{
})
.catch(this.$fhcAlert.handleSystemError);
CoreRESTClient
.get('components/stv/Prestudent/getStudienplaene/' + this.prestudent_id)
.get('components/stv/Prestudent/getStudienplaene/' + this.modelValue.prestudent_id)
.then(result => CoreRESTClient.getData(result.data) || [])
.then(result => {
this.listStudienplaene = result;
@@ -0,0 +1,18 @@
import TblStatus from "./Prestudent/Status.js";
export default {
components: {
TblStatus
},
props: {
modelValue: Object,
},
template: `
<div class="stv-details-details h-100 pb-3">
<div class="col-12 pb-3">
<legend>Status</legend>
<TblStatus :prestudent_id="modelValue.prestudent_id"></TblStatus>
</div>
</div>
`
}