diff --git a/test-track/frontend/src/api/testCase.js b/test-track/frontend/src/api/testCase.js index 57cc67377e..a954ff06eb 100644 --- a/test-track/frontend/src/api/testCase.js +++ b/test-track/frontend/src/api/testCase.js @@ -82,6 +82,10 @@ export function testCasePublicBatchDeleteToGc(param) { return post(BASE_URL + 'batch/movePublic/deleteToGc', param); } +export function testCaseBatchRelateDemand(param) { + return post(BASE_URL + 'batch/relate/demand', param); +} + export function getTestCaseFollow(id) { return get(BASE_URL + `follow/${id}`); } diff --git a/test-track/frontend/src/business/case/components/TestCaseList.vue b/test-track/frontend/src/business/case/components/TestCaseList.vue index 0e4acebd79..baa9458cf9 100644 --- a/test-track/frontend/src/business/case/components/TestCaseList.vue +++ b/test-track/frontend/src/business/case/components/TestCaseList.vue @@ -246,9 +246,9 @@ import { getTestCaseStep, getTestCaseVersions, testCaseBatchCopy, testCaseBatchDelete, - testCaseBatchDeleteToGc, testCaseBatchEdit, + testCaseBatchDeleteToGc, testCaseBatchEdit, testCaseBatchRelateDemand, testCaseDelete, - testCaseDeleteToGc, testCaseList, testCasePublicBatchDeleteToGc, + testCaseDeleteToGc, testCaseList, testCaseReduction } from "@/api/testCase"; import {getGraphByCondition} from "@/api/graph"; @@ -993,7 +993,7 @@ export default { param.condition = this.condition; param.demandId = form.demandId; param.demandName = form.demandName; - testCasePublicBatchDeleteToGc(param) + testCaseBatchRelateDemand(param) .then(() => { this.$success(this.$t('commons.save_success')); this.refresh();