problem with switching presets and problem with vanishing gehaltsbestandteile solved

This commit is contained in:
Harald Bamberger
2023-03-10 08:21:59 +01:00
parent c62d89d25c
commit cca82d2961
7 changed files with 28 additions and 18 deletions
+1 -3
View File
@@ -59,9 +59,7 @@ export default [
data: {
dienstverhaeltnisid: null
},
vbs: {
}
vbs: {}
},
{
type: 'preset',
+9 -5
View File
@@ -62,15 +62,19 @@ Vue.createApp({
'vbformhelper': vbformhelper
},
created: function() {
var vbs = JSON.parse(JSON.stringify(this.preset.vbs));
for( var key in vbs ) {
this.store.addVB(key, vbs[key]);
}
this.store.setDV(JSON.parse(JSON.stringify(this.preset.data)));
this.presettostore();
},
methods: {
presetselected: function(preset) {
this.preset = preset;
this.presettostore();
},
presettostore: function() {
var vbs = JSON.parse(JSON.stringify(this.preset.vbs));
for( var key in vbs ) {
this.store.addVB(key, vbs[key]);
}
this.store.setDV(JSON.parse(JSON.stringify(this.preset.data)));
},
processJSON: function(payload) {
this.vbhjson = payload;