Feat: hightlight for month presentation

This commit is contained in:
Bertrand Benjamin 2021-08-12 15:17:22 +02:00
parent 35666dce00
commit 710015a37b
2 changed files with 10 additions and 2 deletions

View File

@ -54,7 +54,7 @@ export default {
}, },
computed: { computed: {
...mapGetters('config', { ...mapGetters('config', {
'monthDesc': 'monthDesc', 'monthDesc': 'monthHightlightDesc',
}), }),
rawDate: function () { rawDate: function () {
return parseISO(this.TheDate, "yyyy-MM", new Date()) return parseISO(this.TheDate, "yyyy-MM", new Date())

View File

@ -17,6 +17,7 @@ const config = {
type: 'base', type: 'base',
name: 'caTheo', name: 'caTheo',
unit: '€', unit: '€',
hightlight: true,
}, },
{ {
color: '', color: '',
@ -24,6 +25,7 @@ const config = {
type: 'base', type: 'base',
name: 'caRetro', name: 'caRetro',
unit: '€', unit: '€',
hightlight: false,
}, },
{ {
color: '', color: '',
@ -31,6 +33,7 @@ const config = {
type: 'base', type: 'base',
name: 'caReact', name: 'caReact',
unit: '€', unit: '€',
hightlight: true,
}, },
{ {
color: '', color: '',
@ -38,6 +41,7 @@ const config = {
type: 'base', type: 'base',
name: 'sessionQty', name: 'sessionQty',
unit: '', unit: '',
hightlight: false,
}, },
{ {
color: '', color: '',
@ -45,13 +49,15 @@ const config = {
type: 'base', type: 'base',
name: 'retro', name: 'retro',
unit: '€', unit: '€',
hightlight: false,
}, },
{ {
color: '', color: '',
desc: 'Rémuneration', desc: 'Rémuneration',
type: 'base', type: 'base',
name: 'remueration', name: 'remuneration',
unit: '€', unit: '€',
hightlight: true,
}, },
{ {
color: '', color: '',
@ -59,6 +65,7 @@ const config = {
type: 'base', type: 'base',
name: 'proPercentage', name: 'proPercentage',
unit: '%', unit: '%',
hightlight: false,
}, },
], ],
} }
@ -67,6 +74,7 @@ const config = {
userDir (state) { return state.userDir }, userDir (state) { return state.userDir },
dataFilePath (state) { return path.join(state.userDir, state.dataFile) }, dataFilePath (state) { return path.join(state.userDir, state.dataFile) },
monthDesc (state) { return state.monthDesc }, monthDesc (state) { return state.monthDesc },
monthHightlightDesc (state) { return state.monthDesc.filter(a => a.hightlight) },
caProPercentage (state) { return state.caProPercentage }, caProPercentage (state) { return state.caProPercentage },
}, },
mutations: { mutations: {