From 50deba470826732f169187700cce364f47932c98 Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Mon, 21 Nov 2022 20:35:35 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AF=B7=E6=B1=82=E6=AD=A5=E9=AA=A4=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E7=AD=89=E5=BE=85=E6=8E=A7=E5=88=B6=E5=99=A8=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=BC=82=E5=B8=B8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复请求步骤添加等待控制器显示异常的问题 --- .../business/automation/scenario/EditApiScenario.vue | 11 +++++++++++ .../src/business/automation/scenario/Setting.js | 10 +++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue b/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue index 1d5a81c888..b1c1f2af9f 100644 --- a/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue +++ b/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue @@ -916,11 +916,22 @@ export default { array = this.scenarioDefinition; } let isLeaf = true; + let nodeType = ''; + if (node) { + nodeType = node.type; + } array.forEach((item) => { item.checkBox = false; if (isLeaf && this.stepFilter.get('ALlSamplerStep').indexOf(item.type) === -1) { isLeaf = false; + } else if ( + isLeaf && + item.type === 'ConstantTimer' && + this.stepFilter.get('AllSamplerProxy').indexOf(nodeType) === -1 + ) { + isLeaf = false; } + if (item.hashTree && item.hashTree.length > 0) { this.commandTreeNode(item, item.hashTree); } else { diff --git a/api-test/frontend/src/business/automation/scenario/Setting.js b/api-test/frontend/src/business/automation/scenario/Setting.js index f040590e4d..59be25f99d 100644 --- a/api-test/frontend/src/business/automation/scenario/Setting.js +++ b/api-test/frontend/src/business/automation/scenario/Setting.js @@ -70,7 +70,15 @@ export function STEP() { ['DEFINITION', ['HTTPSamplerProxy', 'DubboSampler', 'JDBCSampler', 'TCPSampler']], [ 'ALlSamplerStep', - ['JSR223PreProcessor', 'JSR223PostProcessor', 'JDBCPreProcessor', 'JDBCPostProcessor', 'Assertions', 'Extract'], + [ + 'JSR223PreProcessor', + 'JSR223PostProcessor', + 'JDBCPreProcessor', + 'JDBCPostProcessor', + 'Assertions', + 'Extract', + 'ConstantTimer', + ], ], [ 'AllCanExecType',