From 8394a5a5c7a7b2d08368473c2c4a74c01a1968ef Mon Sep 17 00:00:00 2001 From: teukkk Date: Wed, 14 Aug 2024 15:03:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B&?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E8=AF=84=E8=AE=BA=E5=B1=95=E7=A4=BA=E6=AD=A5=E9=AA=A4=E8=AF=A6?= =?UTF-8?q?=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1044985 --user=吕梦园 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001044985 --- .../featureCaseMinder/commentList.vue | 4 ++ .../testPlanFeatureCaseMinder/index.vue | 6 ++- frontend/src/models/testPlan/testPlan.ts | 1 + .../components/stepDetailTrigger.vue | 50 +++++++++++++++++++ .../tabComment/reviewCommentList.vue | 14 +++++- .../tabContent/tabComment/tabCommentIndex.vue | 1 + .../detail/executionHistory/index.vue | 37 +++----------- 7 files changed, 79 insertions(+), 34 deletions(-) create mode 100644 frontend/src/views/case-management/caseManagementFeature/components/stepDetailTrigger.vue diff --git a/frontend/src/components/business/ms-minders/featureCaseMinder/commentList.vue b/frontend/src/components/business/ms-minders/featureCaseMinder/commentList.vue index b4d681dbe4..9f97192680 100644 --- a/frontend/src/components/business/ms-minders/featureCaseMinder/commentList.vue +++ b/frontend/src/components/business/ms-minders/featureCaseMinder/commentList.vue @@ -21,6 +21,7 @@ :review-comment-list="reviewCommentList" :active-comment="activeComment" :permissions="['FUNCTIONAL_CASE:READ+COMMENT']" + show-step-detail-trigger /> @@ -483,11 +484,12 @@ const executeHistoryList = ref([]); async function initExecuteHistory(data: MinderJsonNodeData) { try { - executeHistoryList.value = await executeHistory({ + const res = await executeHistory({ caseId: data?.caseId, id: data.id, testPlanId: props.planId, }); + executeHistoryList.value = res.map((item) => ({ ...item, stepsText: item.stepsExecResult })); } catch (error) { // eslint-disable-next-line no-console console.log(error); @@ -825,7 +827,7 @@ diff --git a/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabComment/reviewCommentList.vue b/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabComment/reviewCommentList.vue index f9063147e6..09b8311e3c 100644 --- a/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabComment/reviewCommentList.vue +++ b/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabComment/reviewCommentList.vue @@ -4,12 +4,22 @@
-
+
{{ item.userName }}
+ + +
{{ t('caseManagement.caseReview.pass') }} @@ -87,6 +97,7 @@ import MSAvatar from '@/components/pure/ms-avatar/index.vue'; import MsEmpty from '@/components/pure/ms-empty/index.vue'; import { CommentItem } from '@/components/business/ms-comment/types'; + import StepDetailTrigger from '@/views/case-management/caseManagementFeature/components/stepDetailTrigger.vue'; import { useI18n } from '@/hooks/useI18n'; import { characterLimit } from '@/utils'; @@ -97,6 +108,7 @@ reviewCommentList: any[]; activeComment: string; notShowReviewName?: boolean; + showStepDetailTrigger?: boolean; }>(); const router = useRouter(); diff --git a/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabComment/tabCommentIndex.vue b/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabComment/tabCommentIndex.vue index d8b36f5894..233a1e719e 100644 --- a/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabComment/tabCommentIndex.vue +++ b/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabComment/tabCommentIndex.vue @@ -26,6 +26,7 @@ v-show="activeComment === 'reviewComment' || activeComment === 'executiveComment'" :review-comment-list="reviewCommentList" :active-comment="activeComment" + show-step-detail-trigger />
diff --git a/frontend/src/views/test-plan/testPlan/detail/featureCase/detail/executionHistory/index.vue b/frontend/src/views/test-plan/testPlan/detail/featureCase/detail/executionHistory/index.vue index 69a00d12dd..2476543db6 100644 --- a/frontend/src/views/test-plan/testPlan/detail/featureCase/detail/executionHistory/index.vue +++ b/frontend/src/views/test-plan/testPlan/detail/featureCase/detail/executionHistory/index.vue @@ -9,31 +9,14 @@
{{ item.userName }}
- - - {{ t('system.orgTemplate.stepDetail') }} - - - +
@@ -76,13 +59,12 @@