diff --git a/frontend/src/business/components/performance/test/components/PerformanceAdvancedConfig.vue b/frontend/src/business/components/performance/test/components/PerformanceAdvancedConfig.vue index ea2db72046..ef685c0f6c 100644 --- a/frontend/src/business/components/performance/test/components/PerformanceAdvancedConfig.vue +++ b/frontend/src/business/components/performance/test/components/PerformanceAdvancedConfig.vue @@ -3,166 +3,155 @@

{{$t('load_test.domain_bind')}}

- {{$t('commons.add')}} + {{$t('commons.add')}} +
- - - - - - - - - - - - - - - + + + + + + + + + + + + + + +

{{$t('load_test.params')}}

- {{$t('commons.add')}} + {{$t('commons.add')}} +
- - - - - - - - - - - - - - - + + + + + + + + + + + @@ -233,21 +222,6 @@ } }, methods: { - revertObject(row) { - Object.keys(row).forEach(function (key) { - row[key] = row[key + 'Origin']; - }); - }, - saveOriginObject(row) { - Object.keys(row).forEach(function (key) { - row[key + 'Origin'] = row[key]; - }); - }, - delOriginObject(row) { - Object.keys(row).forEach(function (key) { - delete row[key + 'Origin']; - }); - }, getAdvancedConfig(testId) { this.$get('/performance/get-advanced-config/' + testId, (response) => { if (response.data) { @@ -257,7 +231,6 @@ this.statusCodeStr = this.statusCode.join(','); this.domains = data.domains || []; this.params = data.params || []; - this.add('domains'); /*this.domains.forEach(d => d.edit = false); this.params.forEach(d => d.edit = false);*/ } @@ -267,7 +240,7 @@ if (dataName === 'domains') { this[dataName].push({ domain: 'fit2cloud.com', - enable: false, + enable: true, ip: '127.0.0.1', edit: true, }); @@ -282,21 +255,14 @@ } }, edit(row) { - this.saveOriginObject(row); row.edit = !row.edit }, del(row, dataName, index) { this[dataName].splice(index, 1); }, - cancelEdit(row) { - row.edit = false; - // rollback changes - this.revertObject(row); - }, confirmEdit(row) { row.edit = false; - row.enable=true, - this.saveOriginObject(row); + row.enable = true; }, groupBy(data, key) { return data.reduce((p, c) => { @@ -343,8 +309,6 @@ this.params.forEach(d => d.edit = false); }, configurations() { - this.domains.forEach(d => this.delOriginObject(d)); - this.params.forEach(d => this.delOriginObject(d)); let statusCode = []; if (this.statusCodeStr) { statusCode = this.statusCodeStr.split(','); @@ -368,20 +332,25 @@ .edit-input { padding-right: 0px; } + .tb-edit .el-textarea { display: none; } + .tb-edit .current-row .el-textarea { display: block; } - .tb-edit .current-row .el-textarea+span { + + .tb-edit .current-row .el-textarea + span { display: none; } - .el-col{ + + .el-col { text-align: left; } - .el-col .el-table{ - align:center; + + .el-col .el-table { + align: center; }