From d29dcfcfee175decb8f5835864ac0f756c2efc7c Mon Sep 17 00:00:00 2001 From: yangyin <1850366751@qq.com> Date: 星期四, 24 十月 2024 11:36:37 +0800 Subject: [PATCH] Merge branch 'test' of http://47.103.154.90:83/r/WI/Web.V1.0 into test --- src/components/chat/chatComponents/summaryCom/components/recordSet/RecordSet.vue | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/src/components/chat/chatComponents/summaryCom/components/recordSet/RecordSet.vue b/src/components/chat/chatComponents/summaryCom/components/recordSet/RecordSet.vue index 3f9c2d5..4a250bb 100644 --- a/src/components/chat/chatComponents/summaryCom/components/recordSet/RecordSet.vue +++ b/src/components/chat/chatComponents/summaryCom/components/recordSet/RecordSet.vue @@ -72,6 +72,7 @@ import { axisLabelFormatter } from '/@/utils/chart'; import { deepClone } from '/@/utils/other'; import { debounce } from '/@/utils/util'; +import { IS_DAY_LIST } from './components/constants'; const chartRef = ref<HTMLDivElement>(null); const showMode = ref(DisplayModeType.Chart); @@ -106,10 +107,20 @@ }) as { data: any; summaryIndex: number; + showFilter: Boolean; }; const tableLimitHeight = props.chartHeight == undefined ? undefined : document.body.clientHeight * 0.7; +const checkIsDayTime = () => { + if (!props.showFilter) return false; + const stepFilter = visibleParams.value.find((item) => item.type === RecordSetParamsType.Step); + if (!stepFilter.origin.step_value) return false; + + return IS_DAY_LIST.includes(stepFilter.origin.step_value); +}; +// 璺ㄥ害鏄惁鏄棩鏈熷舰寮� +const isDayTime = checkIsDayTime(); const chartLoading = ref(false); const stepOptions = [ @@ -709,7 +720,7 @@ }; const updateIndexSummary = (summary) => { - updateCurrent(summary?.[props.summaryIndex],true); + updateCurrent(summary?.[props.summaryIndex], true); }; defineExpose({ -- Gitblit v1.9.3