feat:修改asset endpoint的显示
This commit is contained in:
@@ -524,7 +524,9 @@ const cn = {
|
|||||||
notInStock: "出库",
|
notInStock: "出库",
|
||||||
principal: "负责人",
|
principal: "负责人",
|
||||||
tel: "电话",
|
tel: "电话",
|
||||||
featureTitle: "属性"
|
featureTitle: "属性",
|
||||||
|
endpointUpNum:'代表正常的数量',
|
||||||
|
endpointNum:'代表总的数量',
|
||||||
},
|
},
|
||||||
config: {
|
config: {
|
||||||
config: "设置",
|
config: "设置",
|
||||||
|
|||||||
@@ -437,6 +437,8 @@ const en = {
|
|||||||
ping:'Ping',
|
ping:'Ping',
|
||||||
},
|
},
|
||||||
featureTitle:'Attribute',
|
featureTitle:'Attribute',
|
||||||
|
endpointUpNum:'It\'s a normal number',
|
||||||
|
endpointNum:'Represents the total quantity',
|
||||||
editAssetTab:{
|
editAssetTab:{
|
||||||
title:'New asset',//'新增资产'
|
title:'New asset',//'新增资产'
|
||||||
sn:'SN',//SN
|
sn:'SN',//SN
|
||||||
|
|||||||
@@ -90,7 +90,13 @@
|
|||||||
</el-popover>
|
</el-popover>
|
||||||
</div>
|
</div>
|
||||||
<template v-if="item.prop=='Module'">
|
<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>
|
||||||
<template v-if="item.prop=='Alert'">
|
<template v-if="item.prop=='Alert'">
|
||||||
<el-tooltip :content="scope.row.alertNum+' '+$t('overall.active')" placement="top" effect="light" :disabled=" scope.row.alertNum < 99">
|
<el-tooltip :content="scope.row.alertNum+' '+$t('overall.active')" placement="top" effect="light" :disabled=" scope.row.alertNum < 99">
|
||||||
@@ -474,6 +480,13 @@
|
|||||||
return 'success';
|
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 '';
|
return '';
|
||||||
},
|
},
|
||||||
edit(asset) {
|
edit(asset) {
|
||||||
|
|||||||
Reference in New Issue
Block a user