|
|
@ -155,7 +155,9 @@ |
|
|
|
<div style="width:25vw"> |
|
|
|
<el-date-picker v-model="dateRange" type="datetimerange" range-separator="→" start-placeholder="开始时间" |
|
|
|
end-placeholder="结束时间" format="YYYY-MM-DD HH:mm:ss" style="width:20vw" |
|
|
|
value-format="YYYY-MM-DD HH:mm:ss" /> |
|
|
|
value-format="YYYY-MM-DD HH:mm:ss" |
|
|
|
:default-time="defaultTime" |
|
|
|
/> |
|
|
|
<el-button type="primary" style="margin-left: 5px" @click="getChartData">查询</el-button> |
|
|
|
</div> |
|
|
|
</el-row> |
|
|
@ -208,6 +210,10 @@ dayjs.extend(utc) |
|
|
|
import {ArrowUpBold, ArrowDownBold, SemiSelect} from '@element-plus/icons-vue' |
|
|
|
import {marketMapping} from "@/utils/marketMap.js"; |
|
|
|
|
|
|
|
const defaultTime = [ |
|
|
|
new Date(2000, 1, 1, 0, 0, 0), |
|
|
|
new Date(2000, 2, 1, 23, 59, 59), |
|
|
|
] |
|
|
|
|
|
|
|
// 地区数据 |
|
|
|
const markets = ref([]) |
|
|
@ -308,7 +314,7 @@ const getToday = function () { |
|
|
|
// 本周 |
|
|
|
const getWeek = function () { |
|
|
|
const today = dayjs() |
|
|
|
const startTime = (today.startOf('week').add(1, 'day')).format('YYYY-MM-DD HH:mm:ss') |
|
|
|
const startTime = (today.startOf('week').format('YYYY-MM-DD HH:mm:ss')) |
|
|
|
const endTime = today.endOf('week').format('YYYY-MM-DD HH:mm:ss') |
|
|
|
// const endTime = today.add(1, 'week').startOf('week').add(1, 'day').format('YYYY-MM-DD HH:mm:ss') |
|
|
|
dateRange.value = [startTime, endTime] |
|
|
|