mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-04 21:19:52 +08:00
fix(测试计划): 测试计划在修改运行配置时,不会影响到其它的测试计划
This commit is contained in:
parent
f9a33bf35d
commit
29ae426d6d
@ -1133,11 +1133,12 @@ export default {
|
|||||||
this.haveOtherExecCase = false;
|
this.haveOtherExecCase = false;
|
||||||
|
|
||||||
this.currentPlanId = row.id;
|
this.currentPlanId = row.id;
|
||||||
|
//组件里的id不会及时变动,会影响到后续的操作,所以需要在下一个tick里执行
|
||||||
|
this.$nextTick(() => {
|
||||||
let haveApiCase = row.testPlanApiCaseCount > 0;
|
let haveApiCase = row.testPlanApiCaseCount > 0;
|
||||||
let haveScenarioCase = row.testPlanApiScenarioCount > 0;
|
let haveScenarioCase = row.testPlanApiScenarioCount > 0;
|
||||||
let haveLoadCase = row.testPlanLoadCaseCount > 0;
|
let haveLoadCase = row.testPlanLoadCaseCount > 0;
|
||||||
this.haveUICase = row.testPlanUiScenarioCount > 0;
|
this.haveUICase = row.testPlanUiScenarioCount > 0;
|
||||||
|
|
||||||
if (!this.haveUICase && !haveApiCase && !haveScenarioCase && haveLoadCase) {
|
if (!this.haveUICase && !haveApiCase && !haveScenarioCase && haveLoadCase) {
|
||||||
//只有性能测试,则直接执行
|
//只有性能测试,则直接执行
|
||||||
this.$refs.runMode.handleCommand("run");
|
this.$refs.runMode.handleCommand("run");
|
||||||
@ -1152,6 +1153,7 @@ export default {
|
|||||||
//没有可执行的资源,则直接跳转到计划里
|
//没有可执行的资源,则直接跳转到计划里
|
||||||
this.$router.push("/track/plan/view/" + row.id);
|
this.$router.push("/track/plan/view/" + row.id);
|
||||||
}
|
}
|
||||||
|
});
|
||||||
},
|
},
|
||||||
_handleRun(config) {
|
_handleRun(config) {
|
||||||
let defaultPlanEnvMap = config.testPlanDefaultEnvMap;
|
let defaultPlanEnvMap = config.testPlanDefaultEnvMap;
|
||||||
|
Loading…
Reference in New Issue
Block a user