style :修改asset页面labels样式 修改message的判断条件

This commit is contained in:
zhangyu
2020-07-22 16:33:53 +08:00
parent c05b7cfd9f
commit 942f84cefa
6 changed files with 10 additions and 3 deletions

View File

@@ -638,7 +638,7 @@
})
},
messageStyle(e) {
if (e.column.label == 'Alerts') {
if (e.column.label == 'Alerts' || e.column.label == this.$t("asset.tableTitle.alerts")) {
if (e.row.alertNum > 0) {
return 'danger';
} else {