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 { ApiCaseDetail, ApiDefinitionDetail } from '@/models/apiTest/management';
|
||||||
import type { ApiScenarioTableItem } from '@/models/apiTest/scenario';
|
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 { ReviewItem } from '@/models/caseManagement/caseReview';
|
||||||
import type { CaseManagementTable } from '@/models/caseManagement/featureCase';
|
import type { CaseManagementTable } from '@/models/caseManagement/featureCase';
|
||||||
import type { CommonList, TableQueryParams } from '@/models/common';
|
import type { CommonList, TableQueryParams } from '@/models/common';
|
||||||
|
@ -24,6 +24,8 @@ import {
|
||||||
WorkApiCountDetailUrl,
|
WorkApiCountDetailUrl,
|
||||||
WorkAssociateCaseDetailUrl,
|
WorkAssociateCaseDetailUrl,
|
||||||
WorkbenchApiCaseListUrl,
|
WorkbenchApiCaseListUrl,
|
||||||
|
WorkbenchBugColumnOptionsUrl,
|
||||||
|
WorkbenchBugCustomFieldUrl,
|
||||||
WorkbenchBugListUrl,
|
WorkbenchBugListUrl,
|
||||||
WorkbenchCaseListUrl,
|
WorkbenchCaseListUrl,
|
||||||
WorkbenchReviewListUrl,
|
WorkbenchReviewListUrl,
|
||||||
|
@ -78,6 +80,16 @@ export function workbenchBugList(data: TableQueryParams) {
|
||||||
return MSR.post<CommonList<BugListItem>>({ url: WorkbenchBugListUrl, data });
|
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) {
|
export function workbenchApiCaseList(data: TableQueryParams) {
|
||||||
return MSR.post<CommonList<ApiCaseDetail>>({ url: WorkbenchApiCaseListUrl, data });
|
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 WorkbenchTestPlanStatisticUrl = '/dashboard/my/plan/statistics'; // 工作台-我的-测试计划统计
|
||||||
export const WorkbenchCaseListUrl = '/dashboard/my/functional/page'; // 工作台-我的-用例列表
|
export const WorkbenchCaseListUrl = '/dashboard/my/functional/page'; // 工作台-我的-用例列表
|
||||||
export const WorkbenchBugListUrl = '/dashboard/my/bug/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 WorkbenchApiCaseListUrl = '/dashboard/my/api/page'; // 工作台-我的-接口用例列表
|
||||||
export const WorkProOverviewDetailUrl = '/dashboard/project_view'; // 工作台首页项目概览
|
export const WorkProOverviewDetailUrl = '/dashboard/project_view'; // 工作台首页项目概览
|
||||||
export const WorkMyCreatedDetailUrl = '/dashboard/create_by_me'; // 工作台我创建的
|
export const WorkMyCreatedDetailUrl = '/dashboard/create_by_me'; // 工作台我创建的
|
||||||
|
|
|
@ -43,8 +43,12 @@
|
||||||
import { MsTableColumn } from '@/components/pure/ms-table/type';
|
import { MsTableColumn } from '@/components/pure/ms-table/type';
|
||||||
import useTable from '@/components/pure/ms-table/useTable';
|
import useTable from '@/components/pure/ms-table/useTable';
|
||||||
|
|
||||||
import { getCustomFieldHeader, getCustomOptionHeader } from '@/api/modules/bug-management';
|
import {
|
||||||
import { workbenchBugList, workbenchTodoBugList } from '@/api/modules/workbench';
|
getCustomFieldHeader,
|
||||||
|
getCustomOptionHeader,
|
||||||
|
workbenchBugList,
|
||||||
|
workbenchTodoBugList,
|
||||||
|
} from '@/api/modules/workbench';
|
||||||
import { useI18n } from '@/hooks/useI18n';
|
import { useI18n } from '@/hooks/useI18n';
|
||||||
import useOpenNewPage from '@/hooks/useOpenNewPage';
|
import useOpenNewPage from '@/hooks/useOpenNewPage';
|
||||||
import useAppStore from '@/store/modules/app';
|
import useAppStore from '@/store/modules/app';
|
||||||
|
|
Loading…
Reference in New Issue