diff --git a/src/components/Analyse/index.vue b/src/components/Analyse/index.vue index 66954d6..06cc011 100644 --- a/src/components/Analyse/index.vue +++ b/src/components/Analyse/index.vue @@ -6,7 +6,7 @@ import ReCol from '@/components/MyCol'; import CharLine from '@/components/Analyse/char-line.vue'; import CharPie from '@/components/Analyse/char-pie.vue'; import { $t } from '@/plugins/i18n'; -import { currentMouth, currentWeek, currentYear } from '@/enums/dateEnums'; +import { currentMouth, currentWeek, currentYear, shortcutsAllMouth } from '@/enums/dateEnums'; import AnalyseTable from '@/components/Analyse/table/analyse-table.vue'; interface Title { @@ -76,6 +76,7 @@ const shortcuts = [ { text: $t('thisWeek'), value: currentWeek }, { text: $t('thisMonth'), value: currentMouth }, { text: $t('thisYear'), value: currentYear }, + ...shortcutsAllMouth(), ]; /** 选择查询日期 */ @@ -89,7 +90,14 @@ const onChangeDateRange = () => {