refactor(接口测试): 场景步骤排序顺序优化
This commit is contained in:
parent
7f6fefeea2
commit
0b97f4fc78
|
@ -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();
|
|
||||||
});
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue