NEZ-974 fix:修改alert message 默认时间不是一小时的问题

This commit is contained in:
zhangyu
2021-09-07 11:03:58 +08:00
parent 7bf22b0c79
commit 86466ee4e6
3 changed files with 4 additions and 4 deletions

View File

@@ -447,7 +447,7 @@ export default {
},
queryChartDate () {
const $temp = this
const start = this.searchTime[0] ? this.searchTime[0] : bus.computeTimezoneTime(new Date().getTime() - 1 * 30 * 60 * 1000)
const start = this.searchTime[0] ? this.searchTime[0] : bus.computeTimezoneTime(new Date().getTime() - 1 * 60 * 60 * 1000)
const end = this.searchTime[1] ? this.searchTime[1] : bus.computeTimezoneTime(new Date().getTime())
this.searchTimeDialog = [start, end]
const timeDiff = (new Date(end).getTime() - new Date(start).getTime()) / 1000 / (24 * 60 * 60)