Component Gesamthistorie

This commit is contained in:
ma0068
2024-02-12 15:11:00 +01:00
parent 824423f3ea
commit f4197f090b
5 changed files with 110 additions and 13 deletions
@@ -1,12 +1,16 @@
import {CoreRESTClient} from '../../../../RESTClient.js';
import FormForm from '../../../Form/Form.js';
import FormInput from '../../../Form/Input.js';
import TblHistory from "./Prestudent/History.js";
/*import TblStatus from "./Prestudent/Status.js";*/
export default {
components: {
CoreRESTClient,
FormForm,
FormInput
FormInput,
TblHistory,
/* TblStatus*/
},
inject: {
lists: {
@@ -42,7 +46,7 @@ export default {
listFoerderrelevant: [],
initialFormData: {},
deltaArray: [],
actionUpdate: false
actionUpdate: false,
};
},
computed: {
@@ -112,6 +116,13 @@ export default {
},
created() {
this.loadPrestudent();
/* CoreRESTClient
.get('components/stv/Prestudent/getHistoryPrestudents/'+ this.modelValue.person_id)
.then(result => CoreRESTClient.getData(result.data) || [])
.then(result => {
this.historyPrestudents = result;
})
.catch(this.$fhcAlert.handleSystemError);*/
//initiale Daten nach dem Laden
//this.initialFormData = {...this.data};
CoreRESTClient
@@ -410,6 +421,7 @@ export default {
type="text"
v-model="data.aufnahmeschluessel"
name="aufnahmeschluessel"
disabled
>
</form-input>
@@ -529,18 +541,19 @@ export default {
</form-form>
<br>
{{hasPrestudentPermission}}
<!-- <hr>
Data: {{data}}
<hr>-->
<div class="row mb-3">
<div class="col-6">
<legend>Status</legend>
<!-- <TblStatus :prestudent_id="modelValue.prestudent_id"></TblStatus> -->
</div>
<div class="col-6">
<legend>Gesamthistorie</legend>
<TblHistory :person_id="modelValue.person_id"></TblHistory>
</div>
</div>
<!-- <hr>
DeltaArray: {{deltaArray}}
<br>
to update: {{actionUpdate}}
<hr>
InitialData: {{initialFormData}}-->
</div>
@@ -0,0 +1,42 @@
import {CoreFilterCmpt} from "../../../../filter/Filter.js";
import {CoreRESTClient} from "../../../../../RESTClient";
export default{
components: {
CoreFilterCmpt
},
props: {
person_id: String
},
data() {
return {
tabulatorOptions: {
ajaxURL: CoreRESTClient._generateRouterURI('components/stv/Prestudent/getHistoryPrestudents/' + this.person_id),
//autoColumns: true,
columns:[
{title:"StSem", field:"studiensemester_kurzbz"},
{title:"Prio", field:"priorisierung"},
{title:"Stg", field:"kurzbzlang"},
{title:"Orgform", field:"orgform_kurzbz"},
{title:"Studienplan", field:"bezeichnung"},
{title:"UID", field:"student_uid"},
{title:"Status", field:"status"}
],
layout: 'fitDataFill',
layoutColumnsOnNewData: false,
height: 'auto',
selectable: false,
},
}
},
template: `
<div class="stv-list h-100 pt-3">
<core-filter-cmpt
ref="table"
:tabulator-options="tabulatorOptions"
table-only
:side-menu="false"
>
</core-filter-cmpt>
</div>`
}