diff --git a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue index b5f4e05cf4..3339790300 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; }