mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 16:44:28 +00:00
Merge branch 'feature-61795/FHC4_STudierendenverwaltung_Mobilitaeten_Update' into merge_FHC4_55354_55991_55992_60874_60876_60875_61229_61230_61231
This commit is contained in:
@@ -27,6 +27,10 @@ export default {
|
||||
currentSemester: {
|
||||
from: 'currentSemester',
|
||||
},
|
||||
hasAssistenzPermissionForStgs: {
|
||||
from: 'hasAssistenzPermissionForStgs',
|
||||
default: false
|
||||
},
|
||||
},
|
||||
props: {
|
||||
student: Object
|
||||
@@ -160,8 +164,8 @@ export default {
|
||||
bisio_id: null,
|
||||
localPurposes: [],
|
||||
localSupports: [],
|
||||
lehrveranstaltung_id: '',
|
||||
lehreinheit_id: ''
|
||||
lehrveranstaltung_id: null,
|
||||
lehreinheit_id: null
|
||||
},
|
||||
statusNew: true,
|
||||
programsMobility: [],
|
||||
@@ -184,6 +188,10 @@ export default {
|
||||
lv_teile(){
|
||||
return this.listLvsAndLes.filter(lv => lv.lehreinheit_id == this.formData.lehreinheit_id);
|
||||
},
|
||||
isBerechtigtForStudiengang(){
|
||||
const currentKz = this.student.studiengang_kz.toString();
|
||||
return this.hasAssistenzPermissionForStgs.includes(currentKz);
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
actionNewMobility() {
|
||||
@@ -239,7 +247,7 @@ export default {
|
||||
this.loadItems();
|
||||
},
|
||||
resetLehreinheit(){
|
||||
this.formData.lehreinheit_id = '';
|
||||
this.formData.lehreinheit_id = null;
|
||||
},
|
||||
getLehreinheiten(lv_id, studiensemester_kurzbz) {
|
||||
const data = {
|
||||
@@ -264,12 +272,7 @@ export default {
|
||||
.call(ApiStvMobility.loadMobility(bisio_id))
|
||||
.then(result => {
|
||||
this.formData = result.data;
|
||||
if(this.formData.lehrveranstaltung_id === null) {
|
||||
this.formData.lehrveranstaltung_id = '';
|
||||
}
|
||||
if(this.formData.lehreinheit_id === null) {
|
||||
this.formData.lehreinheit_id = '';
|
||||
}
|
||||
|
||||
if(this.formData.lehrveranstaltung_id > 0 ) {
|
||||
this.loadItems();
|
||||
}
|
||||
@@ -291,6 +294,8 @@ export default {
|
||||
.catch(this.$fhcAlert.handleSystemError)
|
||||
.finally(() => {
|
||||
this.reload();
|
||||
this.$refs.purposes.resetLocalData();
|
||||
this.$refs.supports.resetLocalData();
|
||||
});
|
||||
},
|
||||
deleteMobility(bisio_id) {
|
||||
@@ -314,8 +319,8 @@ export default {
|
||||
this.formData.bisio_id = null;
|
||||
this.formData.localPurposes = [];
|
||||
this.formData.localSupports = [];
|
||||
this.formData.lehrveranstaltung_id = '',
|
||||
this.formData.lehreinheit_id = '',
|
||||
this.formData.lehrveranstaltung_id = null,
|
||||
this.formData.lehreinheit_id = null,
|
||||
this.statusNew = true;
|
||||
this.listLes = [];
|
||||
},
|
||||
@@ -444,14 +449,13 @@ export default {
|
||||
<p v-else class="fw-bold mt-3">{{$p.t('mobility', 'mobility_bearbeiten')}}</p>
|
||||
</template>
|
||||
|
||||
|
||||
<form-form v-if="!this.student.length" ref="formMobility" @submit.prevent>
|
||||
|
||||
<div class="row my-3">
|
||||
<legend class="col-6">BIS</legend>
|
||||
<legend class="col-6">Outgoing</legend>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row mb-3">
|
||||
<form-input
|
||||
container-class="col-6 stv-details-mobility-von"
|
||||
@@ -474,7 +478,7 @@ export default {
|
||||
name="lehrveranstaltung_id"
|
||||
@change="handleLVchanged"
|
||||
>
|
||||
<option value=""> -- {{ $p.t('fehlermonitoring', 'keineAuswahl') }} --</option>
|
||||
<option value=null> -- {{ $p.t('fehlermonitoring', 'keineAuswahl') }} --</option>
|
||||
<option
|
||||
v-for="lv in listLvs"
|
||||
:key="lv.lehrveranstaltung_id"
|
||||
@@ -507,7 +511,7 @@ export default {
|
||||
name="lehreinheit_id"
|
||||
:disabled="listLes.length > 0 ? false : true"
|
||||
>
|
||||
<option value=""> -- {{ $p.t('fehlermonitoring', 'keineAuswahl') }} --</option>
|
||||
<option value=null> -- {{ $p.t('fehlermonitoring', 'keineAuswahl') }} --</option>
|
||||
<option
|
||||
v-for="le in listLes"
|
||||
:key="le.lehreinheit_id"
|
||||
|
||||
Reference in New Issue
Block a user