mirror of
https://github.com/IT4Change/gradido.git
synced 2026-04-06 01:25:28 +00:00
radio buttion cecked bei edit from pending creation
This commit is contained in:
parent
ac555f7835
commit
4c8c0678b1
@ -12,7 +12,9 @@
|
|||||||
size="lg"
|
size="lg"
|
||||||
@change="updateRadioSelected(beforeLastMonth, 0, creation[0])"
|
@change="updateRadioSelected(beforeLastMonth, 0, creation[0])"
|
||||||
>
|
>
|
||||||
{{ beforeLastMonth.short }} {{ creation[0] != null ? creation[0] + ' GDD' : '' }}
|
<label for="beforeLastMonth">
|
||||||
|
{{ beforeLastMonth.short }} {{ creation[0] != null ? creation[0] + ' GDD' : '' }}
|
||||||
|
</label>
|
||||||
</b-form-radio>
|
</b-form-radio>
|
||||||
</b-col>
|
</b-col>
|
||||||
<b-col>
|
<b-col>
|
||||||
@ -23,7 +25,9 @@
|
|||||||
size="lg"
|
size="lg"
|
||||||
@change="updateRadioSelected(lastMonth, 1, creation[1])"
|
@change="updateRadioSelected(lastMonth, 1, creation[1])"
|
||||||
>
|
>
|
||||||
{{ lastMonth.short }} {{ creation[1] != null ? creation[1] + ' GDD' : '' }}
|
<label for="lastMonth">
|
||||||
|
{{ lastMonth.short }} {{ creation[1] != null ? creation[1] + ' GDD' : '' }}
|
||||||
|
</label>
|
||||||
</b-form-radio>
|
</b-form-radio>
|
||||||
</b-col>
|
</b-col>
|
||||||
<b-col class="text-right">
|
<b-col class="text-right">
|
||||||
@ -34,7 +38,9 @@
|
|||||||
size="lg"
|
size="lg"
|
||||||
@change="updateRadioSelected(currentMonth, 2, creation[2])"
|
@change="updateRadioSelected(currentMonth, 2, creation[2])"
|
||||||
>
|
>
|
||||||
{{ currentMonth.short }} {{ creation[2] != null ? creation[2] + ' GDD' : '' }}
|
<label for="currentMonth">
|
||||||
|
{{ currentMonth.short }} {{ creation[2] != null ? creation[2] + ' GDD' : '' }}
|
||||||
|
</label>
|
||||||
</b-form-radio>
|
</b-form-radio>
|
||||||
</b-col>
|
</b-col>
|
||||||
</b-row>
|
</b-row>
|
||||||
@ -148,6 +154,21 @@ export default {
|
|||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
created() {
|
||||||
|
console.log(' created this.pagetype', this.pagetype)
|
||||||
|
if (this.pagetype === 'PageCreationConfirm' && this.creationUserData.date) {
|
||||||
|
console.log('if created CreationFormular.vue', this.creationUserData.date)
|
||||||
|
console.log(
|
||||||
|
'this.$moment(this.creationUserData.date).format("MMMM")',
|
||||||
|
this.$moment(this.creationUserData.date).format('MMMM'),
|
||||||
|
)
|
||||||
|
console.log(
|
||||||
|
'this.$moment(this.creationUserData.date).format("YYYY-MM-DD")',
|
||||||
|
this.$moment(this.creationUserData.date).format('YYYY-MM-DD'),
|
||||||
|
)
|
||||||
|
// const id = this.$moment(this.creationUserData.date).format('MMMM')
|
||||||
|
}
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
radioSelected: '',
|
radioSelected: '',
|
||||||
@ -172,11 +193,11 @@ export default {
|
|||||||
createdIndex: null,
|
createdIndex: null,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
// Auswählen eines Zeitraumes
|
// Auswählen eines Zeitraumes
|
||||||
updateRadioSelected(name, index, openCreation) {
|
updateRadioSelected(name, index, openCreation) {
|
||||||
this.createdIndex = index
|
this.createdIndex = index
|
||||||
|
console.log("radioSelected", this.radioSelected)
|
||||||
// Wenn Mehrfachschöpfung
|
// Wenn Mehrfachschöpfung
|
||||||
if (this.type === 'massCreation') {
|
if (this.type === 'massCreation') {
|
||||||
// An Creation.vue emitten und radioSelectedMass aktualisieren
|
// An Creation.vue emitten und radioSelectedMass aktualisieren
|
||||||
@ -191,8 +212,8 @@ export default {
|
|||||||
// Wenn Einzelschöpfung
|
// Wenn Einzelschöpfung
|
||||||
if (this.pagetype === 'PageCreationConfirm') {
|
if (this.pagetype === 'PageCreationConfirm') {
|
||||||
this.rangeMin = 0
|
this.rangeMin = 0
|
||||||
this.rangeMax = openCreation + ( this.creationUserData.amount / 10000 )
|
this.rangeMax = openCreation + this.creationUserData.amount / 10000
|
||||||
this.creation[index] = this.creation[index] + ( this.creationUserData.amount / 10000 )
|
this.creation[index] = this.creation[index] + this.creationUserData.amount / 10000
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/*
|
/*
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user