添加周期
This commit is contained in:
@@ -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'))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user