From 4f5463c01ab825a6319526a4d955130a86a0788c Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Fri, 26 Apr 2024 10:49:41 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E7=94=A8=E4=BE=8B=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E8=AF=84=E5=AE=A1=E8=AF=A6=E6=83=85=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E7=94=A8=E4=BE=8B=E8=AF=84=E5=AE=A1=E4=BA=BA=E5=BF=AB?= =?UTF-8?q?=E6=8D=B7=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CaseReviewFunctionalCaseService.java | 17 +++++- .../components/detail/caseTable.vue | 56 +++++++++++++++++-- 2 files changed, 66 insertions(+), 7 deletions(-) diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/service/CaseReviewFunctionalCaseService.java b/backend/services/case-management/src/main/java/io/metersphere/functional/service/CaseReviewFunctionalCaseService.java index 630fa4d284..4518428fc2 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/service/CaseReviewFunctionalCaseService.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/service/CaseReviewFunctionalCaseService.java @@ -164,8 +164,21 @@ public class CaseReviewFunctionalCaseService { list.forEach(item -> { item.setModuleName(moduleMap.get(item.getModuleId())); item.setVersionName(versionMap.get(item.getVersionId())); - item.setReviewers(Collections.singletonList(userIdMap.get(item.getCaseId()))); - item.setReviewNames(Collections.singletonList(userNameMap.get(item.getCaseId()))); + String reviewer = userIdMap.get(item.getCaseId()); + if (StringUtils.isNotBlank(reviewer)) { + item.setReviewers(new ArrayList<>(Arrays.asList(reviewer.split(",")))); + } + if (StringUtils.isNotBlank(reviewer)) { + item.setReviewers(new ArrayList<>(Arrays.asList(reviewer.split(",")))); + } else { + item.setReviewers(new ArrayList<>()); + } + String reviewName = userNameMap.get(item.getCaseId()); + if (StringUtils.isNotBlank(reviewName)) { + item.setReviewNames(new ArrayList<>(Arrays.asList(reviewName.split(",")))); + } else { + item.setReviewNames(new ArrayList<>()); + } item.setCustomFields(collect.get(item.getCaseId())); if (request.isViewStatusFlag()) { List histories = caseStatusMap.get(item.getCaseId()); diff --git a/frontend/src/views/case-management/caseReview/components/detail/caseTable.vue b/frontend/src/views/case-management/caseReview/components/detail/caseTable.vue index 492ffd161c..399a61dfb9 100644 --- a/frontend/src/views/case-management/caseReview/components/detail/caseTable.vue +++ b/frontend/src/views/case-management/caseReview/components/detail/caseTable.vue @@ -92,9 +92,31 @@