fix: 修改 日期格式

This commit is contained in:
zhangyu
2021-12-31 16:41:30 +08:00
parent fd25007284
commit 45b6e953d2
32 changed files with 209 additions and 202 deletions

View File

@@ -758,13 +758,13 @@ export default {
} else {
before = new Date()
before.setHours(new Date().getHours() - 1)
before = this.dateFormat('yyyy-mm-dd HH:MM:SS', before)
before = this.dateFormat('YYYY-MM-DD HH:mm:ss', before)
}
if (this.trendSearchParam.end) {
end = this.trendSearchParam.end
} else {
end = new Date()
end = this.dateFormat('yyyy-mm-dd HH:MM:SS', end)
end = this.dateFormat('YYYY-MM-DD HH:mm:ss', end)
}
let metric
let rule