From 413241a688cf359f261ca67e8059bd46827e845f Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Tue, 12 Jan 2021 17:31:29 +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=E4=BF=AE=E6=94=B9=E7=A7=BB=E5=8A=A8=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/automation/scenario/ApiComponent.vue | 5 +- .../api/automation/scenario/ConstantTimer.vue | 1 + .../api/automation/scenario/IfController.vue | 5 +- .../automation/scenario/Jsr233Processor.vue | 1 + .../automation/scenario/LoopController.vue | 7 ++- .../scenario/common/ApiBaseComponent.vue | 5 +- .../components/assertion/ApiAssertions.vue | 59 +++---------------- 7 files changed, 22 insertions(+), 61 deletions(-) diff --git a/frontend/src/business/components/api/automation/scenario/ApiComponent.vue b/frontend/src/business/components/api/automation/scenario/ApiComponent.vue index 8d7398f022..e87dd27e10 100644 --- a/frontend/src/business/components/api/automation/scenario/ApiComponent.vue +++ b/frontend/src/business/components/api/automation/scenario/ApiComponent.vue @@ -4,6 +4,7 @@ @copy="copyRow" @remove="remove" :data="request" + :draggable="true" :color="displayColor.color" :background-color="displayColor.backgroundColor" :title="displayTitle"> @@ -12,7 +13,7 @@ - {{request.name}} @@ -48,7 +49,7 @@

{{$t('api_test.definition.request.res_param')}}

- + diff --git a/frontend/src/business/components/api/automation/scenario/ConstantTimer.vue b/frontend/src/business/components/api/automation/scenario/ConstantTimer.vue index 9e4f542f24..b37e5f86e4 100644 --- a/frontend/src/business/components/api/automation/scenario/ConstantTimer.vue +++ b/frontend/src/business/components/api/automation/scenario/ConstantTimer.vue @@ -3,6 +3,7 @@ @copy="copyRow" @remove="remove" :data="timer" + :draggable="true" :show-collapse="false" color="#67C23A" background-color="#F2F9EE" diff --git a/frontend/src/business/components/api/automation/scenario/IfController.vue b/frontend/src/business/components/api/automation/scenario/IfController.vue index d7337e9bb3..bf1b2419e3 100644 --- a/frontend/src/business/components/api/automation/scenario/IfController.vue +++ b/frontend/src/business/components/api/automation/scenario/IfController.vue @@ -4,20 +4,21 @@ @remove="remove" :data="controller" :show-collapse="false" + :draggable="true" color="#E6A23C" background-color="#FCF6EE" :title="$t('api_test.automation.if_controller')"> diff --git a/frontend/src/business/components/api/automation/scenario/Jsr233Processor.vue b/frontend/src/business/components/api/automation/scenario/Jsr233Processor.vue index a45ae7544b..b2aeec6508 100644 --- a/frontend/src/business/components/api/automation/scenario/Jsr233Processor.vue +++ b/frontend/src/business/components/api/automation/scenario/Jsr233Processor.vue @@ -3,6 +3,7 @@ @copy="copyRow" @remove="remove" :data="jsr223ProcessorData" + :draggable="true" color="#B8741A" background-color="#F9F1EA" :title="title"> diff --git a/frontend/src/business/components/api/automation/scenario/LoopController.vue b/frontend/src/business/components/api/automation/scenario/LoopController.vue index 6b6338b235..08a84e1fda 100644 --- a/frontend/src/business/components/api/automation/scenario/LoopController.vue +++ b/frontend/src/business/components/api/automation/scenario/LoopController.vue @@ -4,6 +4,7 @@ @copy="copyRow" @remove="remove" :data="controller" + :draggable="true" color="#015478" background-color="#E6EEF2" :title="$t('api_test.automation.loop_controller')"> @@ -15,7 +16,7 @@ -
+
{{$t('loop.loops')}} @@ -34,7 +35,7 @@
-
+
@@ -52,7 +53,7 @@
-
+
- {{data.name}} @@ -29,7 +29,7 @@
-
+
@@ -46,6 +46,7 @@ } }, props: { + draggable: Boolean, data: { type: Object, default() { diff --git a/frontend/src/business/components/api/definition/components/assertion/ApiAssertions.vue b/frontend/src/business/components/api/definition/components/assertion/ApiAssertions.vue index df340cdba6..cbc44437fb 100644 --- a/frontend/src/business/components/api/definition/components/assertion/ApiAssertions.vue +++ b/frontend/src/business/components/api/definition/components/assertion/ApiAssertions.vue @@ -5,52 +5,12 @@ @remove="remove" @active="active" :data="assertions" + :draggable="draggable" color="#A30014" background-color="#F7E6E9" :title="$t('api_test.definition.request.assertions_rule')"> - -
- - - - -
-
- - -
-
- - - - - - - - - - - - - - - - - - {{ $t('api_test.request.assertions.add') }} - - - -
-
+
@@ -215,5 +171,4 @@ /deep/ .el-card__body { padding: 15px; } -