diff --git a/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue b/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue index 69265948a5..eec48f3303 100644 --- a/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue +++ b/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue @@ -270,7 +270,94 @@ -
+
+ + + + + + + + + + + + + + + + + +
+ +
1) { let projects = []; this.projectIds.forEach((item) => { - if (this.projectList.filter(project => project.id === item).length > 0) { + if (this.projectList.filter((project) => project.id === item).length > 0) { projects.push(item); } }); @@ -2052,6 +2140,7 @@ export default { } else { this.onSampleError = obj.onSampleError; } + this.stepCount = 0; this.dataProcessing(obj.hashTree); this.scenarioDefinition = obj.hashTree; this.$nextTick(() => { @@ -2108,6 +2197,7 @@ export default { }, dataProcessing(stepArray) { if (stepArray) { + this.stepCount += stepArray.length; for (let i in stepArray) { let typeArray = ['JDBCPostProcessor', 'JDBCSampler', 'JDBCPreProcessor']; if (typeArray.indexOf(stepArray[i].type) !== -1) {