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