From ed657bf914c28ec86a54da18628cbaf340773487 Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Tue, 24 Aug 2021 16:50:52 +0800 Subject: [PATCH] =?UTF-8?q?fix=20(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):?= =?UTF-8?q?=20=E5=8B=BE=E9=80=89=E6=8E=89=E8=B5=84=E6=BA=90=E6=B1=A0?= =?UTF-8?q?=E4=BB=8D=E6=89=A7=E8=A1=8C=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/automation/scenario/common/RunMode.vue | 13 +++++++++++++ .../components/track/plan/common/PlanRunMode.vue | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/frontend/src/business/components/api/automation/scenario/common/RunMode.vue b/frontend/src/business/components/api/automation/scenario/common/RunMode.vue index 5f4c9e996c..f748b545cf 100644 --- a/frontend/src/business/components/api/automation/scenario/common/RunMode.vue +++ b/frontend/src/business/components/api/automation/scenario/common/RunMode.vue @@ -76,6 +76,19 @@ export default { }, }; }, + watch:{ + 'runConfig.runWithinResourcePool'(){ + if(!this.runConfig.runWithinResourcePool){ + this.runConfig = { + mode: this.runConfig.mode, + reportType: "iddReport", + reportName: "", + runWithinResourcePool: false, + resourcePoolId: null, + }; + } + } + }, methods: { open() { this.runModeVisible = true; diff --git a/frontend/src/business/components/track/plan/common/PlanRunMode.vue b/frontend/src/business/components/track/plan/common/PlanRunMode.vue index 410de82f4d..8dbcb24941 100644 --- a/frontend/src/business/components/track/plan/common/PlanRunMode.vue +++ b/frontend/src/business/components/track/plan/common/PlanRunMode.vue @@ -86,6 +86,19 @@ export default { }, }; }, + watch:{ + 'runConfig.runWithinResourcePool'(){ + if(!this.runConfig.runWithinResourcePool){ + this.runConfig = { + mode: this.runConfig.mode, + reportType: "iddReport", + reportName: "", + runWithinResourcePool: false, + resourcePoolId: null, + }; + } + } + }, methods: { open(testType) { this.runModeVisible = true;