fix: 修复安全事件时间轴样式错乱问题;修复地图组件冲突

This commit is contained in:
chenjinsong
2022-03-07 16:03:49 +08:00
parent 7d205a352d
commit 65dd5e2879
3 changed files with 85 additions and 5 deletions

View File

@@ -156,6 +156,7 @@ import { api } from '@/utils/api'
import { getMillisecond } from '@/utils/date-util'
import { eventSeverityColor, unitTypes } from '@/utils/constants'
import unitConvert from '@/utils/unit-convert'
import _ from 'lodash'
export default {
name: 'DetectionOverview',
props: {
@@ -179,7 +180,7 @@ export default {
const eventStartTime = event.startTime
const entityStartTime = this.basicInfo ? this.basicInfo.startTime : ''
if (!this.$_.isEmpty(diffSeconds) && !this.$_.isEmpty(eventStartTime) && !this.$_.isEmpty(entityStartTime)) {
if (!_.isEmpty(diffSeconds) && !_.isEmpty(eventStartTime) && !_.isEmpty(entityStartTime)) {
const suffix = unitConvert(diffSeconds, unitTypes.time, 's', null, 0).join('')
if (eventStartTime > entityStartTime) {
return `T0+${suffix}`