From abc39884daf1a66f1af454a391b9fd664d5fe870 Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Thu, 17 Jun 2021 18:08:36 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=8E=A5=E5=8F=A3=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96):=20=E5=9C=BA=E6=99=AF=E6=AD=A5=E9=AA=A4=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E7=A6=81=E7=94=A8=E5=85=A8=E9=83=A8/=E5=90=AF?= =?UTF-8?q?=E7=94=A8=E5=85=A8=E9=83=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../automation/scenario/EditApiScenario.vue | 66 +++++++++++++++---- .../scenario/maximize/MaximizeScenario.vue | 55 ++++++++++++++-- 2 files changed, 102 insertions(+), 19 deletions(-) diff --git a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue index bd4b1e965d..c51d0acac5 100644 --- a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue +++ b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue @@ -133,6 +133,9 @@ 共享cookie + + {{ $t('commons.failure_continues') }} + - - {{ $t('commons.failure_continues') }} - {{ $t('api_test.request.debug') }} @@ -160,12 +160,19 @@
- - {{ $t('api_test.automation.open_expansion') }} - - - {{ $t('api_test.automation.close_expansion') }} - + + + + + + + + + + + + + 0) { + this.stepStatus(this.scenarioDefinition[i].hashTree); + } + } + } + }, + stepStatus(nodes) { + for (let i in nodes) { + if (nodes[i]) { + nodes[i].enable = this.stepEnable; + if (nodes[i].hashTree != undefined && nodes[i].hashTree.length > 0) { + this.stepStatus(nodes[i].hashTree); + } + } + } + }, + enableAll() { + this.stepEnable = true; + this.stepNode(); + }, + disableAll() { + this.stepEnable = false; + this.stepNode(); } } } @@ -1377,12 +1414,17 @@ export default { .ms-open-btn { margin: 5px 5px 0px; - font-size: 10px; + color: #6D317C; + font-size: 20px; +} + +.ms-open-btn:hover { background-color: #F2F9EE; + cursor: pointer; color: #67C23A; } .ms-open-btn-left { - margin-left: 30px; + margin-left: 35px; } diff --git a/frontend/src/business/components/api/automation/scenario/maximize/MaximizeScenario.vue b/frontend/src/business/components/api/automation/scenario/maximize/MaximizeScenario.vue index 4f6479fa54..9877657845 100644 --- a/frontend/src/business/components/api/automation/scenario/maximize/MaximizeScenario.vue +++ b/frontend/src/business/components/api/automation/scenario/maximize/MaximizeScenario.vue @@ -5,12 +5,18 @@
- - {{ $t('api_test.automation.open_expansion') }} - - - {{ $t('api_test.automation.close_expansion') }} - + + + + + + + + + + + + 0) { + this.stepStatus(this.scenarioDefinition[i].hashTree); + } + } + } + }, + stepStatus(nodes) { + for (let i in nodes) { + if (nodes[i]) { + nodes[i].enable = this.stepEnable; + if (nodes[i].hashTree != undefined && nodes[i].hashTree.length > 0) { + this.stepStatus(nodes[i].hashTree); + } + } + } + }, + enableAll() { + this.stepEnable = true; + this.stepNode(); + }, + disableAll() { + this.stepEnable = false; + this.stepNode(); } } } @@ -1147,8 +1183,13 @@ export default { .ms-open-btn { margin: 5px 5px 0px; - font-size: 10px; + color: #6D317C; + font-size: 20px; +} + +.ms-open-btn:hover { background-color: #F2F9EE; + cursor: pointer; color: #67C23A; }