diff --git a/core/core-frontend/src/custom-component/v-query/DynamicTimeFiltering.vue b/core/core-frontend/src/custom-component/v-query/DynamicTimeFiltering.vue index dd182f6ed9..d8fdc094a5 100644 --- a/core/core-frontend/src/custom-component/v-query/DynamicTimeFiltering.vue +++ b/core/core-frontend/src/custom-component/v-query/DynamicTimeFiltering.vue @@ -3,7 +3,7 @@ import { toRefs, PropType, onBeforeMount, watch, computed } from 'vue' import { Calendar } from '@element-plus/icons-vue' import { type DatePickType } from 'element-plus-secondary' import type { ManipulateType } from 'dayjs' -import { getThisStart, getLastStart, getAround } from './time-format-dayjs' +import { getThisStart, getThisEnd, getLastStart, getAround } from './time-format-dayjs' interface SelectConfig { intervalType: string regularOrTrendsValue: Date @@ -114,6 +114,9 @@ const init = () => { case 'monthBeginning': config.value.regularOrTrendsValue = getThisStart('month') break + case 'monthEnd': + config.value.regularOrTrendsValue = getThisEnd('month') + break case 'yearBeginning': config.value.regularOrTrendsValue = getThisStart('year') break diff --git a/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue b/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue index d9bb3935f1..7c766d9369 100644 --- a/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue +++ b/core/core-frontend/src/custom-component/v-query/QueryConditionConfiguration.vue @@ -28,7 +28,13 @@ import CustomSortFilter from './CustomSortFilter.vue' import { addQueryCriteriaConfig } from './options' import { getCustomTime } from './time-format' import { dvMainStoreWithOut } from '@/store/modules/data-visualization/dvMain' -import { getThisStart, getLastStart, getAround, getCustomRange } from './time-format-dayjs' +import { + getThisStart, + getThisEnd, + getLastStart, + getAround, + getCustomRange +} from './time-format-dayjs' import { snapshotStoreWithOut } from '@/store/modules/data-visualization/snapshot' import { useI18n } from '@/hooks/web/useI18n' import { fieldType } from '@/utils/attr' @@ -1067,6 +1073,9 @@ const isInRange = (ele, startWindowTime, timeStamp) => { case 'monthBeginning': startTime = getThisStart('month') break + case 'monthEnd': + startTime = getThisEnd('month') + break case 'yearBeginning': startTime = getThisStart('year') break diff --git a/core/core-frontend/src/custom-component/v-query/Time.vue b/core/core-frontend/src/custom-component/v-query/Time.vue index 3b503cca0d..3fb7b7109d 100644 --- a/core/core-frontend/src/custom-component/v-query/Time.vue +++ b/core/core-frontend/src/custom-component/v-query/Time.vue @@ -7,7 +7,7 @@ import { type TimeRange } from './time-format' import dayjs from 'dayjs' import { useI18n } from '@/hooks/web/useI18n' import { useShortcuts } from './shortcuts' -import { getThisStart, getLastStart, getAround } from './time-format-dayjs' +import { getThisStart, getThisEnd, getLastStart, getAround } from './time-format-dayjs' import VanPopup from 'vant/es/popup' import VanDatePicker from 'vant/es/date-picker' import VanTimePicker from 'vant/es/time-picker' @@ -314,6 +314,9 @@ const disabledDate = val => { case 'monthBeginning': startTime = getThisStart('month') break + case 'monthEnd': + startTime = getThisEnd('month') + break case 'yearBeginning': startTime = getThisStart('year') break diff --git a/core/core-frontend/src/views/chart/components/editor/editor-senior/Senior.vue b/core/core-frontend/src/views/chart/components/editor/editor-senior/Senior.vue index 2783c100f9..f7fdbe94f8 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-senior/Senior.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-senior/Senior.vue @@ -579,3 +579,11 @@ span { } } + +