perf: endpoint二级去掉lastReply,state取消时间
This commit is contained in:
@@ -948,6 +948,10 @@ li{
|
|||||||
z-index: 2951 !important;
|
z-index: 2951 !important;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
|
.small-pop{
|
||||||
|
width: 25px !important;
|
||||||
|
min-width: unset !important;
|
||||||
|
}
|
||||||
.nz-pop2 {
|
.nz-pop2 {
|
||||||
padding: 0 20px 20px 20px;
|
padding: 0 20px 20px 20px;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
|
|||||||
@@ -62,7 +62,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<span v-else-if="item.prop == 'lastUpdate'">{{dateFormat(scope.row.lastUpdate)}}</span>
|
<span v-else-if="item.prop == 'lastUpdate'">{{dateFormat(scope.row.lastUpdate)}}</span>
|
||||||
<span v-else-if="item.prop == 'state'" >
|
<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 slot="reference" style="width: 20px">
|
||||||
<div :class="{'active-icon green':scope.row.state == '1','active-icon red':scope.row.state == '0'}"></div>
|
<div :class="{'active-icon green':scope.row.state == '1','active-icon red':scope.row.state == '0'}"></div>
|
||||||
</div>
|
</div>
|
||||||
@@ -157,11 +157,11 @@
|
|||||||
prop: 'state',
|
prop: 'state',
|
||||||
show: true,
|
show: true,
|
||||||
},
|
},
|
||||||
{
|
/*{
|
||||||
label: this.$t("project.endpoint.lastUpdate"),
|
label: this.$t("project.endpoint.lastUpdate"),
|
||||||
prop: 'lastUpdate',
|
prop: 'lastUpdate',
|
||||||
show: true,
|
show: true,
|
||||||
},
|
},*/
|
||||||
{
|
{
|
||||||
label: this.$t('config.account.option'),
|
label: this.$t('config.account.option'),
|
||||||
prop: 'option',
|
prop: 'option',
|
||||||
@@ -293,10 +293,11 @@
|
|||||||
getStateContent:function(row){
|
getStateContent:function(row){
|
||||||
if(row){
|
if(row){
|
||||||
if(row.state == 1){
|
if(row.state == 1){
|
||||||
|
return 'up';
|
||||||
return 'up'+'['+this.formatUpdateTime(row.lastUpdate)+']';
|
//return 'up'+'['+this.formatUpdateTime(row.lastUpdate)+']';
|
||||||
}else{
|
}else{
|
||||||
return 'down'+'['+this.getStateErrorMsg(row)+']';
|
return 'down';
|
||||||
|
//return 'down'+'['+this.getStateErrorMsg(row)+']';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1142,8 +1142,4 @@
|
|||||||
.project .sidebar-info-item{
|
.project .sidebar-info-item{
|
||||||
margin:0px !important;
|
margin:0px !important;
|
||||||
}
|
}
|
||||||
.small-pop{
|
|
||||||
width: 25px !important;
|
|
||||||
min-width: unset !important;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user