added archive tab to Studierendenverwaltung, possibility to archive documents

This commit is contained in:
Alexei Karpenko
2025-02-20 20:07:07 +01:00
parent b43df5aea0
commit b989eae461
10 changed files with 625 additions and 16 deletions
+2
View File
@@ -3,6 +3,7 @@ import students from './stv/students.js';
import filter from './stv/filter.js';
import konto from './stv/konto.js';
import grades from './stv/grades.js';
import archiv from './stv/archiv.js';
export default {
verband,
@@ -10,6 +11,7 @@ export default {
filter,
konto,
grades,
archiv,
configStudent() {
return this.$fhcApi.get('api/frontend/v1/stv/config/student');
},
+30
View File
@@ -0,0 +1,30 @@
export default {
tabulatorConfig(config, self) {
config.ajaxURL = 'api/frontend/v1/stv/archiv/get';
config.ajaxParams = () => {
const params = {
person_id: self.modelValue.person_id || self.modelValue.map(e => e.person_id)
};
return params;
};
config.ajaxRequestFunc = (url, config, params) => this.$fhcApi.post(url, params, config);
config.ajaxResponse = (url, params, response) => response.data;
return config;
},
getArchivVorlagen() {
return this.$fhcApi.post('api/frontend/v1/stv/archiv/getArchivVorlagen');
},
archive(data) {
return this.$fhcApi.post(
'api/frontend/v1/documents/archiveSigned',
data
);
},
//~ edit(data) {
//~ return this.$fhcApi.post('api/frontend/v1/stv/konto/update', data);
//~ },
delete({akte_id, studiengang_kz}) {
return this.$fhcApi.post('api/frontend/v1/stv/archiv/delete', {akte_id, studiengang_kz});
}
};