From 66409db79f634a9c52b34ec87abf7c3840059752 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Thu, 29 Apr 2021 22:24:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20label=E6=90=9C=E7=B4=A2=E5=BC=80?= =?UTF-8?q?=E5=85=B3=E3=80=81asset-label=E5=88=97=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/assets/css/common/tableCommon.scss | 9 +- nezha-fronted/src/assets/css/main.scss | 1 + nezha-fronted/src/assets/stylus/main.scss | 6 +- .../components/common/bottomBox/bottomBox.vue | 117 +++- .../common/bottomBox/nzBottomDataList.vue | 103 +--- .../common/bottomBox/tabs/modelTab.vue | 1 - .../bottomBox/tabs/terminalLogCMDTab.vue | 61 ++- .../bottomBox/tabs/terminalLogMonitorTab.vue | 42 +- .../bottomBox/tabs/terminalLogRecordTab.vue | 58 +- .../src/components/common/chartUnit.vue | 40 +- .../src/components/common/deleteButton.vue | 3 - .../src/components/common/js/constants.js | 3 +- .../common/labelFilter/clickSearch.vue | 1 - .../src/components/common/language/cn.js | 3 +- .../src/components/common/language/en.js | 3 +- .../src/components/common/mixin/dataList.js | 14 +- .../src/components/common/nzTransfer.vue | 1 - .../src/components/common/pagination.vue | 3 - .../src/components/common/pickTime.vue | 4 +- .../components/common/project/topologyL5.vue | 100 ++-- .../common/project/topologyPrev.vue | 4 +- .../src/components/common/searchInput.vue | 10 +- .../common/table/asset/assetTable.vue | 4 +- .../components/common/table/nzDataList.vue | 25 +- .../table/settings/terminalLogTable.vue | 6 +- .../components/page/alert/alertMessage.vue | 51 +- .../src/components/page/alert/alertRule.vue | 4 +- .../components/page/alert/alertSilence.vue | 4 +- .../src/components/page/asset/asset.vue | 35 +- .../src/components/page/config/account.vue | 502 ------------------ .../src/components/page/config/agent.vue | 4 +- .../src/components/page/config/assetMeta.vue | 4 +- .../src/components/page/config/assetState.vue | 4 +- .../src/components/page/config/dc.vue | 4 +- .../src/components/page/config/menus.vue | 4 +- .../src/components/page/config/mib.vue | 6 +- .../src/components/page/config/roles.vue | 4 +- .../page/config/template/chartTemp.vue | 4 +- .../page/config/template/exprTemp.vue | 4 +- .../components/page/dashboard/chartBox.vue | 3 + .../page/dashboard/explore/explore.vue | 53 +- .../page/dashboard/explore/promqlInput.vue | 12 +- .../page/dashboard/overview/overview.vue | 8 +- .../page/dashboard/overview/overview2.scss | 13 +- nezha-fronted/src/http.js | 5 +- nezha-fronted/src/main.js | 1 - nezha-fronted/src/router/index.js | 2 +- 47 files changed, 445 insertions(+), 908 deletions(-) delete mode 100644 nezha-fronted/src/components/page/config/account.vue diff --git a/nezha-fronted/src/assets/css/common/tableCommon.scss b/nezha-fronted/src/assets/css/common/tableCommon.scss index 9d9d4f978..a8900510f 100644 --- a/nezha-fronted/src/assets/css/common/tableCommon.scss +++ b/nezha-fronted/src/assets/css/common/tableCommon.scss @@ -76,12 +76,17 @@ color: $--button-gray-color; } } + .top-tool-btn.top-tool-btn--text { + padding: 0 8px; + width: unset; + color: #666; + } .top-tool-btn:hover:not(.nz-btn-disabled) { background-color: $--button-gray-hover-background-color; } - .top-tool-btn:focus:not(.nz-btn-disabled) { + .top-tool-btn:focus:not(.nz-btn-disabled), .top-tool-btn.is-focus { background-color: $--button-gray-hover-background-color; - border-color: #FBCEA4; + border: 1px solid #FBCEA4 !important; i { color: $--button-gray-active-color; } diff --git a/nezha-fronted/src/assets/css/main.scss b/nezha-fronted/src/assets/css/main.scss index 599f0d77e..29d2f18d9 100644 --- a/nezha-fronted/src/assets/css/main.scss +++ b/nezha-fronted/src/assets/css/main.scss @@ -2,4 +2,5 @@ @import './theme.scss'; @import './common.scss'; @import '../stylus/index.scss'; +@import './common/tableCommon.scss'; @import './common/rightBoxCommon.scss'; diff --git a/nezha-fronted/src/assets/stylus/main.scss b/nezha-fronted/src/assets/stylus/main.scss index 336820f7f..db8182056 100644 --- a/nezha-fronted/src/assets/stylus/main.scss +++ b/nezha-fronted/src/assets/stylus/main.scss @@ -359,11 +359,9 @@ li{ font-weight: 500; white-space: nowrap; } -.nz-btn.nz-btn-disabled { +.nz-btn-disabled { background-image: none; - color: #e5e5e5; - background-color: #ffffff; - border-color: #e5e5e5 ; + opacity: .6; cursor: default; } .nz-btn-group { diff --git a/nezha-fronted/src/components/common/bottomBox/bottomBox.vue b/nezha-fronted/src/components/common/bottomBox/bottomBox.vue index 84942c425..0c0ee6476 100644 --- a/nezha-fronted/src/components/common/bottomBox/bottomBox.vue +++ b/nezha-fronted/src/components/common/bottomBox/bottomBox.vue @@ -32,10 +32,9 @@ - - - - + + + @@ -110,6 +109,19 @@ export default { return { fromRoute: fromRoute, tabs: { + terminalLog: { + monitor: [ + { prop: 'monitorTab', name: this.$t('config.terminallog.monitor.monitor'), active: true } + ], + cmd: [ + { prop: 'cmdTab', name: this.$t('config.terminallog.cmd.cmd'), active: true }, + { prop: 'recordTab', name: this.$t('config.terminallog.record.record'), active: false } + ], + record: [ + { prop: 'cmdTab', name: this.$t('config.terminallog.cmd.cmd'), active: false }, + { prop: 'recordTab', name: this.$t('config.terminallog.record.record'), active: true } + ] + }, user: { operationLog: [ { prop: 'operationLogTab', name: this.$t('config.operationlog.operationlog'), active: true }, @@ -202,3 +214,100 @@ export default { } } + diff --git a/nezha-fronted/src/components/common/bottomBox/nzBottomDataList.vue b/nezha-fronted/src/components/common/bottomBox/nzBottomDataList.vue index 1f253f021..b80e04358 100644 --- a/nezha-fronted/src/components/common/bottomBox/nzBottomDataList.vue +++ b/nezha-fronted/src/components/common/bottomBox/nzBottomDataList.vue @@ -22,9 +22,9 @@ - + - - diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/modelTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/modelTab.vue index 042b959d3..3cbdbefb4 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/modelTab.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/modelTab.vue @@ -103,7 +103,6 @@ export default { @@ -2470,8 +2468,6 @@ export default { .project-box { width: 100%; - height: calc(100% - 20px); - margin-top: 10px; position: relative; border-radius: 2px; overflow: hidden; diff --git a/nezha-fronted/src/components/common/project/topologyPrev.vue b/nezha-fronted/src/components/common/project/topologyPrev.vue index 82ef0ceab..294c94366 100644 --- a/nezha-fronted/src/components/common/project/topologyPrev.vue +++ b/nezha-fronted/src/components/common/project/topologyPrev.vue @@ -113,12 +113,12 @@
{{topologyInfo.name}}
- -