fix(测试计划): 关联其他项目接口失败
--bug=1009128 --user=lyh 【测试跟踪】测试计划,关联其他项目接口失败 https://www.tapd.cn/55049933/s/1085215
This commit is contained in:
parent
0f581b9625
commit
aa7a4c03e0
|
@ -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;
|
||||
},
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue