From 397b254ec5a9d29b4ad92d4e62c708c32f0ad20b Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Mon, 15 Apr 2024 22:25:39 +0800 Subject: [PATCH] =?UTF-8?q?CN-1592=20fix:=20tag=E4=B8=8B=E6=8B=89=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=97=B6=E9=97=B4=E9=80=89=E6=8B=A9=E6=A1=86=E3=80=81?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8D=E8=83=BD=E5=88=A0=E9=99=A4=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/config.js | 5 +- .../common/TimeRange/date-time-range.scss | 1 + src/assets/css/components/views/tag/tag.scss | 51 +++--- .../common/TimeRange/DateTimeRange.vue | 5 +- src/components/table/tag/TagTable.vue | 171 ++++++++++++------ .../charts2/charts/options/echartOption.js | 3 +- src/views/tag/Tag.vue | 2 +- src/views/tag/TagForm.vue | 28 +-- 8 files changed, 153 insertions(+), 113 deletions(-) diff --git a/public/config.js b/public/config.js index cd910adc..ba0a6d64 100644 --- a/public/config.js +++ b/public/config.js @@ -22,5 +22,8 @@ const DEFAULT_TIME_FILTER_RANGE = { behaviorPattern: 60 * 24 * 7 // 实体详情--IP--行为模式 }, detection: 60, // 事件日志列表 - tag:60//标签列表 + tag: { // 标签列表 + activeEntity: 60, // 标签table下拉--活跃实体 + totalEntity: 7 * 24 * 60 // 标签table下拉--全部实体 + } } diff --git a/src/assets/css/components/components/common/TimeRange/date-time-range.scss b/src/assets/css/components/components/common/TimeRange/date-time-range.scss index 39636d7d..cdd2f453 100644 --- a/src/assets/css/components/components/common/TimeRange/date-time-range.scss +++ b/src/assets/css/components/components/common/TimeRange/date-time-range.scss @@ -1,5 +1,6 @@ @use 'element-plus/theme-chalk/src/select.scss' as *; .date-range-box { + position: relative; font-size: 14px; border-radius: var(--el-border-radius-base); display: flex; diff --git a/src/assets/css/components/views/tag/tag.scss b/src/assets/css/components/views/tag/tag.scss index 88a7d2e7..1d0b61b2 100644 --- a/src/assets/css/components/views/tag/tag.scss +++ b/src/assets/css/components/views/tag/tag.scss @@ -14,6 +14,8 @@ height: calc(100% - 62px) !important; .el-table__expanded-cell { + z-index: 2; + .down { margin-left: 32px; height: 100%; @@ -47,25 +49,16 @@ } .block.drop-down-time { margin: 15px 0 14px 0; - - .el-date-editor { - justify-content: center; - - .el-range-separator { - width: 24px; - } - .el-input__icon.el-range__close-icon { - display: none; - } - } + display: flex; + position: relative; .tag-dropdown{ align-items: center; - width: 100%; height: 24px; justify-content: center; line-height: 24px; padding: 0 6px; + margin-right: 20px; span { margin-right: 6px; @@ -83,6 +76,24 @@ font-size: 12px; } } + .expand-observed-entities { + font-size: 12px; + color: var(--el-color-primary); + cursor: pointer; + line-height: 24px; + + &.expand-observed-entities--disabled { + color: var(--el-text-color-regular); + cursor: default; + } + i { + top: 1px; + } + } + .date-range-box { + position: absolute; + right: 20px; + } } .expand { min-height: 150px; @@ -104,7 +115,7 @@ .expand-left { //background: #F9F9F9; //border-radius: 2px; - width:calc(100% - 200px); + width: 100%; height: 150px; position: relative; .chart-drawing { @@ -130,20 +141,6 @@ padding: 2px 3px 0 0; } } - .expand-observed-entities { - font-size: 12px; - color: var(--el-color-primary); - margin-bottom: 4px; - cursor: pointer; - - &.expand-observed-entities--disabled { - color: var(--el-text-color-regular); - cursor: default; - } - i { - top: 1px; - } - } .expand-icon { display: flex; justify-content: space-evenly; diff --git a/src/components/common/TimeRange/DateTimeRange.vue b/src/components/common/TimeRange/DateTimeRange.vue index 69265d3a..19c2b105 100644 --- a/src/components/common/TimeRange/DateTimeRange.vue +++ b/src/components/common/TimeRange/DateTimeRange.vue @@ -1,5 +1,5 @@