mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-22 01:12:17 +00:00
42 lines
731 B
JavaScript
42 lines
731 B
JavaScript
export default Vue.reactive({
|
|
gueltigkeit: {
|
|
gueltig_ab: '',
|
|
gueltig_bis: ''
|
|
},
|
|
dv: {
|
|
|
|
},
|
|
vbs: {
|
|
|
|
},
|
|
getDV: function() {
|
|
return this.dv;
|
|
},
|
|
setDV: function(dv) {
|
|
this.dv = JSON.parse(JSON.stringify(dv));
|
|
},
|
|
getDVPayload: function() {
|
|
return JSON.parse(JSON.stringify(this.dv));
|
|
},
|
|
addVB: function(uuid, vb) {
|
|
this.vbs[uuid] = vb;
|
|
},
|
|
removeVB: function(uuid) {
|
|
delete this.vbs[uuid];
|
|
},
|
|
getVB: function(uuid) {
|
|
return this.vbs[uuid];
|
|
},
|
|
getVBsPayload: function() {
|
|
return JSON.parse(JSON.stringify(this.vbs));
|
|
},
|
|
reset: function() {
|
|
this.gueltigkeit = {
|
|
gueltig_ab: '',
|
|
gueltig_bis: ''
|
|
};
|
|
this.dv = {};
|
|
this.vbs = {};
|
|
}
|
|
});
|