From f74f8524705f06ae1b13dabf99553fc279afcd23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=8A=B2=E6=9D=BE?= Date: Mon, 6 Apr 2020 22:11:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20alertMessage-labels=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1.alertMessage-labels 2.退出登录切换语言再重登后国际化不对的bug 3.修复切换左侧菜单后顶部菜单显示不对的问题 --- nezha-fronted/src/assets/stylus/main.scss | 18 +- .../components/common/bottomBox/bottomBox.vue | 19 +- .../common/bottomBox/tabs/commonDetailTab.vue | 9 +- .../src/components/common/header.vue | 21 +- .../src/components/common/language/en.js | 3 +- .../components/common/popBox/selectWalk.vue | 22 +- .../common/rightBox/alertConfigBox.vue | 8 +- .../components/common/rightBox/moduleBox.vue | 24 +- .../src/components/page/alert/config.vue | 13 +- .../src/components/page/alert/list.vue | 262 ++++++++++++------ .../src/components/page/config/account.vue | 2 + .../src/components/page/config/dc.vue | 2 + .../src/components/page/config/mib.vue | 2 + .../src/components/page/config/model.vue | 2 + .../src/components/page/config/promServer.vue | 3 +- .../src/components/page/config/system.vue | 2 + .../components/page/config/terminallog.vue | 2 + .../page/dashboard/metricPreview.vue | 1 + .../page/dashboard/overview/overview.vue | 2 + .../src/components/page/dashboard/panel.vue | 1 + .../src/components/page/project/project.vue | 2 +- 21 files changed, 286 insertions(+), 134 deletions(-) diff --git a/nezha-fronted/src/assets/stylus/main.scss b/nezha-fronted/src/assets/stylus/main.scss index 7667551d4..4f2bb8418 100644 --- a/nezha-fronted/src/assets/stylus/main.scss +++ b/nezha-fronted/src/assets/stylus/main.scss @@ -147,7 +147,7 @@ li{ position: relative; } .to-top { - position: fixed; + position: absolute; bottom: 10px; right: 5px; border-radius: 5px; @@ -721,9 +721,13 @@ li{ /*box-shadow: inset -1px -2px 1px 0 rgba(0,0,0,0.11), inset 2px 2px 1px 0 rgba(255,255,255,0.50);*/ } .nz-table.el-table td .cell{ - height: 38px; + min-height: 38px; line-height: 38px; } +.nz-table.el-table td.alert-message-list-labels .cell{ + line-height: unset; + padding: 3px; +} /*.nz-table .el-table__row td:first-of-type { padding-left: 38px; }*/ @@ -742,7 +746,9 @@ li{ position: absolute; left: -3px; } - +.alert-message-tag { + margin: 3px; +} /* end--内容*/ /* begin--右弹框滑入滑出动画*/ @@ -1486,3 +1492,9 @@ li{ margin: 0 -7px; padding: 3px 0; } + +.metric-tip-icon{ + vertical-align: middle; + transform: scale(0.6); + display:inline-block; +} diff --git a/nezha-fronted/src/components/common/bottomBox/bottomBox.vue b/nezha-fronted/src/components/common/bottomBox/bottomBox.vue index 1fd169422..7b0d116c1 100644 --- a/nezha-fronted/src/components/common/bottomBox/bottomBox.vue +++ b/nezha-fronted/src/components/common/bottomBox/bottomBox.vue @@ -28,10 +28,23 @@ + @changeTab="changeTab"> + + + @@ -58,8 +71,10 @@ subResizeShow: Boolean, //resize时,用v-show="subResizeShow"控制页面内容是否显示 obj: Object, //关联的实体对象 from: String, //来自哪个页面 + tabList: Array, //动态页签列表 targetTab: String, //展示哪个页签 detail: Array, //对象详情内容 + detailList: Array, //多个对象详情内容 assetDetail: Array, //endpoint页的asset详情 }, diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/commonDetailTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/commonDetailTab.vue index 4c5a71bcd..258d35f07 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/commonDetailTab.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/commonDetailTab.vue @@ -9,8 +9,9 @@ + -
{{$t("overall.detail")}}
--> @@ -114,6 +113,7 @@