From ede0559f5e24f65f76929efcbfcade2fe4d887d4 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Tue, 1 Mar 2022 11:42:16 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):?= =?UTF-8?q?=20=E6=8E=A5=E5=8F=A3=E6=89=B9=E9=87=8F=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E5=90=8E=E5=88=B7=E6=96=B0=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/automation/scenario/ApiScenarioList.vue | 14 +++++++++++--- .../api/automation/scenario/common/RunMode.vue | 2 ++ .../components/list/ApiCaseRunModeWithEnv.vue | 2 ++ .../components/list/ApiCaseSimpleList.vue | 6 +++++- .../track/plan/common/PlanRunModeWithEnv.vue | 2 ++ .../view/comonents/api/TestPlanApiCaseList.vue | 7 ++++++- .../view/comonents/api/TestPlanApiScenarioList.vue | 8 +++++++- 7 files changed, 35 insertions(+), 6 deletions(-) diff --git a/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue b/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue index b620ef1e09..cc9e85de45 100644 --- a/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue +++ b/frontend/src/business/components/api/automation/scenario/ApiScenarioList.vue @@ -286,11 +286,19 @@ - - + + :run-data="debugData" + @runRefresh="runRefresh" + ref="runTest"/> 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 94d1cd3403..65bcd64c6a 100644 --- a/frontend/src/business/components/api/automation/scenario/common/RunMode.vue +++ b/frontend/src/business/components/api/automation/scenario/common/RunMode.vue @@ -3,6 +3,7 @@ destroy-on-close :title="$t('load_test.runtime_config')" width="550px" + @close="close" :visible.sync="runModeVisible" >
@@ -145,6 +146,7 @@ export default { resourcePoolId: null, }; this.runModeVisible = false; + this.$emit('close'); }, getWsProjects() { this.$get("/project/listAll", res => { diff --git a/frontend/src/business/components/api/definition/components/list/ApiCaseRunModeWithEnv.vue b/frontend/src/business/components/api/definition/components/list/ApiCaseRunModeWithEnv.vue index 86f01cb13c..27c3b4697a 100644 --- a/frontend/src/business/components/api/definition/components/list/ApiCaseRunModeWithEnv.vue +++ b/frontend/src/business/components/api/definition/components/list/ApiCaseRunModeWithEnv.vue @@ -3,6 +3,7 @@ destroy-on-close :title="$t('load_test.runtime_config')" width="550px" + @close="close" :visible.sync="runModeVisible" >
@@ -129,6 +130,7 @@ export default { environmentType: ENV_TYPE.JSON }; this.runModeVisible = false; + this.$emit('close'); }, handleRunBatch() { this.$emit("handleRunBatch", this.runConfig); diff --git a/frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue b/frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue index bd441c9277..ccb99a0254 100644 --- a/frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue +++ b/frontend/src/business/components/api/definition/components/list/ApiCaseSimpleList.vue @@ -227,7 +227,11 @@ - + diff --git a/frontend/src/business/components/track/plan/common/PlanRunModeWithEnv.vue b/frontend/src/business/components/track/plan/common/PlanRunModeWithEnv.vue index eb7616e5e1..e3f45be577 100644 --- a/frontend/src/business/components/track/plan/common/PlanRunModeWithEnv.vue +++ b/frontend/src/business/components/track/plan/common/PlanRunModeWithEnv.vue @@ -3,6 +3,7 @@ destroy-on-close :title="$t('load_test.runtime_config')" width="550px" + @close="close" :visible.sync="runModeVisible" >
@@ -133,6 +134,7 @@ export default { environmentType: ENV_TYPE.JSON }; this.runModeVisible = false; + this.$emit('close'); }, handleRunBatch() { this.$emit("handleRunBatch", this.runConfig); diff --git a/frontend/src/business/components/track/plan/view/comonents/api/TestPlanApiCaseList.vue b/frontend/src/business/components/track/plan/view/comonents/api/TestPlanApiCaseList.vue index 7cb86c28bf..341ec979a7 100644 --- a/frontend/src/business/components/track/plan/view/comonents/api/TestPlanApiCaseList.vue +++ b/frontend/src/business/components/track/plan/view/comonents/api/TestPlanApiCaseList.vue @@ -163,7 +163,12 @@ - +
diff --git a/frontend/src/business/components/track/plan/view/comonents/api/TestPlanApiScenarioList.vue b/frontend/src/business/components/track/plan/view/comonents/api/TestPlanApiScenarioList.vue index 7a3c980215..5c463d228a 100644 --- a/frontend/src/business/components/track/plan/view/comonents/api/TestPlanApiScenarioList.vue +++ b/frontend/src/business/components/track/plan/view/comonents/api/TestPlanApiScenarioList.vue @@ -184,7 +184,13 @@ - + +