parent
8e0c28e75f
commit
45ac274062
|
@ -916,11 +916,22 @@ export default {
|
||||||
array = this.scenarioDefinition;
|
array = this.scenarioDefinition;
|
||||||
}
|
}
|
||||||
let isLeaf = true;
|
let isLeaf = true;
|
||||||
|
let nodeType = '';
|
||||||
|
if (node) {
|
||||||
|
nodeType = node.type;
|
||||||
|
}
|
||||||
array.forEach((item) => {
|
array.forEach((item) => {
|
||||||
item.checkBox = false;
|
item.checkBox = false;
|
||||||
if (isLeaf && this.stepFilter.get('ALlSamplerStep').indexOf(item.type) === -1) {
|
if (isLeaf && this.stepFilter.get('ALlSamplerStep').indexOf(item.type) === -1) {
|
||||||
isLeaf = false;
|
isLeaf = false;
|
||||||
|
} else if (
|
||||||
|
isLeaf &&
|
||||||
|
item.type === 'ConstantTimer' &&
|
||||||
|
this.stepFilter.get('AllSamplerProxy').indexOf(nodeType) === -1
|
||||||
|
) {
|
||||||
|
isLeaf = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (item.hashTree && item.hashTree.length > 0) {
|
if (item.hashTree && item.hashTree.length > 0) {
|
||||||
this.commandTreeNode(item, item.hashTree);
|
this.commandTreeNode(item, item.hashTree);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -70,7 +70,15 @@ export function STEP() {
|
||||||
['DEFINITION', ['HTTPSamplerProxy', 'DubboSampler', 'JDBCSampler', 'TCPSampler']],
|
['DEFINITION', ['HTTPSamplerProxy', 'DubboSampler', 'JDBCSampler', 'TCPSampler']],
|
||||||
[
|
[
|
||||||
'ALlSamplerStep',
|
'ALlSamplerStep',
|
||||||
['JSR223PreProcessor', 'JSR223PostProcessor', 'JDBCPreProcessor', 'JDBCPostProcessor', 'Assertions', 'Extract'],
|
[
|
||||||
|
'JSR223PreProcessor',
|
||||||
|
'JSR223PostProcessor',
|
||||||
|
'JDBCPreProcessor',
|
||||||
|
'JDBCPostProcessor',
|
||||||
|
'Assertions',
|
||||||
|
'Extract',
|
||||||
|
'ConstantTimer',
|
||||||
|
],
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'AllCanExecType',
|
'AllCanExecType',
|
||||||
|
|
Loading…
Reference in New Issue