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

@@ -84,6 +84,7 @@ export const api = {
victimLocation: '/interface/detection/security/filter/victimLocation',
eventSeverity: '/interface/detection/security/filter/severity',
listBasic: '/interface/detection/security/list/basic',
listCount: '/interface/detection/security/list/count',
overviewBasic: '/interface/detection/security/detail/overview/basic',
overviewEvent: '/interface/detection/security/detail/overview/event'
},
@@ -93,6 +94,7 @@ export const api = {
eventSeverity: '/interface/detection/performance/filter/severity',
activeEntity: '/interface/detection/performance/filter/activeEntity',
listBasic: '/interface/detection/performance/list/basic',
listCount: '/interface/detection/performance/list/count',
overviewBasic: '/interface/detection/performance/detail/overview/basic'
}
}

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')
}