refactor(接口测试): 场景步骤排序顺序优化

This commit is contained in:
fit2-zhao 2022-03-24 14:28:39 +08:00 committed by fit2-zhao
parent 7f6fefeea2
commit 0b97f4fc78
1 changed files with 6 additions and 9 deletions

View File

@ -1571,6 +1571,8 @@ export default {
this.scenarioDefinition = obj.hashTree;
}
}
this.loading = false;
if (this.currentScenario.copy) {
this.path = "/api/automation/create";
}
@ -1584,11 +1586,10 @@ export default {
}
});
}
this.loading = false;
// resourceId
if (this.scenarioDefinition) {
this.resetResourceId(this.scenarioDefinition);
}
this.sort();
this.$nextTick(() => {
this.cancelBatchProcessing();
});
//
let v1 = {
apiScenarioModuleId: this.currentScenario.apiScenarioModuleId,
@ -1603,10 +1604,6 @@ export default {
this.currentScenario.scenarioDefinitionOrg = v1;
this.currentScenario.scenarioDefinition = this.scenarioDefinition;
this.$nextTick(() => {
this.sort();
this.cancelBatchProcessing();
});
})
}
},