fix(性能测试): 修复场景配置中场景类型和压力配置计算错误的问题
This commit is contained in:
parent
215bd8d791
commit
0784767817
|
@ -410,21 +410,7 @@ export default {
|
|||
if (response.data) {
|
||||
let data = JSON.parse(response.data);
|
||||
for (let i = 0; i < this.threadGroups.length; i++) {
|
||||
let handler = this.threadGroups[i].handler;
|
||||
|
||||
let j = 0;
|
||||
for (; j < data.length; j++) {
|
||||
let res = data[j].filter(v => v.key === HANDLER && v.value === handler);
|
||||
if (res.length > 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
// 这里是报告查询
|
||||
if (this.reportId) {
|
||||
j = i;
|
||||
}
|
||||
|
||||
data[j].forEach(item => {
|
||||
data[i].forEach(item => {
|
||||
switch (item.key) {
|
||||
case TARGET_LEVEL:
|
||||
this.threadGroups[i].threadNumber = item.value;
|
||||
|
|
|
@ -378,17 +378,7 @@ export default {
|
|||
let data = JSON.parse(response.data);
|
||||
|
||||
for (let i = 0; i < this.threadGroups.length; i++) {
|
||||
let handler = this.threadGroups[i].handler;
|
||||
|
||||
let j = 0;
|
||||
for (; j < data.length; j++) {
|
||||
let res = data[j].filter(v => v.key === HANDLER && v.value === handler);
|
||||
if (res.length > 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
data[j].forEach(item => {
|
||||
data[i].forEach(item => {
|
||||
switch (item.key) {
|
||||
case TARGET_LEVEL:
|
||||
this.threadGroups[i].threadNumber = item.value;
|
||||
|
|
Loading…
Reference in New Issue