From e901a35105e62189fd1cb5d6026d534d7069c2d6 Mon Sep 17 00:00:00 2001 From: RubyLiu Date: Mon, 26 Jun 2023 19:53:12 +0800 Subject: [PATCH] =?UTF-8?q?style(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=87=AA=E5=8A=A8=E5=8C=96=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../report/components/MetricChart.vue | 2 - .../automation/scenario/EditApiScenario.vue | 155 ++++++++++-------- .../scenario/maximize/MaximizeScenario.vue | 1 + 3 files changed, 90 insertions(+), 68 deletions(-) diff --git a/api-test/frontend/src/business/automation/report/components/MetricChart.vue b/api-test/frontend/src/business/automation/report/components/MetricChart.vue index c953976522..f0f79d310a 100644 --- a/api-test/frontend/src/business/automation/report/components/MetricChart.vue +++ b/api-test/frontend/src/business/automation/report/components/MetricChart.vue @@ -401,8 +401,6 @@ export default { } .metric-icon-box { - text-align: left; - height: 20px; margin: 0 10px; } diff --git a/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue b/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue index 0f1190dae0..95e3192030 100644 --- a/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue +++ b/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue @@ -84,8 +84,8 @@
- - +
+
- - - {{ $t('api_test.automation.step_total') }}:{{ scenarioDefinition.length }} - - - {{ $t('api_test.automation.scenario_total') }} - - :{{ getVariableSize() }} - - - - {{ $t('api_test.scenario.share_cookie') }} - - - - - {{ $t('commons.failure_continues') }} - - - - +
+
+
{{ $t('api_test.automation.step_total') }}:{{ scenarioDefinition.length }}
+
+ {{ $t('api_test.automation.scenario_total') }} + + :{{ getVariableSize() }} +
+
+ + {{ $t('api_test.scenario.share_cookie') }} + +
+
+ + {{ $t('commons.failure_continues') }} + +
+
+
- + class="ml-10" + /> + + + v-permission="['PROJECT_API_SCENARIO:READ+DEBUG', 'PROJECT_API_SCENARIO:READ+RUN']"> {{ $t('api_test.request.debug') }} {{ $t('api_test.automation.generate_report') }} - {{ $t('report.stop_btn') }} + {{ + $t('report.stop_btn') + }} @@ -226,26 +226,30 @@ >{{ $t('operating_log.change_history') }} - - +
+ +
+
+
+
+ class="ms-full-screen"> - +
@@ -1114,7 +1118,7 @@ export default { } }, evaluationParent(node, status) { - if(node.data.code === "ERROR") { + if (node.data.code === 'ERROR') { return; } if (node.data.code === 'FAKE_ERROR') { @@ -1138,7 +1142,7 @@ export default { let id = item.data.id || item.data.resourceId; if (id + '_' + item.data.parentIndex === resourceId) { item.data.testing = false; - item.data.code = status ? "SUCCESS" : "ERROR"; + item.data.code = status ? 'SUCCESS' : 'ERROR'; this.evaluationParent(item.parent, status); } if (item.childNodes && item.childNodes.length > 0) { @@ -1721,7 +1725,7 @@ export default { }); }, runDebug(runScenario) { - if (!hasPermissions('PROJECT_API_SCENARIO:READ+DEBUG','PROJECT_API_SCENARIO:READ+RUN')) { + if (!hasPermissions('PROJECT_API_SCENARIO:READ+DEBUG', 'PROJECT_API_SCENARIO:READ+RUN')) { return; } this.mergeScenario(this.scenarioDefinition); @@ -1803,7 +1807,7 @@ export default { } else { this.debugLoading = false; let hasRequest = runScenario && runScenario.hasRequest; - if (hasRequest && runScenario.hashTree) { + if (hasRequest && runScenario.hashTree) { runScenario.hashTree[0].requestResult = []; runScenario.hashTree[0].testing = false; } @@ -1964,7 +1968,7 @@ export default { return new Promise((resolve) => { const encoder = new TextEncoder(); const bytes = encoder.encode(definition, 'utf-8'); - getApiScenarioEnv(bytes ).then((res) => { + getApiScenarioEnv(bytes).then((res) => { if (res.data && res.data.data) { this.projectIds = new Set(res.data.data.projectIds); this.projectIds.add(this.projectId); @@ -2195,7 +2199,7 @@ export default { this.message = 'stop'; this.debugData = {}; let hasRequest = this.runScenario && this.runScenario.hasRequest; - if (hasRequest && this.runScenario.hashTree) { + if (hasRequest && this.runScenario.hashTree) { this.runScenario.hashTree[0].requestResult = []; this.runScenario.hashTree[0].testing = false; } @@ -2624,7 +2628,7 @@ export default { }; -