From 681a02b9527b0449c3ee07cc452e0b4a724d5a74 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Fri, 26 Nov 2021 12:33:12 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96):=20=E5=9F=9F=E5=90=8D=E6=A0=B9=E6=8D=AE=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E5=88=87=E6=8D=A2=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../automation/scenario/EditApiScenario.vue | 4 +- .../scenario/common/CustomizeReqInfo.vue | 5 ++- .../scenario/component/ApiComponent.vue | 5 ++- .../component/ApiScenarioComponent.vue | 41 ++++++++++--------- .../scenario/component/ComponentConfig.vue | 7 +++- 5 files changed, 38 insertions(+), 24 deletions(-) diff --git a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue index 3f83d27b68..a7494a148b 100644 --- a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue +++ b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue @@ -205,12 +205,14 @@ :project-list="projectList" :env-map="projectEnvMap" :env-group-id="envGroupId" + :environment-type="environmentType" @remove="remove" @copyRow="copyRow" @suggestClick="suggestClick" @refReload="refReload" @runScenario="runDebug" @stopScenario="stop" + @setDomain="setDomain" @openScenario="openScenario"/> @@ -528,7 +530,7 @@ export default { currentUser: () => { return getCurrentUser(); }, - setDomain(flag) { + setDomain() { if (this.projectEnvMap && this.projectEnvMap.size > 0) { let scenario = { id: this.currentScenario.id, diff --git a/frontend/src/business/components/api/automation/scenario/common/CustomizeReqInfo.vue b/frontend/src/business/components/api/automation/scenario/common/CustomizeReqInfo.vue index 24259f12a2..b4a45b1bfd 100644 --- a/frontend/src/business/components/api/automation/scenario/common/CustomizeReqInfo.vue +++ b/frontend/src/business/components/api/automation/scenario/common/CustomizeReqInfo.vue @@ -9,7 +9,7 @@ - + {{ $t('api_test.request.refer_to_environment') }} @@ -123,6 +123,9 @@ export default { this.$error(this.$t('api_test.request.url_invalid'), 2000); } }, + setDomain() { + this.$emit("setDomain"); + } } } diff --git a/frontend/src/business/components/api/automation/scenario/component/ApiComponent.vue b/frontend/src/business/components/api/automation/scenario/component/ApiComponent.vue index 31c3140d60..6fcba534c1 100644 --- a/frontend/src/business/components/api/automation/scenario/component/ApiComponent.vue +++ b/frontend/src/business/components/api/automation/scenario/component/ApiComponent.vue @@ -52,7 +52,7 @@