From c3ca90e4b3805ea46cedfa76f84edd8b4f7c2b52 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Tue, 17 Jan 2023 11:12:28 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=A4=8D=E5=88=B6=E7=9A=84=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=E5=BC=95=E7=94=A8=E5=85=B3=E7=B3=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --story=1010958 --user=郭雨琦 https://www.tapd.cn/55049933/prong/stories/view/1155049933001010958 --- .../dto/automation/ApiScenarioRequest.java | 2 + .../base/mapper/ext/ExtApiScenarioMapper.xml | 12 +- .../definition/ApiDefinitionService.java | 2 +- .../complete/table/TableExtendBtns.vue | 54 ++++ .../definition/components/list/ApiList.vue | 68 +++-- .../components/reference/ShowReference.vue | 287 ++++++++++++++---- 6 files changed, 346 insertions(+), 79 deletions(-) create mode 100644 api-test/frontend/src/business/definition/components/complete/table/TableExtendBtns.vue diff --git a/api-test/backend/src/main/java/io/metersphere/api/dto/automation/ApiScenarioRequest.java b/api-test/backend/src/main/java/io/metersphere/api/dto/automation/ApiScenarioRequest.java index 589d956c85..bb38f11a42 100644 --- a/api-test/backend/src/main/java/io/metersphere/api/dto/automation/ApiScenarioRequest.java +++ b/api-test/backend/src/main/java/io/metersphere/api/dto/automation/ApiScenarioRequest.java @@ -40,4 +40,6 @@ public class ApiScenarioRequest extends BaseQueryRequest { //测试计划关联场景过滤掉步骤为0的场景 private String stepTotal; + //场景引用类型 + private String refType; } diff --git a/api-test/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiScenarioMapper.xml b/api-test/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiScenarioMapper.xml index e75c1144c3..4e0bf72d08 100644 --- a/api-test/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiScenarioMapper.xml +++ b/api-test/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiScenarioMapper.xml @@ -462,9 +462,11 @@