mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Edit updateRadioSelected so that we have two entry points massCreation or singleCreation.
This commit is contained in:
parent
4c8c0678b1
commit
17a2feeb72
@ -193,27 +193,26 @@ export default {
|
||||
createdIndex: null,
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
// Auswählen eines Zeitraumes
|
||||
updateRadioSelected(name, index, openCreation) {
|
||||
this.createdIndex = index
|
||||
console.log("radioSelected", this.radioSelected)
|
||||
console.log('radioSelected', this.radioSelected)
|
||||
// Wenn Mehrfachschöpfung
|
||||
if (this.type === 'massCreation') {
|
||||
// An Creation.vue emitten und radioSelectedMass aktualisieren
|
||||
this.$emit('update-radio-selected', [name, index])
|
||||
}
|
||||
// Wenn Einzelschöpfung
|
||||
if (this.type === 'singleCreation') {
|
||||
} else if (this.type === 'singleCreation') {
|
||||
this.rangeMin = 0
|
||||
// Der maximale offene Betrag an GDD die für ein User noch geschöpft werden kann
|
||||
this.rangeMax = openCreation
|
||||
}
|
||||
// Wenn Einzelschöpfung
|
||||
if (this.pagetype === 'PageCreationConfirm') {
|
||||
this.rangeMin = 0
|
||||
this.rangeMax = openCreation + this.creationUserData.amount / 10000
|
||||
this.creation[index] = this.creation[index] + this.creationUserData.amount / 10000
|
||||
// Wenn Einzelschöpfung
|
||||
if (this.pagetype === 'PageCreationConfirm') {
|
||||
this.rangeMin = 0
|
||||
this.rangeMax = openCreation + this.creationUserData.amount / 10000
|
||||
this.creation[index] = this.creation[index] + ( this.creationUserData.amount / 10000 )
|
||||
}
|
||||
}
|
||||
},
|
||||
/*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user