fix(测试跟踪): 批量关联需求失效

--bug=1020032 --user=陈建星 【测试跟踪】上传jira插件-测试用例-批量关联jira需求-提示关联成功,实际没关联 https://www.tapd.cn/55049933/s/1312398
This commit is contained in:
chenjianxing 2022-12-05 14:00:08 +08:00 committed by jianxing
parent 9f1a613b75
commit 7619abb71d
2 changed files with 7 additions and 3 deletions

View File

@ -82,6 +82,10 @@ export function testCasePublicBatchDeleteToGc(param) {
return post(BASE_URL + 'batch/movePublic/deleteToGc', 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) { export function getTestCaseFollow(id) {
return get(BASE_URL + `follow/${id}`); return get(BASE_URL + `follow/${id}`);
} }

View File

@ -246,9 +246,9 @@ import {
getTestCaseStep, getTestCaseStep,
getTestCaseVersions, testCaseBatchCopy, getTestCaseVersions, testCaseBatchCopy,
testCaseBatchDelete, testCaseBatchDelete,
testCaseBatchDeleteToGc, testCaseBatchEdit, testCaseBatchDeleteToGc, testCaseBatchEdit, testCaseBatchRelateDemand,
testCaseDelete, testCaseDelete,
testCaseDeleteToGc, testCaseList, testCasePublicBatchDeleteToGc, testCaseDeleteToGc, testCaseList,
testCaseReduction testCaseReduction
} from "@/api/testCase"; } from "@/api/testCase";
import {getGraphByCondition} from "@/api/graph"; import {getGraphByCondition} from "@/api/graph";
@ -993,7 +993,7 @@ export default {
param.condition = this.condition; param.condition = this.condition;
param.demandId = form.demandId; param.demandId = form.demandId;
param.demandName = form.demandName; param.demandName = form.demandName;
testCasePublicBatchDeleteToGc(param) testCaseBatchRelateDemand(param)
.then(() => { .then(() => {
this.$success(this.$t('commons.save_success')); this.$success(this.$t('commons.save_success'));
this.refresh(); this.refresh();