From ec746f0fc74a822904157314f3ff33fd47167fa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B4=AA=E6=B4=AA?= <2498601771@qq.com> Date: Wed, 15 Nov 2023 15:26:37 +0800 Subject: [PATCH] =?UTF-8?q?CN-1478=20fix:=20detection=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=90=9C=E7=B4=A2=E6=A1=86=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=8E=86=E5=8F=B2=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/detections/detection-filter.scss | 2 +- .../views/entityExplorer/entity-filter.scss | 2 +- src/utils/constants.js | 1 + src/views/detections/DetectionSearch.vue | 97 ++++++++++++++++++- 4 files changed, 96 insertions(+), 6 deletions(-) diff --git a/src/assets/css/components/views/detections/detection-filter.scss b/src/assets/css/components/views/detections/detection-filter.scss index fccf4be7..091fc8dc 100644 --- a/src/assets/css/components/views/detections/detection-filter.scss +++ b/src/assets/css/components/views/detections/detection-filter.scss @@ -2,7 +2,7 @@ display: flex; flex-direction: column; width: 280px; - margin-right: 20px; + margin-right: 12px; overflow: auto; z-index: 1; border: 1px solid rgba(226, 229, 236, 1) !important; diff --git a/src/assets/css/components/views/entityExplorer/entity-filter.scss b/src/assets/css/components/views/entityExplorer/entity-filter.scss index 11b71e9e..9b236b24 100644 --- a/src/assets/css/components/views/entityExplorer/entity-filter.scss +++ b/src/assets/css/components/views/entityExplorer/entity-filter.scss @@ -2,7 +2,7 @@ display: flex; flex-direction: column; width: 320px; - margin-right: 20px; + margin-right: 12px; overflow: auto; z-index: 1; border: 1px solid rgba(226, 229, 236, 1) !important; diff --git a/src/utils/constants.js b/src/utils/constants.js index 5b7743e4..eb65ce9e 100644 --- a/src/utils/constants.js +++ b/src/utils/constants.js @@ -38,6 +38,7 @@ export const storageKey = { leftMenuShrink: 'cn-left-menu-shrink', unsavedChange: 'cn-unsaved-change', entitySearchHistory: 'cn-entity-search-history', + detectionSearchHistory: 'cn-detection-search-history', echartLegendFontSize: 'echartLegendFontSize', echartLabelFontSize: 'echartLabelFontSize', tokenExpireCurrentPath: 'token-expire-current-path', diff --git a/src/views/detections/DetectionSearch.vue b/src/views/detections/DetectionSearch.vue index 647773e8..120ce464 100644 --- a/src/views/detections/DetectionSearch.vue +++ b/src/views/detections/DetectionSearch.vue @@ -1,7 +1,7 @@