| | |
| | | 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); |
| | |
| | | }) 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 = [ |
| | |
| | | }; |
| | | |
| | | const updateIndexSummary = (summary) => { |
| | | updateCurrent(summary?.[props.summaryIndex],true); |
| | | updateCurrent(summary?.[props.summaryIndex], true); |
| | | }; |
| | | |
| | | defineExpose({ |