From 0477b78c9d1bdc18e284ffe00a75df104a6cacc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B4=AA=E6=B4=AA?= <2498601771@qq.com> Date: Tue, 13 Aug 2024 14:49:05 +0800 Subject: [PATCH] =?UTF-8?q?CN-1676=20fix:=201=E3=80=81=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E6=8F=8F=E8=BF=B0=EF=BC=9B2=E3=80=81?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E6=97=B6=E9=97=B4=E8=BD=B4=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E5=85=A5=E5=8F=82=E6=97=B6=E9=97=B4=E8=BD=AC?= =?UTF-8?q?=E4=B8=BA=E7=A7=92=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/detections/detection-list/row.scss | 4 ++ .../views/detections/detection-overview.scss | 3 ++ src/views/detections/DetectionRow.vue | 2 +- src/views/detections/DetectionRowEvents.vue | 4 +- .../detections/options/detectionOptions.js | 1 + .../overview/IndicatorMatchOverview.vue | 4 +- .../detections/overview/SequenceOverview.vue | 4 +- .../detections/overview/ThresholdOverview.vue | 4 +- .../overview/detectionDetailMixin.js | 48 +++++++++++++++++-- 9 files changed, 62 insertions(+), 12 deletions(-) diff --git a/src/assets/css/components/views/detections/detection-list/row.scss b/src/assets/css/components/views/detections/detection-list/row.scss index 4c430962..9faccd6c 100644 --- a/src/assets/css/components/views/detections/detection-list/row.scss +++ b/src/assets/css/components/views/detections/detection-list/row.scss @@ -249,6 +249,10 @@ $bg-color-page: var(--el-bg-color-page); } } + .new__basic-info { + padding: 0 16px; + } + .show-detail { flex-shrink: 0; padding: 0 30px; diff --git a/src/assets/css/components/views/detections/detection-overview.scss b/src/assets/css/components/views/detections/detection-overview.scss index a485ec24..c4a565a2 100644 --- a/src/assets/css/components/views/detections/detection-overview.scss +++ b/src/assets/css/components/views/detections/detection-overview.scss @@ -142,6 +142,9 @@ $color-regular: var(--el-text-color-regular); flex-direction: column; } } + .overview__left-new { + flex: 0 0 100%; + } } .overview__row-timeline { display: flex; diff --git a/src/views/detections/DetectionRow.vue b/src/views/detections/DetectionRow.vue index ba70b0ef..449ceea7 100644 --- a/src/views/detections/DetectionRow.vue +++ b/src/views/detections/DetectionRow.vue @@ -22,7 +22,7 @@
-
+
{{$t('detections.eventType')}} :   {{detection.eventType || '-'}} diff --git a/src/views/detections/DetectionRowEvents.vue b/src/views/detections/DetectionRowEvents.vue index cc4e89ee..37edb258 100644 --- a/src/views/detections/DetectionRowEvents.vue +++ b/src/views/detections/DetectionRowEvents.vue @@ -13,8 +13,8 @@
-
-
+
+
{{item.key}} ({{ item.type }}) diff --git a/src/views/detections/options/detectionOptions.js b/src/views/detections/options/detectionOptions.js index ea7be2e5..e2354d1c 100644 --- a/src/views/detections/options/detectionOptions.js +++ b/src/views/detections/options/detectionOptions.js @@ -489,6 +489,7 @@ export const lineOption = { }, series: [ { + name: 'event', data: [], type: 'line', color: '#ff9a79', diff --git a/src/views/detections/overview/IndicatorMatchOverview.vue b/src/views/detections/overview/IndicatorMatchOverview.vue index e9e41638..865c223c 100644 --- a/src/views/detections/overview/IndicatorMatchOverview.vue +++ b/src/views/detections/overview/IndicatorMatchOverview.vue @@ -1,10 +1,10 @@