From 7ec678acad3018f1e387221ba90451fa610c52a9 Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Wed, 24 Mar 2021 15:39:34 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96):=20=E4=BF=AE=E5=A4=8D=E6=AD=A5=E9=AA=A4=E5=8F=A6?= =?UTF-8?q?=E5=AD=98=E6=96=B0=E6=8E=A5=E5=8F=A3=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/api/automation/scenario/api/AddBasisApi.vue | 2 +- .../components/api/definition/components/case/ApiCaseItem.vue | 4 ++++ frontend/src/business/components/xpack | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/src/business/components/api/automation/scenario/api/AddBasisApi.vue b/frontend/src/business/components/api/automation/scenario/api/AddBasisApi.vue index 13f043723f..2fe043d04d 100644 --- a/frontend/src/business/components/api/automation/scenario/api/AddBasisApi.vue +++ b/frontend/src/business/components/api/automation/scenario/api/AddBasisApi.vue @@ -268,7 +268,7 @@ if (api) { let data = JSON.parse(JSON.stringify(api)); data.id = getUUID(); - this.httpForm = {id: data.id, name: data.name, protocol: data.protocol, path: data.path, method: REQ_METHOD[0].id, userId: getCurrentUser().id, request: data}; + this.httpForm = {id: data.id, name: data.name, protocol: data.protocol, path: data.path, method: api.method, userId: getCurrentUser().id, request: data}; this.getMaintainerOptions(); this.list(data); this.httpVisible = true; diff --git a/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue b/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue index 214901efcd..2fcd266207 100644 --- a/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue +++ b/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue @@ -332,6 +332,10 @@ row.id = data.id; row.createTime = data.createTime; row.updateTime = data.updateTime; + if (!row.message) { + this.$success(this.$t('commons.save_success')); + this.$emit('refresh'); + } }); }, saveTestCase(row) { diff --git a/frontend/src/business/components/xpack b/frontend/src/business/components/xpack index 2115bd28a9..07951ba17a 160000 --- a/frontend/src/business/components/xpack +++ b/frontend/src/business/components/xpack @@ -1 +1 @@ -Subproject commit 2115bd28a90854d2b6276a90878934715498c584 +Subproject commit 07951ba17aef6f29e50cfd68e40de3266f9a60cd From bf73aa5e300d1ffcaacb2ed0a1d8da5ec98716b4 Mon Sep 17 00:00:00 2001 From: "song.tianyang" Date: Wed, 24 Mar 2021 15:53:07 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E4=B8=8D=E7=8E=B0=E5=AE=9E=E5=9B=9E=E6=94=B6=E7=AB=99=E5=86=85?= =?UTF-8?q?=E7=9A=84=E6=8E=A5=E5=8F=A3=E4=BF=A1=E6=81=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 解决文档不现实回收站内的接口信息问题 --- .../api/dto/document/ApiDocumentRequest.java | 1 + .../base/mapper/ext/ExtApiDocumentMapper.xml | 8 +++++++- .../api/definition/ApiDefinition.vue | 1 + .../components/document/ApiDocumentAnchor.vue | 19 ++++++++++--------- .../components/list/ApiDocumentsPage.vue | 6 +++++- 5 files changed, 24 insertions(+), 11 deletions(-) diff --git a/backend/src/main/java/io/metersphere/api/dto/document/ApiDocumentRequest.java b/backend/src/main/java/io/metersphere/api/dto/document/ApiDocumentRequest.java index adbd944c85..7b9e6459f6 100644 --- a/backend/src/main/java/io/metersphere/api/dto/document/ApiDocumentRequest.java +++ b/backend/src/main/java/io/metersphere/api/dto/document/ApiDocumentRequest.java @@ -20,4 +20,5 @@ public class ApiDocumentRequest { private String type; private String orderCondition; private List apiIdList; + private boolean trashEnable; } diff --git a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDocumentMapper.xml b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDocumentMapper.xml index 626296a8b5..bcf0d8788c 100644 --- a/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDocumentMapper.xml +++ b/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDocumentMapper.xml @@ -2,7 +2,13 @@