mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
add variable year for formated date and added it to the predifined text.
This commit is contained in:
parent
73027b8058
commit
cfea775447
@ -171,14 +171,17 @@ export default {
|
|||||||
currentMonth: {
|
currentMonth: {
|
||||||
short: this.$moment().format('MMMM'),
|
short: this.$moment().format('MMMM'),
|
||||||
long: this.$moment().format('YYYY-MM-DD'),
|
long: this.$moment().format('YYYY-MM-DD'),
|
||||||
|
year: this.$moment().format('YYYY'),
|
||||||
},
|
},
|
||||||
lastMonth: {
|
lastMonth: {
|
||||||
short: this.$moment().subtract(1, 'month').format('MMMM'),
|
short: this.$moment().subtract(1, 'month').format('MMMM'),
|
||||||
long: this.$moment().subtract(1, 'month').format('YYYY-MM') + '-01',
|
long: this.$moment().subtract(1, 'month').format('YYYY-MM') + '-01',
|
||||||
|
year: this.$moment().subtract(1, 'month').format('YYYY'),
|
||||||
},
|
},
|
||||||
beforeLastMonth: {
|
beforeLastMonth: {
|
||||||
short: this.$moment().subtract(2, 'month').format('MMMM'),
|
short: this.$moment().subtract(2, 'month').format('MMMM'),
|
||||||
long: this.$moment().subtract(2, 'month').format('YYYY-MM') + '-01',
|
long: this.$moment().subtract(2, 'month').format('YYYY-MM') + '-01',
|
||||||
|
year: this.$moment().subtract(2, 'month').format('YYYY'),
|
||||||
},
|
},
|
||||||
submitObj: null,
|
submitObj: null,
|
||||||
isdisabled: true,
|
isdisabled: true,
|
||||||
@ -190,7 +193,7 @@ export default {
|
|||||||
// Auswählen eines Zeitraumes
|
// Auswählen eines Zeitraumes
|
||||||
updateRadioSelected(name, index, openCreation) {
|
updateRadioSelected(name, index, openCreation) {
|
||||||
this.createdIndex = index
|
this.createdIndex = index
|
||||||
this.text = 'Schöpfung für ' + name.short + ' ' + this.$moment().format('YYYY')
|
this.text = 'Schöpfung für ' + name.short + ' ' + name.year
|
||||||
// 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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user