diff --git a/frontend/src/api/modules/workbench.ts b/frontend/src/api/modules/workbench.ts index dcb4767cea..02a63f42b1 100644 --- a/frontend/src/api/modules/workbench.ts +++ b/frontend/src/api/modules/workbench.ts @@ -2,7 +2,7 @@ import MSR from '@/api/http/index'; import type { ApiCaseDetail, ApiDefinitionDetail } from '@/models/apiTest/management'; import type { ApiScenarioTableItem } from '@/models/apiTest/scenario'; -import type { BugListItem } from '@/models/bug-management'; +import type { BugListItem, BugOptionListItem } from '@/models/bug-management'; import type { ReviewItem } from '@/models/caseManagement/caseReview'; import type { CaseManagementTable } from '@/models/caseManagement/featureCase'; import type { CommonList, TableQueryParams } from '@/models/common'; @@ -24,6 +24,8 @@ import { WorkApiCountDetailUrl, WorkAssociateCaseDetailUrl, WorkbenchApiCaseListUrl, + WorkbenchBugColumnOptionsUrl, + WorkbenchBugCustomFieldUrl, WorkbenchBugListUrl, WorkbenchCaseListUrl, WorkbenchReviewListUrl, @@ -78,6 +80,16 @@ export function workbenchBugList(data: TableQueryParams) { return MSR.post>({ url: WorkbenchBugListUrl, data }); } +// 我的-缺陷列表-自定义字段 +export function getCustomFieldHeader(projectId: string) { + return MSR.get({ url: `${WorkbenchBugCustomFieldUrl}${projectId}` }); +} + +// 我的-缺陷列表-表格筛选字段的数据查询 +export function getCustomOptionHeader(projectId: string) { + return MSR.get({ url: `${WorkbenchBugColumnOptionsUrl}${projectId}` }); +} + // 我的-接口用例列表 export function workbenchApiCaseList(data: TableQueryParams) { return MSR.post>({ url: WorkbenchApiCaseListUrl, data }); diff --git a/frontend/src/api/requrls/workbench.ts b/frontend/src/api/requrls/workbench.ts index 71e5b1f482..508b3646f1 100644 --- a/frontend/src/api/requrls/workbench.ts +++ b/frontend/src/api/requrls/workbench.ts @@ -4,6 +4,8 @@ export const WorkbenchTestPlanListUrl = '/dashboard/my/plan/page'; // 工作台- export const WorkbenchTestPlanStatisticUrl = '/dashboard/my/plan/statistics'; // 工作台-我的-测试计划统计 export const WorkbenchCaseListUrl = '/dashboard/my/functional/page'; // 工作台-我的-用例列表 export const WorkbenchBugListUrl = '/dashboard/my/bug/page'; // 工作台-我的-缺陷列表 +export const WorkbenchBugCustomFieldUrl = '/dashboard/header/custom-field'; // 工作台-我的-缺陷列表-自定义字段 +export const WorkbenchBugColumnOptionsUrl = '/dashboard/header/columns-option'; // 工作台-我的-缺陷列表-列选项 export const WorkbenchApiCaseListUrl = '/dashboard/my/api/page'; // 工作台-我的-接口用例列表 export const WorkProOverviewDetailUrl = '/dashboard/project_view'; // 工作台首页项目概览 export const WorkMyCreatedDetailUrl = '/dashboard/create_by_me'; // 工作台我创建的 diff --git a/frontend/src/views/workbench/components/bugTable.vue b/frontend/src/views/workbench/components/bugTable.vue index 3804e96622..ffceccddb8 100644 --- a/frontend/src/views/workbench/components/bugTable.vue +++ b/frontend/src/views/workbench/components/bugTable.vue @@ -43,8 +43,12 @@ import { MsTableColumn } from '@/components/pure/ms-table/type'; import useTable from '@/components/pure/ms-table/useTable'; - import { getCustomFieldHeader, getCustomOptionHeader } from '@/api/modules/bug-management'; - import { workbenchBugList, workbenchTodoBugList } from '@/api/modules/workbench'; + import { + getCustomFieldHeader, + getCustomOptionHeader, + workbenchBugList, + workbenchTodoBugList, + } from '@/api/modules/workbench'; import { useI18n } from '@/hooks/useI18n'; import useOpenNewPage from '@/hooks/useOpenNewPage'; import useAppStore from '@/store/modules/app';