the alert instance page displays the name of the alert plug-in. (#4815)

This commit is contained in:
zhuangchong 2021-02-20 09:32:49 +08:00 committed by GitHub
parent fdf719c1e9
commit a4de385a21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 1 deletions

View File

@ -20,6 +20,7 @@
<el-table :data="list" size="mini" style="width: 100%">
<el-table-column type="index" :label="$t('#')" width="50"></el-table-column>
<el-table-column prop="instanceName" :label="$t('Alarm instance name')"></el-table-column>
<el-table-column prop="alertPluginName" :label="$t('Alarm plugin name')"></el-table-column>
<el-table-column :label="$t('Create Time')">
<template slot-scope="scope">
<span>{{scope.row.createTime | formatDate}}</span>

View File

@ -116,7 +116,7 @@
this.getPlugins({ pluginType: 'ALERT' }).then(res => {
this.pluginInstance = res
}).catch(e => {
this.$message.error(e.msg)
this.$message.error(e.msg || '')
})
this.item = item
this.createWarningDialog = true
@ -148,6 +148,7 @@
this.isLoading = false
}
}).catch(e => {
this.$message.error(e.msg || '')
this.isLoading = false
})
}

View File

@ -220,6 +220,7 @@ export default {
'Edit Alarm Instance': 'Edit Alarm Instance',
'Group Name': 'Group Name',
'Alarm instance name': 'Alarm instance name',
'Alarm plugin name': 'Alarm plugin name',
'Select plugin': 'Select plugin',
'Please enter group name': 'Please enter group name',
'Instance parameter exception': 'Instance parameter exception',

View File

@ -220,6 +220,7 @@ export default {
'Edit Alarm Instance': '编辑告警实例',
'Group Name': '组名称',
'Alarm instance name': '告警实例名称',
'Alarm plugin name': '告警插件名称',
'Select plugin': '选择插件',
'Please enter group name': '请输入组名称',
'Instance parameter exception': '实例参数异常',