From 63b43da537cd6586300811801bec744bcc170b87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=8A=B2=E6=9D=BE?= Date: Sat, 28 Mar 2020 20:44:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=87=A0=E4=B8=AA=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1.asset详情页 2.asset页面 alert 超链接 3.alert rule 详情页 4.datacenter详情页 --- nezha-fronted/src/assets/stylus/main.scss | 10 +- .../components/common/bottomBox/bottomBox.vue | 5 + .../common/bottomBox/dcBottomBox.vue | 298 ------------------ .../alertMessageTab.vue} | 266 +++++++--------- .../common/bottomBox/tabs/commonDetailTab.vue | 17 +- .../components/common/rightBox/assetBox.vue | 10 +- .../src/components/page/alert/config.vue | 80 ++++- .../src/components/page/asset/asset.vue | 79 +++-- .../src/components/page/config/account.vue | 2 +- .../src/components/page/config/dc.vue | 13 +- .../src/components/page/config/promServer.vue | 6 + nezha-fronted/src/main.js | 6 +- nezha-fronted/src/tools.js | 47 +-- 13 files changed, 307 insertions(+), 532 deletions(-) delete mode 100644 nezha-fronted/src/components/common/bottomBox/dcBottomBox.vue rename nezha-fronted/src/components/common/bottomBox/{alertMessageBox.vue => tabs/alertMessageTab.vue} (60%) diff --git a/nezha-fronted/src/assets/stylus/main.scss b/nezha-fronted/src/assets/stylus/main.scss index 8ef04ff18..022fd75d0 100644 --- a/nezha-fronted/src/assets/stylus/main.scss +++ b/nezha-fronted/src/assets/stylus/main.scss @@ -689,6 +689,12 @@ li{ padding: 0; background-color: $content-right-background-color; } +.nz-table.el-table td.has-message .cell { + background-color: #f8d7da; +} +.nz-table.el-table td.has-no-message .cell { + background-color: #d4edda; +} .nz-table.el-table th { padding: 0; } @@ -1335,10 +1341,10 @@ li{ margin-right: 5px; } .red { - background-color:#ff6347; + background-color: #ff6347 !important; } .green { - background-color:lightGreen; + background-color:lightGreen !important; } .grey { background-color:lightGrey; diff --git a/nezha-fronted/src/components/common/bottomBox/bottomBox.vue b/nezha-fronted/src/components/common/bottomBox/bottomBox.vue index 037f0bf7e..86cd32185 100644 --- a/nezha-fronted/src/components/common/bottomBox/bottomBox.vue +++ b/nezha-fronted/src/components/common/bottomBox/bottomBox.vue @@ -21,6 +21,9 @@ > + + + @@ -28,12 +31,14 @@ - - diff --git a/nezha-fronted/src/components/common/bottomBox/alertMessageBox.vue b/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue similarity index 60% rename from nezha-fronted/src/components/common/bottomBox/alertMessageBox.vue rename to nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue index 4dfa70cbd..7ffbb5405 100644 --- a/nezha-fronted/src/components/common/bottomBox/alertMessageBox.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue @@ -1,107 +1,94 @@