fix(测试计划): 关联dubbo接口用例时提示选择运行环境
--bug=1009972 --user=lyh 【测试计划】-关联dubbo接口用例时提示选择运行环境 https://www.tapd.cn/55049933/s/1106951
This commit is contained in:
parent
0506d4e5ea
commit
bbd220b8fd
|
@ -175,7 +175,8 @@
|
||||||
url = '/api/definition/relevance';
|
url = '/api/definition/relevance';
|
||||||
environmentId = this.$refs.apiList.environmentId;
|
environmentId = this.$refs.apiList.environmentId;
|
||||||
selectIds = Array.from(apis).map(row => row.id);
|
selectIds = Array.from(apis).map(row => row.id);
|
||||||
this.postRelevance(url, environmentId, selectIds);
|
let protocol = this.$refs.apiList.currentProtocol;
|
||||||
|
this.postRelevance(url, environmentId, selectIds, protocol);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
let params = this.$refs.apiCaseList.getConditions();
|
let params = this.$refs.apiCaseList.getConditions();
|
||||||
|
@ -184,17 +185,20 @@
|
||||||
url = '/api/testcase/relevance';
|
url = '/api/testcase/relevance';
|
||||||
environmentId = this.$refs.apiCaseList.environmentId;
|
environmentId = this.$refs.apiCaseList.environmentId;
|
||||||
selectIds = Array.from(apiCases).map(row => row.id);
|
selectIds = Array.from(apiCases).map(row => row.id);
|
||||||
this.postRelevance(url, environmentId, selectIds);
|
let protocol = this.$refs.apiCaseList.currentProtocol;
|
||||||
|
this.postRelevance(url, environmentId, selectIds, protocol);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
postRelevance(url, environmentId, selectIds) {
|
postRelevance(url, environmentId, selectIds, protocol) {
|
||||||
let param = {};
|
let param = {};
|
||||||
if (!environmentId) {
|
if (protocol !== 'DUBBO') {
|
||||||
this.$warning(this.$t('api_test.environment.select_environment'));
|
if (!environmentId) {
|
||||||
return;
|
this.$warning(this.$t('api_test.environment.select_environment'));
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
param.planId = this.planId;
|
param.planId = this.planId;
|
||||||
param.selectIds = selectIds;
|
param.selectIds = selectIds;
|
||||||
|
|
Loading…
Reference in New Issue