fix(接口测试): 场景版本对比缺少步骤标号

--bug=1010210--user=郭雨琦 【ID1010210】【接口测试】github#10414,场景版本对比缺少步骤标号
This commit is contained in:
guoyuqi 2022-02-16 11:53:42 +08:00 committed by xiaomeinvG
parent 9526c87eaf
commit ab9f622870
1 changed files with 6 additions and 2 deletions

View File

@ -1772,6 +1772,9 @@ export default {
if(obj){
if(obj.hashTree){
for (let i = 0; i < obj.hashTree.length; i++) {
if(!obj.hashTree[i].index){
obj.hashTree[i].index = i+1;
}
obj.hashTree[i].disabled = true;
if (!obj.hashTree[i].requestResult) {
obj.hashTree[i].requestResult = [{responseResult: {}}];
@ -1784,7 +1787,7 @@ export default {
this.newOnSampleError = obj.onSampleError;
}
}
this.dataProcessing(obj.hashTree);
this.newScenarioDefinition = obj.hashTree;
for (let i = 0; i < this.oldScenarioDefinition.length; i++) {
this.oldScenarioDefinition[i].disabled = true;
@ -1802,8 +1805,9 @@ export default {
this.oldData = this.currentScenario;
this.newData = res.data;
this.closeExpansion()
this.dialogVisible = true;
}
this.sort();
this.dialogVisible = true;
});
})
},