From 40d43acb6caee9c7932734e380aee5b0c9632a02 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Sun, 22 Oct 2023 18:29:34 +0800 Subject: [PATCH] =?UTF-8?q?CN-1391=20fix:=20=E4=BF=AE=E5=A4=8D=E4=B8=80?= =?UTF-8?q?=E7=B3=BB=E5=88=97bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/detections/detections.scss | 12 + src/utils/date-util.js | 2 +- src/views/detections/DetectionFilter.vue | 3 +- src/views/detections/DetectionList.vue | 7 +- src/views/detections/DetectionRow.vue | 4 +- src/views/detections/DetectionSearch.vue | 17 +- src/views/detections/Index.vue | 216 +++++++++++------- .../detections/options/detectionOptions.js | 11 +- .../DetectionSecurityEventOverview.vue | 68 +++--- test/utils/mockData/score.js | 62 +++++ test/utils/tools.test.js | 12 +- 11 files changed, 269 insertions(+), 145 deletions(-) diff --git a/src/assets/css/components/views/detections/detections.scss b/src/assets/css/components/views/detections/detections.scss index 9d740400..4d526da3 100644 --- a/src/assets/css/components/views/detections/detections.scss +++ b/src/assets/css/components/views/detections/detections.scss @@ -4,6 +4,18 @@ width: 100%; margin-bottom: 10px; } +.detections { + .entity__pagination{ + bottom: 9px; + height: 40px; + width: 100%; + } + .detections__container { + display: flex; + flex-direction: column; + padding-bottom: 20px; + } +} .detection__list { display: flex; flex-direction: column; diff --git a/src/utils/date-util.js b/src/utils/date-util.js index df9a442f..ed0aca8b 100644 --- a/src/utils/date-util.js +++ b/src/utils/date-util.js @@ -43,7 +43,7 @@ export function rTime (date) { } // 日期转换为时间戳 export function toTime (date) { - return new Date(date).getTime() + return new Date(parseFloat(date)).getTime() } // 时间格式转换 export function dateFormat (date, format = 'YYYY-MM-DD HH:mm:ss') { diff --git a/src/views/detections/DetectionFilter.vue b/src/views/detections/DetectionFilter.vue index fe42a2bf..1e11ad41 100644 --- a/src/views/detections/DetectionFilter.vue +++ b/src/views/detections/DetectionFilter.vue @@ -1,8 +1,7 @@