mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-14 05:22:19 +00:00
37 lines
989 B
JavaScript
37 lines
989 B
JavaScript
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/archive',
|
|
data
|
|
);
|
|
},
|
|
archiveSigned(data) {
|
|
return this.$fhcApi.post(
|
|
'api/frontend/v1/documents/archiveSigned',
|
|
data
|
|
);
|
|
},
|
|
update(data) {
|
|
return this.$fhcApi.post('api/frontend/v1/stv/archiv/update', data);
|
|
},
|
|
delete({akte_id, studiengang_kz}) {
|
|
return this.$fhcApi.post('api/frontend/v1/stv/archiv/delete', {akte_id, studiengang_kz});
|
|
}
|
|
};
|