添加周期

This commit is contained in:
2026-07-07 10:18:22 +08:00
parent 5044c88946
commit 1a44a2f9e0
19 changed files with 556 additions and 87 deletions

View File

@@ -37,10 +37,10 @@ interface Props {
const props = withDefaults(defineProps<Props>(), {
nextFlag: false,
theCurrentTime: false,
isStatisticData: 1
isStatisticData: 0
})
const isMinuteData = computed(() => Number(props.isStatisticData) === 0)
const isMinuteData = computed(() => Number(props.isStatisticData) === 1)
const pickerType = computed(() => (isMinuteData.value ? 'datetimerange' : 'daterange'))
const pickerValueFormat = computed(() => (isMinuteData.value ? 'YYYY-MM-DD HH:mm:ss' : 'YYYY-MM-DD'))

View File

@@ -4,7 +4,7 @@
<el-form style="flex: 1; height: 32px; display: flex; flex-wrap: wrap" ref="headerForm" @submit.prevent=""
@keyup.enter="onComSearch" label-position="left" :inline="true">
<el-form-item v-if="datePicker" style="grid-column: span 2; "
:style="{ maxWidth: isStatisticData == 0 ? '750px' : '610px' }">
:style="{ maxWidth: isStatisticData == 1 ? '750px' : '610px' }">
<template #label>
<el-checkbox v-if="showTimeAll" v-model="timeAll" label="统计时间" />
<span v-else>{{ dateLabel }}</span>
@@ -73,7 +73,7 @@ interface Props {
showExport?: boolean //导出控制
showTimeAll?: boolean //控制时间是否显示
dateLabel?: string //设置时间名称
isStatisticData?: number | string // 0分钟数据 1统计数据
isStatisticData?: number | string // 0统计数据 1分钟数据
}
const props = withDefaults(defineProps<Props>(), {
@@ -86,7 +86,7 @@ const props = withDefaults(defineProps<Props>(), {
showExport: false,
showTimeAll: false,
dateLabel: '统计日期',
isStatisticData: 1
isStatisticData: 0
})
// 动态计算table高度
const resizeObserver = new ResizeObserver(entries => {

View File

@@ -10,7 +10,7 @@
@checkbox-all="selectChangeEvent"
@checkbox-change="selectChangeEvent"
:showOverflow="showOverflow"
>
<!-- @sort-change="handleSortChange" -->
<!-- Column 组件内部是 el-table-column -->