From 5e866b2a2205eefe8005e9110fe1534c3ae96917 Mon Sep 17 00:00:00 2001 From: baiqi Date: Fri, 3 Nov 2023 16:18:15 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=87=AA=E5=8A=A8=E5=8C=96=E5=9C=BA=E6=99=AF?= =?UTF-8?q?=E6=AD=A5=E9=AA=A4=E9=99=90=E5=88=B6=20200=20=E6=9D=A1=E6=AD=A5?= =?UTF-8?q?=E9=AA=A4=E5=86=85=E4=BD=BF=E7=94=A8=E5=8E=9F=E7=94=9F=E6=B8=B2?= =?UTF-8?q?=E6=9F=93=EF=BC=8C=E8=B6=85=E8=BF=87=20200=20=E6=9D=A1=E6=AD=A5?= =?UTF-8?q?=E9=AA=A4=E4=BD=BF=E7=94=A8=E8=99=9A=E6=8B=9F=E6=A0=91=E6=B8=B2?= =?UTF-8?q?=E6=9F=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/automation/scenario/EditApiScenario.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue b/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue index eec48f3303..c235bb5423 100644 --- a/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue +++ b/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue @@ -2195,9 +2195,8 @@ export default { }); } }, - dataProcessing(stepArray) { + dataProcessing(stepArray, parent = null) { if (stepArray) { - this.stepCount += stepArray.length; for (let i in stepArray) { let typeArray = ['JDBCPostProcessor', 'JDBCSampler', 'JDBCPreProcessor']; if (typeArray.indexOf(stepArray[i].type) !== -1) { @@ -2218,8 +2217,15 @@ export default { }, }; } + if ( + this.stepFilter.get('ALlSamplerStep').indexOf(stepArray[i].type) === -1 || + !parent || + this.stepFilter.get('AllSamplerProxy').indexOf(parent.type) === -1 + ) { + this.stepCount += 1; + } if (stepArray[i].hashTree.length > 0) { - this.dataProcessing(stepArray[i].hashTree); + this.dataProcessing(stepArray[i].hashTree, stepArray[i]); } } }