From 3c9539c72d70e21d54bda9564211d270c741e8fa Mon Sep 17 00:00:00 2001 From: zhangdahai112 Date: Wed, 24 Aug 2022 16:31:37 +0800 Subject: [PATCH] =?UTF-8?q?fix(UI=20=E8=87=AA=E5=8A=A8=E5=8C=96):=20ui?= =?UTF-8?q?=E5=9C=BA=E6=99=AF=E9=A1=B5=E9=9D=A2=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1016262 --user=张大海 【UI测试】进入UI场景页面报异常且未显示模块树 https://www.tapd.cn/55049933/s/1232992 --- .../io/metersphere/controller/request/BaseQueryRequest.java | 5 +++++ .../src/main/java/io/metersphere/dto/UiScenarioRequest.java | 2 -- .../plan/view/comonents/api/RelevanceUiScenarioList.vue | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/backend/src/main/java/io/metersphere/controller/request/BaseQueryRequest.java b/backend/src/main/java/io/metersphere/controller/request/BaseQueryRequest.java index 8072062499..891ddacd2d 100644 --- a/backend/src/main/java/io/metersphere/controller/request/BaseQueryRequest.java +++ b/backend/src/main/java/io/metersphere/controller/request/BaseQueryRequest.java @@ -85,6 +85,11 @@ public class BaseQueryRequest { */ private String refId; + /** + * 测试计划关联场景过滤掉步骤为0的场景 + */ + private boolean hasStep; + public Map> getFilters() { if (MapUtils.isEmpty(filters) || filters.containsKey("isHandleCustomMultiple")) { return filters; diff --git a/backend/src/main/java/io/metersphere/dto/UiScenarioRequest.java b/backend/src/main/java/io/metersphere/dto/UiScenarioRequest.java index 102dc9f957..1b74f330a9 100644 --- a/backend/src/main/java/io/metersphere/dto/UiScenarioRequest.java +++ b/backend/src/main/java/io/metersphere/dto/UiScenarioRequest.java @@ -30,6 +30,4 @@ public class UiScenarioRequest extends BaseQueryRequest { * 是否需要查询环境字段 */ private boolean selectEnvironment = false; - //测试计划关联场景过滤掉步骤为0的场景 - private String stepTotal; } diff --git a/frontend/src/business/components/track/plan/view/comonents/api/RelevanceUiScenarioList.vue b/frontend/src/business/components/track/plan/view/comonents/api/RelevanceUiScenarioList.vue index 4b02f8a5d9..7029967cfa 100644 --- a/frontend/src/business/components/track/plan/view/comonents/api/RelevanceUiScenarioList.vue +++ b/frontend/src/business/components/track/plan/view/comonents/api/RelevanceUiScenarioList.vue @@ -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 => {