From dcfb7a687a48cdc9661cbccaabd0809f89d7c8f8 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Wed, 25 Nov 2020 15:26:15 +0800 Subject: [PATCH 01/19] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E8=AE=BE=E7=BD=AE=E5=AD=97=E6=95=B0=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E9=99=90=E5=88=B6=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/business/components/xpack | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/business/components/xpack b/frontend/src/business/components/xpack index 33bbdb3f52..13907bd5ff 160000 --- a/frontend/src/business/components/xpack +++ b/frontend/src/business/components/xpack @@ -1 +1 @@ -Subproject commit 33bbdb3f528c914bf333b2c1839dd6d3bbd9b569 +Subproject commit 13907bd5ff621214ae81e42098df382916c503ce From 9d1350a97b0ca4751062ee29475e05e18a870436 Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Wed, 25 Nov 2020 15:45:52 +0800 Subject: [PATCH 02/19] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA)?= =?UTF-8?q?:=20=E4=BF=AE=E5=A4=8D=20xmind=20=E5=AF=BC=E5=85=A5=E5=A4=87?= =?UTF-8?q?=E6=B3=A8=E7=BC=BA=E5=A4=B1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/metersphere/xmind/XmindCaseParser.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/io/metersphere/xmind/XmindCaseParser.java b/backend/src/main/java/io/metersphere/xmind/XmindCaseParser.java index 7406ffec73..d08eea9ab3 100644 --- a/backend/src/main/java/io/metersphere/xmind/XmindCaseParser.java +++ b/backend/src/main/java/io/metersphere/xmind/XmindCaseParser.java @@ -231,7 +231,7 @@ public class XmindCaseParser { JSONObject step = new JSONObject(true); step.put("num", i + 1); step.put("desc", attacheds.get(i).getTitle()); - if (attacheds.get(i) != null && attacheds.get(i).getChildren() != null && attacheds.get(i).getChildren().getAttached()!=null) { + if (attacheds.get(i) != null && attacheds.get(i).getChildren() != null && attacheds.get(i).getChildren().getAttached() != null) { step.put("result", attacheds.get(i).getChildren().getAttached().get(0).getTitle()); } jsonArray.add(step); @@ -283,17 +283,20 @@ public class XmindCaseParser { // 测试步骤处理 List steps = new LinkedList<>(); + StringBuilder rc = new StringBuilder(); if (attacheds != null && !attacheds.isEmpty()) { attacheds.forEach(item -> { if (isAvailable(item.getTitle(), PC_REGEX)) { testCase.setPrerequisite(replace(item.getTitle(), PC_REGEX)); } else if (isAvailable(item.getTitle(), RC_REGEX)) { - testCase.setRemark(replace(item.getTitle(), RC_REGEX)); + rc.append(replace(item.getTitle(), RC_REGEX)); + rc.append("\n"); } else { steps.add(item); } }); } + testCase.setRemark(rc.toString()); testCase.setSteps(this.getSteps(steps)); testCases.add(testCase); // 校验合规性 From 45a7a05c143b3b90e478d8f5138f29dbdf7bbc7c Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Wed, 25 Nov 2020 16:23:53 +0800 Subject: [PATCH 03/19] =?UTF-8?q?fix(=E7=94=A8=E4=BE=8B=E8=AF=84=E5=AE=A1)?= =?UTF-8?q?:=20=E4=BF=AE=E5=A4=8D=E5=8F=AA=E8=AF=BB=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E7=BB=99=E7=94=A8=E4=BE=8B=E8=AF=84=E5=AE=A1?= =?UTF-8?q?=E5=8A=A0=E8=AF=84=E8=AE=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/track/review/commom/ReviewComment.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/src/business/components/track/review/commom/ReviewComment.vue b/frontend/src/business/components/track/review/commom/ReviewComment.vue index c8901d7269..c849f11adc 100644 --- a/frontend/src/business/components/track/review/commom/ReviewComment.vue +++ b/frontend/src/business/components/track/review/commom/ReviewComment.vue @@ -23,9 +23,10 @@ resize="none" :autosize="{ minRows: 4, maxRows: 4}" @keyup.ctrl.enter.native="sendComment" + :disabled="isReadOnly" > - + {{ $t('test_track.comment.send') }} @@ -34,6 +35,7 @@ +cd