diff --git a/src/assets/css/components/views/charts/chartSingleValue.scss b/src/assets/css/components/views/charts/chartSingleValue.scss index 2a400267..33c5d67a 100644 --- a/src/assets/css/components/views/charts/chartSingleValue.scss +++ b/src/assets/css/components/views/charts/chartSingleValue.scss @@ -351,13 +351,24 @@ width: 100%; .single-value__content { display: flex; - justify-content: center; + flex-direction: column; width: 100%; height: 100%; + .single-value__data { + display: flex; + flex-direction: column; + padding: 10px 20px 10px 18px; + + .content__title { + font-size: 16px; + color: #333333; + } + } .content__data { width: 90%; height: 100%; display: flex; + margin: auto; flex-direction: column; justify-content: center; } diff --git a/src/views/charts/charts/ChartSingleValue.vue b/src/views/charts/charts/ChartSingleValue.vue index 1dcd6a62..887b6a49 100644 --- a/src/views/charts/charts/ChartSingleValue.vue +++ b/src/views/charts/charts/ChartSingleValue.vue @@ -188,29 +188,36 @@
-
-
-
- -
-
-
{{$t('protocol.requestVolume')}}
-
{{unitConvert($_.get(chartData, 'bytes'), chartInfo.params.unitType).join(' ')}}
-
-
占比  {{unitConvert($_.get(chartData, 'bytesPercent') * 100, unitTypes.percent).join(' ') }}%
-
-
-
- -
-
-
{{$t('protocol.totalFlow')}}
-
{{unitConvert($_.get(chartData, 'count'), chartInfo.params.unitType).join(' ')}}
-
-
占比  {{ unitConvert($_.get(chartData, 'countPercent') * 100, unitTypes.percent).join(' ') }}%
-
+
+
+ + {{chartInfo.i18n ? $t(chartInfo.i18n) : chartInfo.name }} +
+
+
+
+ +
+
+
{{$t('protocol.requestVolume')}}
+
{{unitConvert($_.get(chartData, 'bytes'), chartInfo.params.unitType).join(' ')}}
+
+
占比  {{unitConvert($_.get(chartData, 'bytesPercent') * 100, unitTypes.percent).join(' ') }}%
+
+
+
+ +
+
+
{{$t('protocol.totalFlow')}}
+
{{unitConvert($_.get(chartData, 'count'), chartInfo.params.unitType).join(' ')}}
+
+
占比  {{ unitConvert($_.get(chartData, 'countPercent') * 100, unitTypes.percent).join(' ') }}%
+
+
+
diff --git a/src/views/charts/charts/chartDetectionService.vue b/src/views/charts/charts/chartDetectionService.vue index eb88db5c..e1323b27 100644 --- a/src/views/charts/charts/chartDetectionService.vue +++ b/src/views/charts/charts/chartDetectionService.vue @@ -6,6 +6,7 @@ :detection="data" :timeFilter="timeFilter" :key="index" + :service="true" :ref="`detectionRow${index}`" :index="index" > diff --git a/src/views/charts/charts/chartDetectionsTable.vue b/src/views/charts/charts/chartDetectionsTable.vue index 6ebd00a3..b4093f87 100644 --- a/src/views/charts/charts/chartDetectionsTable.vue +++ b/src/views/charts/charts/chartDetectionsTable.vue @@ -2,13 +2,18 @@
-
+
{{detection.offenderIp || '-'}}
{{detection.domain}}
------- {{detection.victimIp || '-'}}
+
+ {{detection.appName || '-'}} + {{detection.serverIp || '-'}} + {{detection.domain || '-'}} +
@@ -22,26 +27,26 @@ {{$t('detections.eventSeverity')}} :   {{detection.eventSeverity || '-'}}
-
+
{{$t('detection.list.securityType')}} :   {{detection.securityType || '-'}}
-
+
{{$t('detections.eventType')}} :   {{detection.eventType || '-'}}
-
+
{{$t('detection.list.malwareName')}} :   {{detection.malwareName || '-'}}
-
- - {{$t('detection.list.cryptominingPool')}} :   - {{detection.cryptominingPool || '-'}} -
+ + + + +
{{$t('detection.list.startTime')}} :   @@ -69,6 +74,8 @@ export default { index: Number, timeFilter: Object, detection: Object, + security: Boolean, + service: Boolean, pageType: String // 安全事件、服务质量 }, computed: {