From 1688ae8d99094f14e224bef0718cc13bd2e2adea Mon Sep 17 00:00:00 2001 From: "xinxin.wu" Date: Mon, 22 Apr 2024 12:35:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=8A=9F=E8=83=BD=E7=94=A8=E4=BE=8B):=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8A=9F=E8=83=BD=E7=94=A8=E4=BE=8B=E9=83=A8?= =?UTF-8?q?=E5=88=86bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ms-message/MessageCenterDrawer.vue | 8 +++--- .../response/result/index.vue | 16 ++++++------ .../api-test/report/component/reportList.vue | 19 +++++++++++--- .../report/component/step/stepTree.vue | 24 ++++++++++-------- .../views/api-test/scenario/detail/index.vue | 25 +++++++++++++++++++ .../bug-management/components/bugCaseTab.vue | 10 +++++--- .../components/caseTree.vue | 2 +- .../components/recycleCaseTable.vue | 2 +- .../components/tableFilter.vue | 6 ++++- .../caseManagementFeature/index.vue | 2 +- .../taskCenter/component/apiCase.vue | 5 ++++ 11 files changed, 88 insertions(+), 31 deletions(-) diff --git a/frontend/src/components/business/ms-message/MessageCenterDrawer.vue b/frontend/src/components/business/ms-message/MessageCenterDrawer.vue index 349d41fbc7..d531038982 100644 --- a/frontend/src/components/business/ms-message/MessageCenterDrawer.vue +++ b/frontend/src/components/business/ms-message/MessageCenterDrawer.vue @@ -86,7 +86,7 @@ -
+
{{ item.resourceName }}
@@ -112,13 +112,15 @@
-
{{ item.content.split(':')[0] }}:
+
{{ item.content.split(':')[0] }}:
{{ item.resourceName }}
-
+
{{ item.resourceName }}
diff --git a/frontend/src/views/api-test/components/requestComposition/response/result/index.vue b/frontend/src/views/api-test/components/requestComposition/response/result/index.vue index e6f31927fd..033227e50f 100644 --- a/frontend/src/views/api-test/components/requestComposition/response/result/index.vue +++ b/frontend/src/views/api-test/components/requestComposition/response/result/index.vue @@ -97,13 +97,15 @@
- + + +
diff --git a/frontend/src/views/api-test/report/component/reportList.vue b/frontend/src/views/api-test/report/component/reportList.vue index a2635709d6..c7e9e32580 100644 --- a/frontend/src/views/api-test/report/component/reportList.vue +++ b/frontend/src/views/api-test/report/component/reportList.vue @@ -73,7 +73,11 @@ diff --git a/frontend/src/views/api-test/scenario/detail/index.vue b/frontend/src/views/api-test/scenario/detail/index.vue index 38d1b517f7..2d4a9484db 100644 --- a/frontend/src/views/api-test/scenario/detail/index.vue +++ b/frontend/src/views/api-test/scenario/detail/index.vue @@ -88,6 +88,19 @@ v-model:assertion-config="scenario.scenarioConfig.assertionConfig" @change="scenario.unSaved = true" /> + { + return scenario.value.scenarioConfig.assertionConfig.assertions.length > 99 + ? '99+' + : `${scenario.value.scenarioConfig.assertionConfig.assertions.length}` || ''; + }); + const activeKey = ref(ScenarioDetailComposition.STEP); // 前置和后置在一个tab里,isChangePre用于判断当前修改的form是前置还是后置 @@ -354,4 +373,10 @@ .ms-scroll-bar(); } } + :deep(.active-badge) { + .arco-badge-text, + .arco-badge-number { + background-color: rgb(var(--primary-5)); + } + } diff --git a/frontend/src/views/bug-management/components/bugCaseTab.vue b/frontend/src/views/bug-management/components/bugCaseTab.vue index f17d684b03..deebf49722 100644 --- a/frontend/src/views/bug-management/components/bugCaseTab.vue +++ b/frontend/src/views/bug-management/components/bugCaseTab.vue @@ -202,7 +202,7 @@ const associatedIds = ref([]); - const currentSelectCase = ref('FUNCTIONAL'); + const currentSelectCase = ref('API'); const modulesTreeParams = ref({}); @@ -236,8 +236,12 @@ const caseTypeOptions = ref<{ label: string; value: string }[]>([ { - label: 'menu.caseManagement.featureCase', - value: 'FUNCTIONAL', + value: 'API', + label: t('caseManagement.featureCase.apiCase'), + }, + { + value: 'SCENARIO', + label: t('caseManagement.featureCase.sceneCase'), }, ]); diff --git a/frontend/src/views/case-management/caseManagementFeature/components/caseTree.vue b/frontend/src/views/case-management/caseManagementFeature/components/caseTree.vue index fa36fee47f..ad2ba0285b 100644 --- a/frontend/src/views/case-management/caseManagementFeature/components/caseTree.vue +++ b/frontend/src/views/case-management/caseManagementFeature/components/caseTree.vue @@ -357,7 +357,7 @@ }; } return { - height: 'calc(100vh - 294px)', + height: 'calc(100vh - 280px)', threshold: 200, fixedSize: true, buffer: 15, diff --git a/frontend/src/views/case-management/caseManagementFeature/components/recycleCaseTable.vue b/frontend/src/views/case-management/caseManagementFeature/components/recycleCaseTable.vue index db8b0c1320..cc43832b75 100644 --- a/frontend/src/views/case-management/caseManagementFeature/components/recycleCaseTable.vue +++ b/frontend/src/views/case-management/caseManagementFeature/components/recycleCaseTable.vue @@ -36,7 +36,7 @@ :data="caseTree" :keyword="groupKeyword" :expand-all="isExpandAll" - :empty-text="t('caseManagement.featureCase.caseEmptyRecycle')" + :empty-text="t('common.noData')" draggable :virtual-list-props="virtualListProps" block-node diff --git a/frontend/src/views/case-management/caseManagementFeature/components/tableFilter.vue b/frontend/src/views/case-management/caseManagementFeature/components/tableFilter.vue index cdf1722a9a..1ded83da42 100644 --- a/frontend/src/views/case-management/caseManagementFeature/components/tableFilter.vue +++ b/frontend/src/views/case-management/caseManagementFeature/components/tableFilter.vue @@ -21,7 +21,11 @@ :key="item[props.valueKey || 'value']" :value="item[props.valueKey || 'value']" > - +
diff --git a/frontend/src/views/case-management/caseManagementFeature/index.vue b/frontend/src/views/case-management/caseManagementFeature/index.vue index e27ac39ccb..fc897a9cb7 100644 --- a/frontend/src/views/case-management/caseManagementFeature/index.vue +++ b/frontend/src/views/case-management/caseManagementFeature/index.vue @@ -79,7 +79,7 @@
-
+