Skip to content

Commit

Permalink
improve(Statistiques territoire): Indiquer l'année de télédéclaration (
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn authored Jan 29, 2025
1 parent de15b94 commit 436b7ba
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions frontend/src/views/PublicCanteenStatisticsPage/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@
hide-details
id="select-year"
class="ml-2"
style="max-width: 8em"
item-text="text"
item-value="key"
style="max-width: 24em"
/>
</div>
</v-row>
Expand Down Expand Up @@ -301,10 +303,10 @@ export default {
},
data() {
const yearGenerator = function*() {
for (let n = 2020; n <= lastYear(); n += 1) yield n
for (let n = 2020; n <= lastYear(); n += 1) yield { key: n, text: `données ${n} (télédéclarées en ${n + 1})` }
}
return {
year: null,
year: lastYear(),
yearsList: Array.from(yearGenerator()),
labels,
approMeasure: keyMeasures.find((measure) => measure.badgeId === "appro"),
Expand Down

0 comments on commit 436b7ba

Please sign in to comment.