fix:修复中文显示问题

This commit is contained in:
wangwenrui
2020-09-30 18:22:15 +08:00
parent 22762bdf71
commit 6a1603d853
3 changed files with 3 additions and 3 deletions

View File

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

View File

@@ -60,7 +60,7 @@
   
<span :title="$t('overall.delete')" @click="del(scope.row)" class="content-right-option" :id="'dc-del-'+scope.row.id"><i class="nz-icon nz-icon-delete"></i></span> <span :title="$t('overall.delete')" @click="del(scope.row)" class="content-right-option" :id="'dc-del-'+scope.row.id"><i class="nz-icon nz-icon-delete"></i></span>
&nbsp; &nbsp;
<span :title="$t('config.dc.traffic.title')" @click="configTraffic(scope.row)" class="content-right-option" :id="'dc-setting-'+scope.row.id" ><i class="nz-icon nz-icon-setting"></i></span> <span :title="$t('config.dc.traffic.title')" @click="configTraffic(scope.row)" class="content-right-option" :id="'dc-setting-'+scope.row.id" ><i class="nz-icon nz-icon-gear"></i></span>
</div> </div>
<template v-else-if="item.prop == 'principal'"> <template v-else-if="item.prop == 'principal'">
<template v-if="scope.row.principal"> <template v-if="scope.row.principal">

View File

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