diff --git a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue
index 3b4470f1de..570028cf85 100644
--- a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue
+++ b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue
@@ -195,9 +195,9 @@
+ @click="openOrClose(node,data)"/>
+ @click="openOrClose(node,data)"/>
v.type !== "Assertions");
+ for (let i = 0; i < data.length; i++) {
+ data[i].index = (i + 1);
+ }
+ }
},
hideNode(node) {
node.isLeaf = true;
@@ -1310,7 +1320,12 @@ export default {
})
}
this.isBtnHide = false;
- this.sort();
+ // 历史数据兼容处理
+ if (this.selectedTreeNode && this.selectedTreeNode.type === 'GenericController') {
+ this.plugnOrder(this.selectedTreeNode);
+ } else {
+ this.sort();
+ }
this.cancelBatchProcessing();
},
setApiParameter(item, refType, referenced) {
@@ -1366,7 +1381,12 @@ export default {
});
this.isBtnHide = false;
this.$refs.scenarioApiRelevance.changeButtonLoadingType();
- this.sort();
+ // 历史数据兼容处理
+ if (this.selectedTreeNode && this.selectedTreeNode.type === 'GenericController') {
+ this.plugnOrder(this.selectedTreeNode);
+ } else {
+ this.sort();
+ }
this.cancelBatchProcessing();
},
getMaintainerOptions() {
diff --git a/frontend/src/business/components/api/automation/scenario/Setting.js b/frontend/src/business/components/api/automation/scenario/Setting.js
index 1f61fa132c..308d2c3f4b 100644
--- a/frontend/src/business/components/api/automation/scenario/Setting.js
+++ b/frontend/src/business/components/api/automation/scenario/Setting.js
@@ -24,7 +24,7 @@ export function STEP() {
['MaxSamplerProxy', getDefaultSamplerMenu()],
['GenericController', getAll()],
['SpecialSteps', ['HTTPSamplerProxy', 'Assertions', 'DubboSampler', 'JDBCSampler', 'TCPSampler', 'Sampler', 'AbstractSampler', 'JSR223Processor', 'API', 'MsUiCommand']],
- ['AllSamplerProxy', ['HTTPSamplerProxy', 'DubboSampler', 'JDBCSampler', 'TCPSampler', 'Sampler', 'AbstractSampler', 'JSR223Processor', 'API', 'MsUiCommand']],
+ ['AllSamplerProxy', ['GenericController','HTTPSamplerProxy', 'DubboSampler', 'JDBCSampler', 'TCPSampler', 'Sampler', 'AbstractSampler', 'JSR223Processor', 'API', 'MsUiCommand']],
['DEFINITION', ['HTTPSamplerProxy', 'DubboSampler', 'JDBCSampler', 'TCPSampler']],
['ALlSamplerStep', ['JSR223PreProcessor', 'JSR223PostProcessor', 'JDBCPreProcessor', 'JDBCPostProcessor', 'Assertions', 'Extract', 'ConstantTimer']],
['AllCanExecType', ['HTTPSamplerProxy', 'DubboSampler', 'JDBCSampler', 'TCPSampler', 'JSR223Processor', 'AbstractSampler']]]);