fix(测试计划): 测试计划在修改运行配置时,不会影响到其它的测试计划

This commit is contained in:
song-tianyang 2024-02-07 13:24:15 +08:00 committed by 建国
parent f9a33bf35d
commit 29ae426d6d

View File

@ -1133,11 +1133,12 @@ export default {
this.haveOtherExecCase = false; this.haveOtherExecCase = false;
this.currentPlanId = row.id; this.currentPlanId = row.id;
//idtick
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;