perf: alert-rule和asset的告警信息数量样式调整

This commit is contained in:
陈劲松
2020-04-25 10:47:21 +08:00
parent ebe7232671
commit 90c9efd047
3 changed files with 22 additions and 5 deletions

View File

@@ -123,6 +123,7 @@
v-loading="loading"
tooltip-effect="light"
ref="assetTable"
:cell-class-name="messageStyle"
>
<el-table-column
:resizable="false"
@@ -686,6 +687,16 @@
}
})
},
messageStyle(e) {
if (e.column.label == this.$t("asset.tableTitle.alerts")) {
if (e.row.alertNum > 0) {
return 'has-message';
} else {
return 'has-no-message';
}
}
return '';
},
editData(data, item) {
if (data === 'idc') {
item.name = this.addIdcData.popName