perf: alert-rule和asset的告警信息数量样式调整
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user