From 6ad094b8f605d7c2345647db30dc04aada7dcd44 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Fri, 14 Apr 2023 14:16:57 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=87=E6=A1=A3=E6=96=AD=E8=A8=80=EF=BC=8C?= =?UTF-8?q?=E8=A1=A8=E5=A4=B4=E5=A4=8D=E9=80=89=E6=A1=86=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E5=9B=9E=E6=98=BE=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1025422 --user=王孝刚 【接口测试】文档结构断言-全选必含和类型校验字段-保存后再次查看-字段复选框未勾选 https://www.tapd.cn/55049933/s/1362839 --- .../request/assertions/document/Document.java | 2 ++ .../components/assertion/document/DocumentBody.vue | 14 ++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/assertions/document/Document.java b/api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/assertions/document/Document.java index a821267d54..2a509aeab9 100644 --- a/api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/assertions/document/Document.java +++ b/api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/assertions/document/Document.java @@ -25,6 +25,8 @@ public class Document { private List<DocumentElement> json; private List<DocumentElement> xml; private String assertionName; + private boolean include = false; + private boolean typeVerification = false; private static final String delimiter = "split=="; diff --git a/api-test/frontend/src/business/definition/components/assertion/document/DocumentBody.vue b/api-test/frontend/src/business/definition/components/assertion/document/DocumentBody.vue index 1c25145fa6..e5aec6f733 100644 --- a/api-test/frontend/src/business/definition/components/assertion/document/DocumentBody.vue +++ b/api-test/frontend/src/business/definition/components/assertion/document/DocumentBody.vue @@ -399,6 +399,12 @@ export default { this.tableDataList(this.document.data.xml); } } + if (!this.document.data.include) { + this.document.data.include = false; + } + if (!this.document.data.typeVerification) { + this.document.data.typeVerification = false; + } this.reload(); } }, @@ -454,6 +460,9 @@ export default { on: { change: this.handleCheckAllChange, }, + props: { + checked: this.document.data.include + }, }), h( 'el-tooltip', @@ -481,6 +490,9 @@ export default { on: { change: this.handleType, }, + props: { + checked: this.document.data.typeVerification + }, }), h( 'el-tooltip', @@ -534,6 +546,7 @@ export default { } }, handleCheckAllChange(val) { + this.document.data.include = val; if (this.checked) { return; } @@ -558,6 +571,7 @@ export default { }); }, handleType(val) { + this.document.data.typeVerification = val; if (this.checked) { return; }