{{ t('testPlan.featureCase.startExecution') }}
diff --git a/frontend/src/views/test-plan/testPlan/detail/index.vue b/frontend/src/views/test-plan/testPlan/detail/index.vue
index 761884fd1f..088e3853ac 100644
--- a/frontend/src/views/test-plan/testPlan/detail/index.vue
+++ b/frontend/src/views/test-plan/testPlan/detail/index.vue
@@ -82,9 +82,13 @@
-
-
-
+
@@ -112,6 +116,7 @@
import MsButton from '@/components/pure/ms-button/index.vue';
import MsCard from '@/components/pure/ms-card/index.vue';
import MsIcon from '@/components/pure/ms-icon-font/index.vue';
+ import MsTab from '@/components/pure/ms-tab/index.vue';
import MsTableMoreAction from '@/components/pure/ms-table-more-action/index.vue';
import { ActionsItem } from '@/components/pure/ms-table-more-action/types';
import MsStatusTag from '@/components/business/ms-status-tag/index.vue';
@@ -209,6 +214,16 @@
return fullActions.filter((e) => e.eventTag !== 'archive');
});
+ function getTabBadge(tabKey: string) {
+ switch (tabKey) {
+ case 'featureCase':
+ const count = detail.value.functionalCaseCount ?? 0;
+ return `${count > 0 ? count : ''}`;
+ default:
+ return '';
+ }
+ }
+
function archiveHandler() {
openModal({
type: 'warning',
@@ -264,8 +279,8 @@
const activeTab = ref('featureCase');
const tabList = ref([
{
- key: 'featureCase',
- title: t('menu.caseManagement.featureCase'),
+ value: 'featureCase',
+ label: t('menu.caseManagement.featureCase'),
},
// TODO 先不上
// {
diff --git a/frontend/src/views/test-plan/testPlan/index.vue b/frontend/src/views/test-plan/testPlan/index.vue
index b9bfa79e64..852bd542f3 100644
--- a/frontend/src/views/test-plan/testPlan/index.vue
+++ b/frontend/src/views/test-plan/testPlan/index.vue
@@ -9,22 +9,14 @@
:placeholder="t('caseManagement.featureCase.searchTip')"
allow-clear
/>
-
{{ t('common.newCreate') }}
-
-
-
-
-
- {{ t('testPlan.testPlanIndex.newCreatePlanGroup') }}
-
-
-
+