diff --git a/my-vue-app/src/api/secondTop.js b/my-vue-app/src/api/secondTop.js index 126e845..bf59aa3 100644 --- a/my-vue-app/src/api/secondTop.js +++ b/my-vue-app/src/api/secondTop.js @@ -72,7 +72,14 @@ export const getExcellentRecordFile = (params) => { export const changeCampPeriod = (params) => { return https.post('/api/v1/level_four/overview/change_camp_period', params) } - +// 获取历史营期 /api/v1/level_four/overview/get_history_camp_period +export const getHistoryCampPeriod = (params) => { + return https.post('/api/v1/level_four/overview/get_history_camp_period', params) +} +// 切换历史营期 /api/v1/level_four/overview/switch_history_camp_period +export const switchHistoryCampPeriod = (params) => { + return https.post('/api/v1/level_four/overview/switch_history_camp_period', params) +} diff --git a/my-vue-app/src/views/secondTop/components/Calendar.vue b/my-vue-app/src/views/secondTop/components/Calendar.vue index db74070..03cce9d 100644 --- a/my-vue-app/src/views/secondTop/components/Calendar.vue +++ b/my-vue-app/src/views/secondTop/components/Calendar.vue @@ -27,6 +27,12 @@ 历史 + - +
@@ -126,7 +127,7 @@ const emit = defineEmits(['update-check-type']) const switchStatsMode = (mode) => { statsMode.value = mode // 向父组件发送事件,修改CheckType的值 - const checkTypeValue = mode === 'monthly' ? 'month' : 'period' + const checkTypeValue = mode === 'monthly' ? 'period':'month' emit('update-check-type', checkTypeValue) console.log('切换统计模式:', mode, '发送CheckType值:', checkTypeValue) }