UDFs Prestudent aktivieren

This commit is contained in:
cgfhtw
2024-08-13 11:29:24 +02:00
parent 761ec96662
commit 3d07aa3bd0
3 changed files with 28 additions and 3 deletions
@@ -2,11 +2,14 @@ import FormForm from '../../../Form/Form.js';
import FormInput from '../../../Form/Input.js';
import TblHistory from "./Prestudent/History.js";
import CoreUdf from '../../../Udf/Udf.js';
export default {
components: {
FormForm,
FormInput,
TblHistory
TblHistory,
CoreUdf
},
inject: {
lists: {
@@ -98,6 +101,9 @@ export default {
})
.catch(this.$fhcAlert.handleSystemError);
},
udfsLoaded(udfs) {
this.initialFormData = {...(this.initialFormData || {}), ...udfs};
},
updatePrestudent(){
this.$refs.form
.post('api/frontend/v1/stv/prestudent/updatePrestudent/' + this.modelValue.prestudent_id, this.deltaArray)
@@ -505,6 +511,7 @@ export default {
>
</form-input>
</div>
<core-udf @load="udfsLoaded" v-model="data" class="row-cols-3 g-3 mb-3" ci-model="crm/prestudent" :pk="{prestudent_id:modelValue.prestudent_id}"></core-udf>
</fieldset>
</form-form>
<div>