From dffac08451214056fa032db1598c738a4cec2df4 Mon Sep 17 00:00:00 2001 From: "xinxin.wu" Date: Thu, 11 Apr 2024 16:27:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E9=A1=B9=E7=9B=AE=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=8E=AF=E5=A2=83=E7=AE=A1=E7=90=86tab?= =?UTF-8?q?=E5=B1=95=E7=A4=BAbug&=E6=8A=A5=E5=91=8Abug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/pure/ms-table/base-table.vue | 2 +- frontend/src/enums/envEnum.ts | 12 +++ .../report/component/step/stepTree.vue | 4 +- .../report/component/stepProgress.vue | 4 +- .../views/api-test/scenario/create/index.vue | 31 +++++-- .../environmental/components/EnvParamBox.vue | 90 +++++++++++-------- .../components/common/TabSettingDrawer.vue | 2 +- .../components/envParams/preAndPost.vue | 17 ++-- .../environmental/locale/en-US.ts | 3 + .../environmental/locale/zh-CN.ts | 2 + .../taskCenter/component/apiCase.vue | 3 +- .../taskCenter/component/scheduledTask.vue | 1 + 12 files changed, 115 insertions(+), 56 deletions(-) diff --git a/frontend/src/components/pure/ms-table/base-table.vue b/frontend/src/components/pure/ms-table/base-table.vue index c7d97b967e..acac20e6d1 100644 --- a/frontend/src/components/pure/ms-table/base-table.vue +++ b/frontend/src/components/pure/ms-table/base-table.vue @@ -51,7 +51,7 @@ v-model:model-value="record.tableChecked" @change="(val) => handleRadioChange(val as boolean, record)" /> -
+
0; + return item.children && item.children.length > 0 && item.status && item.status !== 'PENDING'; } function handleStop(event: Event, step: ScenarioItemType) { diff --git a/frontend/src/views/api-test/report/component/stepProgress.vue b/frontend/src/views/api-test/report/component/stepProgress.vue index a914554eed..17e138bc50 100644 --- a/frontend/src/views/api-test/report/component/stepProgress.vue +++ b/frontend/src/views/api-test/report/component/stepProgress.vue @@ -89,11 +89,11 @@ color: 'rgb(var(--success-6))', }, { - percentage: (props.reportDetail.stepFakeErrorCount / getCountTotal.value) * 100, + percentage: (props.reportDetail.stepErrorCount / getCountTotal.value) * 100, color: 'rgb(var(--danger-6))', }, { - percentage: (props.reportDetail.stepErrorCount / getCountTotal.value) * 100, + percentage: (props.reportDetail.stepFakeErrorCount / getCountTotal.value) * 100, color: 'rgb(var(--warning-6))', }, { diff --git a/frontend/src/views/api-test/scenario/create/index.vue b/frontend/src/views/api-test/scenario/create/index.vue index c7d9eba1d3..053dbfd0ac 100644 --- a/frontend/src/views/api-test/scenario/create/index.vue +++ b/frontend/src/views/api-test/scenario/create/index.vue @@ -35,15 +35,24 @@ v-model:pre-processor-config="scenario.scenarioConfig.preProcessorConfig" /> - + + { + return scenario.value.scenarioConfig.assertionConfig.assertions.length > 99 + ? '99+' + : `${scenario.value.scenarioConfig.assertionConfig.assertions.length}` || ''; + }); + defineExpose({ validScenarioForm, }); @@ -182,4 +197,10 @@ padding: 8px 16px; } } + :deep(.active-badge) { + .arco-badge-text, + .arco-badge-number { + background-color: rgb(var(--primary-5)); + } + } diff --git a/frontend/src/views/project-management/environmental/components/EnvParamBox.vue b/frontend/src/views/project-management/environmental/components/EnvParamBox.vue index 7015a3eb0b..e8f01fed88 100644 --- a/frontend/src/views/project-management/environmental/components/EnvParamBox.vue +++ b/frontend/src/views/project-management/environmental/components/EnvParamBox.vue @@ -32,30 +32,27 @@ /> - - - - - + -
- - - - - -
+ + + + +
- +