From 0d663a0579b2b1212cb39006eb4fa3125af866ff Mon Sep 17 00:00:00 2001
From: wenyann <64353056+wenyann@users.noreply.github.com>
Date: Wed, 4 Nov 2020 17:49:48 +0800
Subject: [PATCH 01/12] =?UTF-8?q?fix(=E6=B6=88=E6=81=AF=E8=AE=BE=E7=BD=AE)?=
=?UTF-8?q?:=E4=BF=AE=E5=A4=8D=E7=82=B9=E5=87=BB=E5=8F=96=E6=B6=88?=
=?UTF-8?q?=E8=AE=B0=E5=BD=95=E5=9C=A8=E9=A1=B5=E9=9D=A2=E6=B6=88=E5=A4=B1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../organization/components/DefectTaskNotification.vue | 6 +++++-
.../organization/components/JenkinsNotification.vue | 7 ++++++-
.../organization/components/ScheduleTaskNotification.vue | 6 +++++-
.../organization/components/TestPlanTaskNotification.vue | 6 +++++-
.../organization/components/TestReviewNotification.vue | 6 +++++-
5 files changed, 26 insertions(+), 5 deletions(-)
diff --git a/frontend/src/business/components/settings/organization/components/DefectTaskNotification.vue b/frontend/src/business/components/settings/organization/components/DefectTaskNotification.vue
index c91267ef82..3fe1c2939d 100644
--- a/frontend/src/business/components/settings/organization/components/DefectTaskNotification.vue
+++ b/frontend/src/business/components/settings/organization/components/DefectTaskNotification.vue
@@ -204,7 +204,11 @@ export default {
})
},
removeRowTask(index, data) { //移除
- data.splice(index, 1)
+ if (!data[index].identification) {
+ data.splice(index, 1)
+ } else {
+ data[index].isSet = false
+ }
},
deleteRowTask(index, data) { //删除
this.result = this.$get("/notice/delete/message/" + data.identification, response => {
diff --git a/frontend/src/business/components/settings/organization/components/JenkinsNotification.vue b/frontend/src/business/components/settings/organization/components/JenkinsNotification.vue
index 1617ebab7b..6393408753 100644
--- a/frontend/src/business/components/settings/organization/components/JenkinsNotification.vue
+++ b/frontend/src/business/components/settings/organization/components/JenkinsNotification.vue
@@ -205,7 +205,12 @@ export default {
})
},
removeRowTask(index, data) { //移除
- data.splice(index, 1)
+ if (!data[index].identification) {
+ data.splice(index, 1)
+ } else {
+ data[index].isSet = false
+ }
+
},
deleteRowTask(index, data) { //删除
this.result = this.$get("/notice/delete/message/" + data.identification, response => {
diff --git a/frontend/src/business/components/settings/organization/components/ScheduleTaskNotification.vue b/frontend/src/business/components/settings/organization/components/ScheduleTaskNotification.vue
index 1ce351b175..b0358ac2b7 100644
--- a/frontend/src/business/components/settings/organization/components/ScheduleTaskNotification.vue
+++ b/frontend/src/business/components/settings/organization/components/ScheduleTaskNotification.vue
@@ -196,7 +196,11 @@ export default {
})
},
removeRowTask(index, data) { //移除
- data.splice(index, 1)
+ if (!data[index].identification) {
+ data.splice(index, 1)
+ } else {
+ data[index].isSet = false
+ }
},
deleteRowTask(index, data) { //删除
this.result = this.$get("/notice/delete/message/" + data.identification, response => {
diff --git a/frontend/src/business/components/settings/organization/components/TestPlanTaskNotification.vue b/frontend/src/business/components/settings/organization/components/TestPlanTaskNotification.vue
index e44215182b..80706d170a 100644
--- a/frontend/src/business/components/settings/organization/components/TestPlanTaskNotification.vue
+++ b/frontend/src/business/components/settings/organization/components/TestPlanTaskNotification.vue
@@ -210,7 +210,11 @@ export default {
})
},
removeRowTask(index, data) { //移除
- data.splice(index, 1)
+ if (!data[index].identification) {
+ data.splice(index, 1)
+ } else {
+ data[index].isSet = false
+ }
},
deleteRowTask(index, data) { //删除
this.result = this.$get("/notice/delete/message/" + data.identification, response => {
diff --git a/frontend/src/business/components/settings/organization/components/TestReviewNotification.vue b/frontend/src/business/components/settings/organization/components/TestReviewNotification.vue
index 7e75db5d77..53e50ea5af 100644
--- a/frontend/src/business/components/settings/organization/components/TestReviewNotification.vue
+++ b/frontend/src/business/components/settings/organization/components/TestReviewNotification.vue
@@ -211,7 +211,11 @@ export default {
})
},
removeRowTask(index, data) { //移除
- data.splice(index, 1)
+ if (!data[index].identification) {
+ data.splice(index, 1)
+ } else {
+ data[index].isSet = false
+ }
},
deleteRowTask(index, data) { //删除
this.result = this.$get("/notice/delete/message/" + data.identification, response => {
From c1f4c8cba3fcfb5b78d5f70d282c4a6ff28b8746 Mon Sep 17 00:00:00 2001
From: wenyann <64353056+wenyann@users.noreply.github.com>
Date: Wed, 4 Nov 2020 18:09:11 +0800
Subject: [PATCH 02/12] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=94=A8?=
=?UTF-8?q?=E4=BE=8B=E8=AF=84=E5=AE=A1=E8=AF=84=E8=AE=BA=E9=93=BE=E6=8E=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../main/java/io/metersphere/notice/service/MailService.java | 2 +-
.../track/request/testreview/SaveCommentRequest.java | 1 +
backend/src/main/resources/mail/ReviewComments.html | 2 +-
.../business/components/track/review/commom/ReviewComment.vue | 4 +++-
.../track/review/view/components/TestReviewTestCaseEdit.vue | 2 +-
.../track/review/view/components/TestReviewTestCaseList.vue | 1 +
6 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/backend/src/main/java/io/metersphere/notice/service/MailService.java b/backend/src/main/java/io/metersphere/notice/service/MailService.java
index b39564c1e7..3efeca32ae 100644
--- a/backend/src/main/java/io/metersphere/notice/service/MailService.java
+++ b/backend/src/main/java/io/metersphere/notice/service/MailService.java
@@ -144,7 +144,7 @@ public class MailService {
context.put("testCaseName", testCaseWithBLOBs.getName());
context.put("description", request.getDescription());
context.put("url", baseSystemConfigDTO.getUrl());
- context.put("id", testCaseWithBLOBs.getId());
+ context.put("id", request.getReviewId());
try {
String commentTemplate = IOUtils.toString(this.getClass().getResource("/mail/ReviewComments.html"), StandardCharsets.UTF_8);
sendReviewNotice(addresseeIdList(messageDetail, userIds, eventType), context, commentTemplate);
diff --git a/backend/src/main/java/io/metersphere/track/request/testreview/SaveCommentRequest.java b/backend/src/main/java/io/metersphere/track/request/testreview/SaveCommentRequest.java
index bf5dbe8388..8e69c209c7 100644
--- a/backend/src/main/java/io/metersphere/track/request/testreview/SaveCommentRequest.java
+++ b/backend/src/main/java/io/metersphere/track/request/testreview/SaveCommentRequest.java
@@ -7,5 +7,6 @@ import lombok.Setter;
@Getter
@Setter
public class SaveCommentRequest extends TestCaseComment {
+ private String reviewId;
}
diff --git a/backend/src/main/resources/mail/ReviewComments.html b/backend/src/main/resources/mail/ReviewComments.html
index 04bf929c18..c9f0514a57 100644
--- a/backend/src/main/resources/mail/ReviewComments.html
+++ b/backend/src/main/resources/mail/ReviewComments.html
@@ -10,7 +10,7 @@
${testCaseName}
添加评论:${description}
点击下面链接进入用例评审页面