perf: endpoint二级去掉lastReply,state取消时间

This commit is contained in:
chenjinsong
2020-05-11 17:40:18 +08:00
parent 92c943033e
commit 850b3bf5b3
3 changed files with 11 additions and 10 deletions

View File

@@ -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;

View File

@@ -62,7 +62,7 @@
</div>
<span v-else-if="item.prop == 'lastUpdate'">{{dateFormat(scope.row.lastUpdate)}}</span>
<span v-else-if="item.prop == 'state'" >
<el-popover placement="right" width="50" trigger="hover" :content="getStateContent(scope.row)">
<el-popover placement="right" trigger="hover" :content="getStateContent(scope.row)" popper-class="small-pop">
<div slot="reference" style="width: 20px">
<div :class="{'active-icon green':scope.row.state == '1','active-icon red':scope.row.state == '0'}"></div>
</div>
@@ -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)+']';
}
}
},

View File

@@ -1142,8 +1142,4 @@
.project .sidebar-info-item{
margin:0px !important;
}
.small-pop{
width: 25px !important;
min-width: unset !important;
}
</style>