From 2640e8fd2cb418259fa5aab92eba059fea1576f1 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Tue, 22 Feb 2022 18:21:57 +0800 Subject: [PATCH] =?UTF-8?q?CN-297=20feat:=20detections=E4=B8=8B=E6=8B=89?= =?UTF-8?q?=E9=9D=99=E6=80=81=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/detections/detection-overview.scss | 122 ++++++++++++++++++ src/views/detections/DetectionOverview.vue | 58 ++++++--- 2 files changed, 163 insertions(+), 17 deletions(-) diff --git a/src/assets/css/components/views/detections/detection-overview.scss b/src/assets/css/components/views/detections/detection-overview.scss index d8889ec8..3a09a5d6 100644 --- a/src/assets/css/components/views/detections/detection-overview.scss +++ b/src/assets/css/components/views/detections/detection-overview.scss @@ -47,3 +47,125 @@ } } } +.overview__row-timeline { + display: flex; + flex-wrap: wrap; + padding: 17px; + background-color: #F9F9F9; + + .row-timeline { + flex: 0 0 110px; + display: flex; + flex-direction: column; + + .row-timeline__time-info { + display: flex; + justify-content: center; + align-items: center; + font-size: 12px; + color: #666666; + } + .row-timeline__line { + display: flex; + justify-content: center; + align-items: center; + height: 1px; + margin: 5px 0; + background-color: #CBD0D5; + overflow: visible; + + .line-point-larger { + display: flex; + align-items: center; + justify-content: center; + height: 12px; + width: 12px; + border-radius: 50%; + background-color: #F9F9F9; + border: 1px solid #666; + + .line-point { + background-color: #666; + } + } + .line-point { + height: 6px; + width: 6px; + border-radius: 50%; + background-color: #A0B5CA; + } + } + .row-timeline__card { + padding: 8px 4px 0; + + &>div { + display: flex; + flex-direction: column; + height: 122px; + width: 102px; + padding: 10px; + background-color: #EFF2F5; + border-radius: 2px; + + .timeline__severity { + display: flex; + align-items: center; + margin-bottom: 10px; + + &.timeline__severity--critical i { + color: #D84C4C; + } + &.timeline__severity--high i { + color: #FE845D; + } + &.timeline__severity--medium i { + color: #FEB65A; + } + &.timeline__severity--low i { + color: #F6C738; + } + &.timeline__severity--info i { + color: #D1BD50; + } + i { + font-size: 16px; + } + span { + padding-left: 5px; + font-size: 14px; + color: #3976CB; + } + } + .timeline__security-type { + font-size: 12px; + color: #3976CB; + margin-bottom: 10px; + } + .timeline__start-time { + font-size: 12px; + color: #666666; + } + } + } + .row-timeline__foot { + display: flex; + flex-direction: column; + padding: 2px 0 10px; + + .detection-ip { + display: flex; + align-items: center; + padding-left: 5px; + color: #666; + font-size: 12px; + + &.detection-ip__current { + color: #D84C4C; + } + i { + font-size: 12px; + } + } + } + } +} diff --git a/src/views/detections/DetectionOverview.vue b/src/views/detections/DetectionOverview.vue index 7b60c808..0f2fb713 100644 --- a/src/views/detections/DetectionOverview.vue +++ b/src/views/detections/DetectionOverview.vue @@ -107,6 +107,37 @@