mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-26 09:04:28 +00:00
problem with switching presets and problem with vanishing gehaltsbestandteile solved
This commit is contained in:
@@ -59,9 +59,7 @@ export default [
|
||||
data: {
|
||||
dienstverhaeltnisid: null
|
||||
},
|
||||
vbs: {
|
||||
|
||||
}
|
||||
vbs: {}
|
||||
},
|
||||
{
|
||||
type: 'preset',
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user