feat: endpoint suspended相关

This commit is contained in:
陈劲松
2020-11-22 18:26:12 +08:00
committed by chenjinsong
parent 82a4c75d3c
commit 125a1340f8
13 changed files with 72 additions and 49 deletions

View File

@@ -102,9 +102,9 @@
<template v-if="item.prop=='Module'">
<el-tooltip placement="right" effect="light">
<div slot="content">
{{$t('asset.active')}} / {{$t('asset.total')}}
{{$t('asset.down')}} / {{$t('asset.total')}}
</div>
<span class="link" @click="showEndpoint(scope.row)" style="padding: 2px 8px">{{scope.row.endpointNum-scope.row.endpointDownNum}}/{{scope.row.endpointNum}}</span>
<span class="link" @click="showEndpoint(scope.row)" style="padding: 2px 8px">{{scope.row.endpointDownNum}}/{{scope.row.endpointNum}}</span>
</el-tooltip>
</template>
<template v-if="item.prop=='Alert'">
@@ -504,10 +504,14 @@
}
}
if(e.column.label == 'Module' || e.column.label == this.$t("asset.tableTitle.modules")){
if (e.row.endpointDownNum > 0) {
return 'danger';
if (e.row.state == 3) {
return 'suspended';
} else {
return 'success';
if (e.row.endpointDownNum > 0) {
return 'danger';
} else {
return 'success';
}
}
}
return '';