mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-02 03:19:27 +00:00
Merge branch 'master' into studvw_2025-11_rc2
This commit is contained in:
@@ -46,8 +46,6 @@ export default{
|
||||
{title: "Punkte", field: "punkte", visible: false},
|
||||
{
|
||||
title: 'Aktionen', field: 'actions',
|
||||
minWidth: 150,
|
||||
maxWidth: 150,
|
||||
formatter: (cell, formatterParams, onRendered) => {
|
||||
let container = document.createElement('div');
|
||||
container.className = "d-flex gap-2";
|
||||
@@ -93,7 +91,7 @@ export default{
|
||||
layoutColumnsOnNewData: false,
|
||||
height: 'auto',
|
||||
index: 'pruefung_id',
|
||||
persistenceID: 'stv-details-pruefung-list'
|
||||
persistenceID: 'stv-details-pruefung-list-2025112402'
|
||||
},
|
||||
tabulatorEvents: [
|
||||
{
|
||||
@@ -148,7 +146,6 @@ export default{
|
||||
listMas: [],
|
||||
listMarks: [],
|
||||
zeugnisData: [],
|
||||
checkData:[],
|
||||
filter: false,
|
||||
statusNew: true,
|
||||
isStartDropDown: false,
|
||||
@@ -181,7 +178,7 @@ export default{
|
||||
|
||||
this.pruefungData.student_uid = this.uid;
|
||||
this.pruefungData.note = 9;
|
||||
this.pruefungData.datum = new Date();
|
||||
this.pruefungData.datum = luxon.DateTime.now().setZone(FHC_JS_DATA_STORAGE_OBJECT.timezone).toISODate();
|
||||
this.pruefungData.pruefungstyp_kurzbz = null;
|
||||
if(lv_id){
|
||||
this.pruefungData.lehrveranstaltung_id = lv_id;
|
||||
@@ -193,7 +190,7 @@ export default{
|
||||
this.isStartDropDown = false;
|
||||
this.loadPruefung(pruefung_id).then(() => {
|
||||
this.pruefungData.note = 9;
|
||||
this.pruefungData.datum = new Date();
|
||||
this.pruefungData.datum = luxon.DateTime.now().setZone(FHC_JS_DATA_STORAGE_OBJECT.timezone).toISODate();
|
||||
this.pruefungData.pruefungstyp_kurzbz = null;
|
||||
this.pruefungData.anmerkung = null;
|
||||
this.prepareDropdowns();
|
||||
@@ -229,9 +226,8 @@ export default{
|
||||
return this.$refs.examData
|
||||
.call(ApiStvExam.addPruefung(this.pruefungData))
|
||||
.then(response => {
|
||||
this.checkData = response.data;
|
||||
if (this.checkData === 2 || this.checkData === 5)
|
||||
this.$fhcAlert.alertInfo(this.$p.t('exam', 'hinweis_changeAfterExamDate'));
|
||||
if (response.data)
|
||||
this.$fhcAlert.alertDefault('info', 'Info', response.data, true);
|
||||
else
|
||||
this.$fhcAlert.alertSuccess(this.$p.t('ui', 'successSave'));
|
||||
this.hideModal('pruefungModal');
|
||||
@@ -243,12 +239,13 @@ export default{
|
||||
});
|
||||
},
|
||||
updatePruefung(pruefung_id){
|
||||
this.checkChangeAfterExamDate();
|
||||
return this.$refs.examData
|
||||
.call(ApiStvExam.updatePruefung(pruefung_id, this.pruefungData))
|
||||
.then(response => {
|
||||
this.checkData = response.data;
|
||||
this.$fhcAlert.alertSuccess(this.$p.t('ui', 'successSave'));
|
||||
if (response.data)
|
||||
this.$fhcAlert.alertDefault('info', 'Info', response.data, true);
|
||||
else
|
||||
this.$fhcAlert.alertSuccess(this.$p.t('ui', 'successSave'));
|
||||
this.hideModal('pruefungModal');
|
||||
this.resetModal();
|
||||
}).catch(this.$fhcAlert.handleSystemError)
|
||||
@@ -266,27 +263,6 @@ export default{
|
||||
else
|
||||
this.showHint = false;
|
||||
},
|
||||
checkChangeAfterExamDate() {
|
||||
const data = {
|
||||
student_uid: this.pruefungData.student_uid,
|
||||
studiensemester_kurzbz: this.pruefungData.studiensemester_kurzbz,
|
||||
lehrveranstaltung_id: this.pruefungData.lehrveranstaltung_id
|
||||
};
|
||||
return this.$api
|
||||
.call(ApiStvExam.checkZeugnisnoteLv(data))
|
||||
.then(result => {
|
||||
this.zeugnisData = result.data;
|
||||
let checkDate = this.zeugnisData[0].uebernahmedatum === '' ||
|
||||
this.zeugnisData[0].benotungsdatum > this.zeugnisData[0].uebernahmedatum
|
||||
? this.zeugnisData[0].benotungsdatum
|
||||
: this.zeugnisData[0].uebernahmedatum;
|
||||
if (checkDate >= this.pruefungData.datum
|
||||
&& this.pruefungData.note !== this.zeugnisData[0].note) {
|
||||
this.$fhcAlert.alertInfo(this.$p.t('exam', 'hinweis_changeAfterExamDate'));
|
||||
}
|
||||
})
|
||||
.catch(this.$fhcAlert.handleSystemError);
|
||||
},
|
||||
deletePruefung(pruefung_id) {
|
||||
return this.$api
|
||||
.call(ApiStvExam.deletePruefung(pruefung_id))
|
||||
@@ -534,6 +510,7 @@ export default{
|
||||
container-class="mb-3"
|
||||
type="DatePicker"
|
||||
v-model="pruefungData.datum"
|
||||
model-type="yyyy-MM-dd"
|
||||
name="datum"
|
||||
:label="$p.t('global/datum')"
|
||||
auto-apply
|
||||
|
||||
Reference in New Issue
Block a user