parent
8e0c28e75f
commit
45ac274062
|
@ -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 {
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue