Teacher Proposal

This commit is contained in:
cgfhtw
2024-11-20 11:06:28 +01:00
parent 5369c95e77
commit fe7ca2bf69
7 changed files with 539 additions and 3 deletions
+17
View File
@@ -6,9 +6,26 @@ export default {
all = all ? '/all' : '';
return this.$fhcApi.get('api/frontend/v1/stv/grades/getCertificate/' + prestudent_id + all);
},
getTeacherProposal(prestudent_id, all) {
all = all ? '/all' : '';
return this.$fhcApi.get('api/frontend/v1/stv/grades/getTeacherProposal/' + prestudent_id + all);
},
updateCertificate(data) {
return this.$fhcApi.post('api/frontend/v1/stv/grades/updateCertificate', data);
},
copyTeacherProposalToCertificate({lehrveranstaltung_id, student_uid, studiensemester_kurzbz, lehrveranstaltung_bezeichnung}) {
return this.$fhcApi.post(
'api/frontend/v1/stv/grades/copyTeacherProposalToCertificate',
{
lehrveranstaltung_id,
student_uid,
studiensemester_kurzbz
},
{
errorHeader: lehrveranstaltung_bezeichnung
}
);
},
getGradeFromPoints(points) {
return this.$fhcApi.post('api/frontend/v1/stv/grades/getGradeFromPoints', data);
}
@@ -1,8 +1,10 @@
import NotenZeugnis from './Noten/Zeugnis.js';
import NotenTeacher from './Noten/Teacher.js';
export default {
components: {
NotenZeugnis
NotenZeugnis,
NotenTeacher
},
props: {
modelValue: Object
@@ -13,7 +15,14 @@ export default {
}
},
template: `
<div class="stv-details-noten h-100 d-flex flex-column">
<noten-zeugnis ref="zeugnis" :student="modelValue"></noten-zeugnis>
<div class="stv-details-noten h-100 d-flex flex-column overflow-hidden">
<div class="row">
<div class="col-8">
<noten-zeugnis ref="zeugnis" :student="modelValue"></noten-zeugnis>
</div>
<div class="col-4">
<noten-teacher ref="teacher" :student="modelValue" @copied="reload"></noten-teacher>
</div>
</div>
</div>`
};