feat: 添加批量新增的页面

This commit is contained in:
zhangyu
2021-08-04 16:55:11 +08:00
parent b64d242458
commit 6dd7c9c279
12 changed files with 574 additions and 150 deletions

View File

@@ -125,10 +125,8 @@ export default {
{
type: 'logs',
config: [{
basic: {
type: 'file',
fileName: ''
},
type: 'file',
fileName: '',
labels: '',
labelModule: [{ key: '', value: '' }],
pipeline: []
@@ -230,7 +228,7 @@ export default {
}
if (JSON.stringify(this.object.configs[0].config.params) !== '{}' && this.object.configs[0].config.params) {
Object.keys(this.object.configs[0].config.params).forEach(key => {
this.object.paramObj.push({ key, value: this.object.configs[0].params[key] })
this.object.paramObj.push({ key, value: this.object.configs[0].config.params[key] })
})
} else {
this.object.paramObj.push({ key: '', value: [] })