NEZ-916 feat: module endpoint 支持relabel

This commit is contained in:
zhangyu
2021-08-19 15:54:38 +08:00
parent 9167bb2107
commit 2113c435a4
10 changed files with 326 additions and 36 deletions

View File

@@ -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) {