CN-334 Detection--严重程度趋势图更改

1.x轴接口返回数据格式更改,安全事件和服务质量事件都需要更改
2.修复detection俩页面查询出数据后页面卡死问题
3.列表下拉内容假数据去掉,对接接口数据
This commit is contained in:
hanyuxia
2022-03-03 18:01:26 +08:00
parent 0c8892f8e4
commit ed373c1c85
7 changed files with 381 additions and 222 deletions

View File

@@ -40,3 +40,8 @@ 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/, '')
}