历史数据:时间选择器调整

This commit is contained in:
高云鹏 2025-01-14 17:18:14 +08:00
parent fddacfb1be
commit cba397b346

View File

@ -7,8 +7,8 @@
<div class="timeSelect">
<el-date-picker
v-model="searchData.time"
:type="searchData.interval == '1d' ? 'daterange' : 'datetimerange'"
:value-format="searchData.interval == '1d' ? 'YYYY-MM-DD' : 'YYYY-MM-DD HH:mm:ss'"
type="datetimerange"
value-format="YYYY-MM-DD HH:mm:ss"
:default-time="[new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 2, 1, 23, 59, 59)]"
:teleported="false"
:shortcuts="shortcuts"
@ -833,6 +833,9 @@ const exportExcel = () => {
link.click()
document.body.removeChild(link)
}
</script>
<style scoped lang="scss">