fix(UI 自动化): ui场景页面问题修复

--bug=1016262 --user=张大海 【UI测试】进入UI场景页面报异常且未显示模块树 https://www.tapd.cn/55049933/s/1232992
This commit is contained in:
zhangdahai112 2022-08-24 16:31:37 +08:00 committed by zhangdahai112
parent e06e93d484
commit 3c9539c72d
3 changed files with 6 additions and 3 deletions

View File

@ -85,6 +85,11 @@ public class BaseQueryRequest {
*/
private String refId;
/**
* 测试计划关联场景过滤掉步骤为0的场景
*/
private boolean hasStep;
public Map<String, List<String>> getFilters() {
if (MapUtils.isEmpty(filters) || filters.containsKey("isHandleCustomMultiple")) {
return filters;

View File

@ -30,6 +30,4 @@ public class UiScenarioRequest extends BaseQueryRequest {
* 是否需要查询环境字段
*/
private boolean selectEnvironment = false;
//测试计划关联场景过滤掉步骤为0的场景
private String stepTotal;
}

View File

@ -195,7 +195,7 @@ export default {
if (this.planId != null) {
this.condition.planId = this.planId;
}
this.condition.stepTotal = "testPlan";
this.condition.hasStep = true;
let url = "/test/plan/uiScenario/case/relevance/list/" + this.currentPage + "/" + this.pageSize;
this.result = this.$post(url, this.condition, response => {