fix: detection的sequence详情时间类字段进行转换并添加icon
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="overview__row">
|
||||
<div class="row__label">{{ $t('detection.list.eventSecurity') }}</div>
|
||||
<div class="row__label">{{ $t('detection.list.eventSeverity') }}</div>
|
||||
<div class="row__content">{{ getSeverityByCode(myDetection.severity) || '-' }}</div>
|
||||
</div>
|
||||
<div class="overview__row">
|
||||
@@ -41,10 +41,10 @@
|
||||
<div class="row__label">{{ $t('detection.clientLocation') }}</div>
|
||||
<div class="row__content">
|
||||
<div v-if="myDetection.clientCountryRegion">
|
||||
<div>
|
||||
<span>
|
||||
<img v-if="myDetection.clientCountryRegion===countryNameIdMapping.Unknown || !countryNameIdMapping[myDetection.clientCountryRegion]" src="../../../../public/images/flag/Unknown.svg" class="filter-country-flag">
|
||||
<img v-else :src="require(`../../../../public/images/flag/${countryNameIdMapping[myDetection.clientCountryRegion]}.png`)" class="filter-country-flag" >
|
||||
</div>
|
||||
</span>
|
||||
{{ myDetection.clientCountryRegion || '-' }}, {{ myDetection.clientSuperAdminArea || '-' }}
|
||||
</div>
|
||||
<div v-else>-</div>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
</div>
|
||||
<div class="overview__title">{{ $t('overall.fields') }}</div>
|
||||
<div class="overview__row">
|
||||
<div class="row__label">{{ $t('detection.list.eventSecurity') }}</div>
|
||||
<div class="row__label">{{ $t('detection.list.eventSeverity') }}</div>
|
||||
<div class="row__content">{{ getSeverityByCode(myDetection.severity) || '-' }}</div>
|
||||
</div>
|
||||
|
||||
@@ -18,7 +18,17 @@
|
||||
<div v-for="(item, fields) in obj" :key="fields">
|
||||
<div class="overview__row" v-if="fields !== 'stage_id'">
|
||||
<div class="row__label row__label__capitalize">{{ fields }}</div>
|
||||
<div class="row__content">{{ item || '-' }}</div>
|
||||
<div class="row__content" v-if="item">
|
||||
<div v-if="$_.isNumber(item)">
|
||||
<div v-if="item > 1000000000">
|
||||
<i class="cn-icon cn-icon-time2 row__content__icon"></i>
|
||||
{{ dateFormatByAppearance(item) }}
|
||||
</div>
|
||||
<div v-else>{{ item }}</div>
|
||||
</div>
|
||||
<div v-else>{{ item }}</div>
|
||||
</div>
|
||||
<div class="row__content" v-else>-</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="overview__row">
|
||||
|
||||
@@ -137,7 +137,7 @@ export default {
|
||||
this.handleLineChart(data)
|
||||
}
|
||||
const detailData = data[0]
|
||||
if (detailData.eventInfo) {
|
||||
if (detailData?.eventInfo) {
|
||||
detailData.eventInfoList = JSON.parse(detailData.eventInfo)
|
||||
}
|
||||
this.myDetection = { ...this.myDetection, ...detailData }
|
||||
|
||||
Reference in New Issue
Block a user