From 31a9196bbbf2029b0c7347ef272b9d450d67ed00 Mon Sep 17 00:00:00 2001 From: "@changcode" Date: Wed, 6 Apr 2022 13:42:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A2=9E=E5=8A=A0=20dns=20=E5=A4=B4?= =?UTF-8?q?=E9=83=A8title=EF=BC=8C=20detenctions=20tab=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=AD=97=E6=AE=B5=E5=B1=95=E7=A4=BA=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/charts/chartSingleValue.scss | 13 ++++- src/views/charts/charts/ChartSingleValue.vue | 49 +++++++++++-------- .../charts/charts/chartDetectionService.vue | 1 + .../charts/charts/chartDetectionsTable.vue | 25 ++++++---- 4 files changed, 57 insertions(+), 31 deletions(-) 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: {