fix:解决asset。tableTitle 删除后的影响

This commit is contained in:
zhangyu
2021-04-25 16:28:09 +08:00
parent 78ed94c1c8
commit de5fe9f1c6
18 changed files with 84 additions and 66 deletions

View File

@@ -151,32 +151,32 @@ export default {
mainTableHeight: '100%',
tableTitle: [
{
label: this.$t('asset.tableTitle.host'),
label: this.$t('asset.host'),
prop: 'HOST',
show: true,
width: 130,
fixed: 'left'
},
{
label: this.$t('asset.tableTitle.device'),
label: this.$t('asset.device'),
prop: 'SN',
show: true,
width: 130
},
{
label: this.$t('asset.tableTitle.assetType'),
label: this.$t('asset.assetType'),
prop: 'assetType',
show: true
}, {
label: this.$t('asset.tableTitle.assetState'),
label: this.$t('asset.assetState'),
prop: 'state',
show: true
}, {
label: this.$t('asset.tableTitle.assetPing'),
label: this.$t('asset.assetPing'),
prop: 'pingStatus',
show: true
}, {
label: this.$t('asset.tableTitle.alerts'),
label: this.$t('asset.alerts'),
prop: 'Alert',
show: true,
width: 100
@@ -287,7 +287,7 @@ export default {
this.esc(false)
},
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('asset.alerts')) {
if (e.row.alertNum > 0) {
return 'danger'
} else {