NEZ-916 feat: module endpoint 支持relabel
This commit is contained in:
@@ -404,6 +404,13 @@ export default {
|
||||
// this.object.port = this.object.configs.port ? JSON.parse(JSON.stringify(this.object.configs.port)) : ''
|
||||
this.object.paramObj = []
|
||||
this.object.labelModule = []
|
||||
if (!this.object.configs[0].config.relabel_config) {
|
||||
this.object.configs[0].config.relabel_config = []
|
||||
}
|
||||
this.object.configs[0].config.relabel_config && this.object.configs[0].config.relabel_config.forEach(item => {
|
||||
item.showAllRelabelOption = false
|
||||
item.tags = ''
|
||||
})
|
||||
this.object.configs[1].config.forEach(item => {
|
||||
item.labelModule = []
|
||||
if (JSON.stringify(item.labels) !== '{}' && item.labels) {
|
||||
|
||||
Reference in New Issue
Block a user