feat:修改asset endpoint的显示
This commit is contained in:
@@ -90,7 +90,13 @@
|
||||
</el-popover>
|
||||
</div>
|
||||
<template v-if="item.prop=='Module'">
|
||||
<span class="link" @click="showEndpoint(scope.row)">{{scope.row.endpointNum}}</span>
|
||||
<el-tooltip placement="right" effect="light">
|
||||
<div slot="content">
|
||||
{{scope.row.endpointNum-scope.row.endpointDownNum}} {{$t('asset.endpointUpNum')}}<br/>
|
||||
{{scope.row.endpointNum}} {{$t('asset.endpointNum')}}
|
||||
</div>
|
||||
<span class="link" @click="showEndpoint(scope.row)" style="padding: 2px 8px">{{scope.row.endpointNum-scope.row.endpointDownNum}}/{{scope.row.endpointNum}}</span>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
<template v-if="item.prop=='Alert'">
|
||||
<el-tooltip :content="scope.row.alertNum+' '+$t('overall.active')" placement="top" effect="light" :disabled=" scope.row.alertNum < 99">
|
||||
@@ -474,6 +480,13 @@
|
||||
return 'success';
|
||||
}
|
||||
}
|
||||
if(e.column.label == 'Module' || e.column.label == this.$t("asset.tableTitle.modules")){
|
||||
if (e.row.endpointDownNum > 0) {
|
||||
return 'danger';
|
||||
} else {
|
||||
return 'success';
|
||||
}
|
||||
}
|
||||
return '';
|
||||
},
|
||||
edit(asset) {
|
||||
|
||||
Reference in New Issue
Block a user