fix:修复时间范围比较转换错误

This commit is contained in:
zyh
2022-08-02 11:16:45 +08:00
parent 057d3be83c
commit f2461b6f27

View File

@@ -389,7 +389,7 @@ export default {
const hour = tData.getHours() > 9 ? tData.getHours() : '0' + tData.getHours()
const minute = tData.getMinutes() > 9 ? tData.getMinutes() : '0' + tData.getMinutes()
const dateFormatStr = this.timeFormatMain.split(' ')[0]
const diffSec = (this.timezoneToUtcTime(this.timeRange[1]) - this.timezoneToUtcTime(this.timeRange[0]))
const diffSec = (this.momentStrToTimestamp(this.timeRange[1]) - this.momentStrToTimestamp(this.timeRange[0]))
const secOneDay = 24 * 60 * 60 * 1000// 1天的毫秒数
let str = ''
if (dateFormatStr === 'DD/MM/YYYY') {