fix(测试计划): 更换关联用例接口

This commit is contained in:
teukkk 2024-05-17 18:23:30 +08:00 committed by 刘瑞斌
parent 44a071ab37
commit 761bbfc82b
3 changed files with 11 additions and 3 deletions

View File

@ -25,6 +25,7 @@ import {
GetFeatureCaseModuleUrl,
GetPlanDetailFeatureCaseListUrl,
getStatisticalCountUrl,
GetTestPlanCaseListUrl,
GetTestPlanDetailUrl,
GetTestPlanListUrl,
GetTestPlanModuleCountUrl,
@ -43,7 +44,7 @@ import {
} from '@/api/requrls/test-plan/testPlan';
import { ReviewUserItem } from '@/models/caseManagement/caseReview';
import type { CreateOrUpdateModule, UpdateModule } from '@/models/caseManagement/featureCase';
import type { CaseManagementTable, CreateOrUpdateModule, UpdateModule } from '@/models/caseManagement/featureCase';
import type { CommonList, MoveModules, TableQueryParams } from '@/models/common';
import { ModuleTreeNode } from '@/models/common';
import type {
@ -113,6 +114,10 @@ export function getTestPlanList(data: TableQueryParams) {
export function addTestPlan(data: AddTestPlanParams) {
return MSR.post({ url: AddTestPlanUrl, data });
}
// 功能用例列表
export function getTestPlanCaseList(data: TableQueryParams) {
return MSR.post<CommonList<CaseManagementTable>>({ url: GetTestPlanCaseListUrl, data });
}
// 创建测试计划
export function copyTestPlan(data: AddTestPlanParams) {
return MSR.post({ url: copyTestPlanUrl, data });

View File

@ -14,6 +14,8 @@ export const GetTestPlanModuleCountUrl = '/test-plan/module/count';
export const GetTestPlanListUrl = '/test-plan/page';
// 创建测试计划
export const AddTestPlanUrl = '/test-plan/add';
// 功能用例列表
export const GetTestPlanCaseListUrl = '/test-plan/association/page';
// 获取测试计划详情
export const GetTestPlanDetailUrl = '/test-plan';
// 更新测试计划

View File

@ -3,7 +3,7 @@
v-model:visible="innerVisible"
v-model:currentSelectCase="currentSelectCase"
:get-modules-func="getCaseModuleTree"
:get-table-func="getCaseList"
:get-table-func="getTestPlanCaseList"
:confirm-loading="confirmLoading"
:associated-ids="props.hasNotAssociatedIds || []"
:project-id="currentProjectId"
@ -23,7 +23,8 @@
import MsCaseAssociate from '@/components/business/ms-case-associate/index.vue';
import { RequestModuleEnum } from '@/components/business/ms-case-associate/utils';
import { getCaseList, getCaseModuleTree } from '@/api/modules/case-management/featureCase';
import { getCaseModuleTree } from '@/api/modules/case-management/featureCase';
import { getTestPlanCaseList } from '@/api/modules/test-plan/testPlan';
import { useI18n } from '@/hooks/useI18n';
import useAppStore from '@/store/modules/app';