From 2de8b72aa4b75db1d12d719bd3ba9a028cf67ac7 Mon Sep 17 00:00:00 2001 From: teukkk Date: Thu, 25 Jul 2024 15:23:28 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B):=20?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E8=AF=84=E5=AE=A1-=E8=AF=A6=E6=83=85-?= =?UTF-8?q?=E5=A4=9A=E4=BA=BA=E8=AF=84=E5=AE=A1=E7=9A=84=E8=AF=84=E5=AE=A1?= =?UTF-8?q?=E7=BB=93=E6=9E=9C=E4=B8=8B=E6=8B=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/reviewStatusTrigger.vue | 76 +++++++++++++++++++ .../ms-minders/caseReviewMinder/index.vue | 60 ++------------- .../case-management/caseReview/caseDetail.vue | 29 ++++++- 3 files changed, 110 insertions(+), 55 deletions(-) create mode 100644 frontend/src/components/business/ms-minders/caseReviewMinder/components/reviewStatusTrigger.vue diff --git a/frontend/src/components/business/ms-minders/caseReviewMinder/components/reviewStatusTrigger.vue b/frontend/src/components/business/ms-minders/caseReviewMinder/components/reviewStatusTrigger.vue new file mode 100644 index 0000000000..1034d695dc --- /dev/null +++ b/frontend/src/components/business/ms-minders/caseReviewMinder/components/reviewStatusTrigger.vue @@ -0,0 +1,76 @@ + + + + + diff --git a/frontend/src/components/business/ms-minders/caseReviewMinder/index.vue b/frontend/src/components/business/ms-minders/caseReviewMinder/index.vue index 4aabb7a6e7..aef0e46416 100644 --- a/frontend/src/components/business/ms-minders/caseReviewMinder/index.vue +++ b/frontend/src/components/business/ms-minders/caseReviewMinder/index.vue @@ -78,39 +78,13 @@ disabled :active-case="activeCaseInfo" /> -
+
{{ t('caseManagement.caseReview.progress') }} {{ props.reviewProgress }}
- -
- - -
- -
+
([]); // 加载评审历史列表 - const reviewHistoryStatus = ref(); - const reviewUserStatusList = ref([]); // 每个评审人最后一次评审结果 - const statusVisible = ref(false); async function initReviewHistoryList(data: MinderJsonNodeData) { try { const res = await getCaseReviewHistoryList(route.query.id as string, data?.caseId || activeCaseInfo.value.caseId); @@ -491,20 +458,11 @@ console.log(error); } } - async function initReviewerAndStatus(data: MinderJsonNodeData) { - try { - const res = await getReviewerAndStatus(route.query.id as string, data?.caseId || activeCaseInfo.value.caseId); - reviewUserStatusList.value = res.reviewerStatus; - reviewHistoryStatus.value = res.status as ReviewResultStatus; - } catch (error) { - // eslint-disable-next-line no-console - console.log(error); - } - } /** * 切换用例详情显示 */ + const reviewStatusTriggerRef = ref>(); async function toggleDetail(val?: boolean) { extraVisible.value = val !== undefined ? val : !extraVisible.value; const node: MinderJsonNode = window.minder.getSelectedNode(); @@ -513,7 +471,10 @@ activeExtraKey.value = 'history'; initCaseDetail(data); initReviewHistoryList(data); - initReviewerAndStatus(data); + reviewStatusTriggerRef.value?.initReviewerAndStatus( + route.query.id as string, + data?.caseId || activeCaseInfo.value.caseId + ); } } @@ -685,9 +646,4 @@ :deep(.comment-list-item-name) { max-width: 200px; } - .trigger-content { - max-height: 192px; - @apply overflow-y-auto overflow-x-hidden; - .ms-scroll-bar(); - } diff --git a/frontend/src/views/case-management/caseReview/caseDetail.vue b/frontend/src/views/case-management/caseReview/caseDetail.vue index 1b0c456ce5..78e9aca342 100644 --- a/frontend/src/views/case-management/caseReview/caseDetail.vue +++ b/frontend/src/views/case-management/caseReview/caseDetail.vue @@ -133,7 +133,11 @@ {{ t('caseManagement.caseReview.reviewResult') }}
-
+ +
+ .review-result-trigger-content { + width: 160px; + }