fix: 修复chart-alertlist报错

This commit is contained in:
chenjinsong
2021-05-21 22:15:40 +08:00
parent 13b0454d00
commit dfd59ad195
7 changed files with 205 additions and 281 deletions

View File

@@ -89,7 +89,7 @@ export default {
name: '',
endpointNameTmpl: '{{module.name}}-{{asset.name}}',
type: 'http',
port: 9100,
port: '',
chartIds: '',
configs: {
walk: [],
@@ -150,7 +150,7 @@ export default {
this.object = JSON.parse(JSON.stringify(res.data))
this.object.configs = JSON.parse(this.object.configs)
this.object.walk = this.object.configs.walk ? JSON.parse(JSON.stringify(this.object.configs.walk)) : []
this.object.port = this.object.configs.port ? JSON.parse(JSON.stringify(this.object.configs.port)) : 9100
this.object.port = this.object.configs.port ? JSON.parse(JSON.stringify(this.object.configs.port)) : ''
this.object.paramObj = []
this.object.labelModule = []
if (JSON.stringify(this.object.configs.labels) !== '{}' && this.object.configs.labels) {