fix:endpoint module pipline 的json改为key-value , timestamp改为下拉

This commit is contained in:
zhangyu
2021-08-16 16:14:48 +08:00
parent e159467b54
commit 7a421d5cba
5 changed files with 187 additions and 37 deletions

View File

@@ -220,6 +220,17 @@ export default {
}
pipeline.labels = labelsArr
}
if (pipeline.type === 'json') {
const expressionsArr = []
if (JSON.stringify(pipeline.expressions) !== '{}' && pipeline.expressions) {
Object.keys(pipeline.expressions).forEach(key => {
expressionsArr.push({ key, value: pipeline.expressions[key] })
})
} else {
expressionsArr.push({ key: '', value: '' })
}
pipeline.expressions = expressionsArr
}
})
if (item.type === 'file') {
item.unit = ''