fix: detection列表加上分页、顶部柱状图时区解决;实体列表--ip下拉的地图查询参数修正

This commit is contained in:
chenjinsong
2022-03-05 20:25:03 +08:00
parent 3af81d28a3
commit f4daaa8e75
5 changed files with 21 additions and 17 deletions

View File

@@ -40,8 +40,7 @@ export function getNowTime (interval) {
endTime
}
}
//日期格式转换
export function rTime(date) {
let json_date = new Date(date).toJSON();
return new Date(new Date(json_date) + 8 * 3600 * 1000).toISOString().replace(/T/g, ' ').replace(/\.[\d]{3}Z/, '')
// 日期格式转换
export function rTime (date) {
return window.$dayJs.tz(new Date(date)).format('YYYY-MM-DD HH:mm:ss')
}