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; + }