From 850b3bf5b3ee1a59fe901b54d46b8488e21d7141 Mon Sep 17 00:00:00 2001
From: chenjinsong <523037378@qq.com>
Date: Mon, 11 May 2020 17:40:18 +0800
Subject: [PATCH] =?UTF-8?q?perf:=20endpoint=E4=BA=8C=E7=BA=A7=E5=8E=BB?=
=?UTF-8?q?=E6=8E=89lastReply=EF=BC=8Cstate=E5=8F=96=E6=B6=88=E6=97=B6?=
=?UTF-8?q?=E9=97=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
nezha-fronted/src/assets/stylus/main.scss | 4 ++++
.../common/bottomBox/tabs/endpointTab.vue | 13 +++++++------
.../src/components/page/project/project.vue | 4 ----
3 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/nezha-fronted/src/assets/stylus/main.scss b/nezha-fronted/src/assets/stylus/main.scss
index ff802a55d..c49751808 100644
--- a/nezha-fronted/src/assets/stylus/main.scss
+++ b/nezha-fronted/src/assets/stylus/main.scss
@@ -948,6 +948,10 @@ li{
z-index: 2951 !important;
border-radius: 5px;
}
+.small-pop{
+ width: 25px !important;
+ min-width: unset !important;
+}
.nz-pop2 {
padding: 0 20px 20px 20px;
border-radius: 10px;
diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/endpointTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/endpointTab.vue
index f46b8fe9a..8594cfd83 100644
--- a/nezha-fronted/src/components/common/bottomBox/tabs/endpointTab.vue
+++ b/nezha-fronted/src/components/common/bottomBox/tabs/endpointTab.vue
@@ -62,7 +62,7 @@
{{dateFormat(scope.row.lastUpdate)}}
-
+
@@ -157,11 +157,11 @@
prop: 'state',
show: true,
},
- {
+ /*{
label: this.$t("project.endpoint.lastUpdate"),
prop: 'lastUpdate',
show: true,
- },
+ },*/
{
label: this.$t('config.account.option'),
prop: 'option',
@@ -293,10 +293,11 @@
getStateContent:function(row){
if(row){
if(row.state == 1){
-
- return 'up'+'['+this.formatUpdateTime(row.lastUpdate)+']';
+ return 'up';
+ //return 'up'+'['+this.formatUpdateTime(row.lastUpdate)+']';
}else{
- return 'down'+'['+this.getStateErrorMsg(row)+']';
+ return 'down';
+ //return 'down'+'['+this.getStateErrorMsg(row)+']';
}
}
},
diff --git a/nezha-fronted/src/components/page/project/project.vue b/nezha-fronted/src/components/page/project/project.vue
index 6a4cd577c..5bc4fe788 100644
--- a/nezha-fronted/src/components/page/project/project.vue
+++ b/nezha-fronted/src/components/page/project/project.vue
@@ -1142,8 +1142,4 @@
.project .sidebar-info-item{
margin:0px !important;
}
- .small-pop{
- width: 25px !important;
- min-width: unset !important;
- }