feat(工作台): 缺陷列表接口调整
This commit is contained in:
parent
0731311e54
commit
a6de9d2b4c
|
@ -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<CommonList<BugListItem>>({ url: WorkbenchBugListUrl, data });
|
||||
}
|
||||
|
||||
// 我的-缺陷列表-自定义字段
|
||||
export function getCustomFieldHeader(projectId: string) {
|
||||
return MSR.get({ url: `${WorkbenchBugCustomFieldUrl}${projectId}` });
|
||||
}
|
||||
|
||||
// 我的-缺陷列表-表格筛选字段的数据查询
|
||||
export function getCustomOptionHeader(projectId: string) {
|
||||
return MSR.get<BugOptionListItem>({ url: `${WorkbenchBugColumnOptionsUrl}${projectId}` });
|
||||
}
|
||||
|
||||
// 我的-接口用例列表
|
||||
export function workbenchApiCaseList(data: TableQueryParams) {
|
||||
return MSR.post<CommonList<ApiCaseDetail>>({ url: WorkbenchApiCaseListUrl, data });
|
||||
|
|
|
@ -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'; // 工作台我创建的
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue