fix(测试计划): 关联其他项目接口失败

--bug=1009128 --user=lyh 【测试跟踪】测试计划,关联其他项目接口失败
https://www.tapd.cn/55049933/s/1085215
This commit is contained in:
shiziyuan9527 2021-12-22 16:23:27 +08:00 committed by shiziyuan9527
parent 0f581b9625
commit aa7a4c03e0
3 changed files with 4 additions and 4 deletions

View File

@ -148,7 +148,7 @@
},
getConditions() {
let sampleSelectRows = this.selectRows;
let param = buildBatchParam(this);
let param = buildBatchParam(this, undefined, this.projectId);
param.ids = Array.from(sampleSelectRows).map(row => row.id);
return param;
},

View File

@ -282,7 +282,7 @@ export default {
},
getConditions() {
let sampleSelectRows = this.$refs.table.getSelectRows();
let batchParam = buildBatchParam(this);
let batchParam = buildBatchParam(this, undefined, this.projectId);
let param = {};
if (batchParam.condition) {
param = batchParam.condition;

View File

@ -191,14 +191,14 @@ export function getLabel(vueObj, type) {
}
export function buildBatchParam(vueObj, selectIds) {
export function buildBatchParam(vueObj, selectIds, projectId) {
let param = {};
if (vueObj.selectRows) {
param.ids = selectIds ? selectIds: Array.from(vueObj.selectRows).map(row => row.id);
} else {
param.ids = selectIds;
}
param.projectId = getCurrentProjectID();
param.projectId = projectId ? projectId : getCurrentProjectID();
param.condition = vueObj.condition;
return param;
}