month names in table of selected users of the open creations in multiple creations

This commit is contained in:
ogerly 2022-01-03 10:13:44 +01:00
parent aff8e78bf8
commit 23875d6bc8

View File

@ -93,7 +93,31 @@ export default {
{ key: 'email', label: this.$t('e_mail') },
{ key: 'firstName', label: this.$t('firstname') },
{ key: 'lastName', label: this.$t('lastname') },
{ key: 'creation', label: this.$t('open_creations') },
{
key: 'creation',
label: this.$t('open_creation'),
formatter: (value, key, item) => {
return (
`
<div>` +
this.$moment().subtract(2, 'month').format('MMMM') +
` - ` +
String(value[0]) +
` GDD</div>
<div>` +
this.$moment().subtract(1, 'month').format('MMMM') +
` - ` +
String(value[1]) +
` GDD</div>
<div>` +
this.$moment().format('MMMM') +
` - ` +
String(value[2]) +
` GDD</div>
`
)
},
},
{ key: 'bookmark', label: this.$t('remove') },
],
itemsList: [],