From 206354aeee6f06e367e9d0f2069c9f03b61f7839 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Tue, 15 Nov 2022 16:25:14 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA=E9=A6=96=E9=A1=B5=E4=BA=A4?= =?UTF-8?q?=E4=BA=92=E5=8D=87=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --story=1010425 --user=宋昌昌 【测试跟踪】测试跟踪首页交互升级 https://www.tapd.cn/55049933/s/1296114 --- .../ext/ExtApiDefinitionExecResultMapper.java | 3 +- .../ext/ExtApiDefinitionExecResultMapper.xml | 166 +++++----- .../controller/home/ApiHomeController.java | 31 ++ .../ApiDefinitionExecResultService.java | 2 +- .../task/controller/TaskController.java | 11 +- .../constants/SystemCustomField.java | 1 + .../controller/TestCaseReviewController.java | 8 +- .../controller/TrackController.java | 7 + .../io/metersphere/dto/BugStatistics.java | 11 +- .../metersphere/dto/TrackStatisticsDTO.java | 4 + .../testreview/ReviewRelateRequest.java | 3 + .../service/CustomFieldIssuesService.java | 12 + .../service/TestCaseReviewService.java | 6 +- .../io/metersphere/service/TrackService.java | 65 +++- .../frontend/src/api/remote/api/api-home.js | 4 +- test-track/frontend/src/api/test-review.js | 4 +- test-track/frontend/src/api/track.js | 16 +- .../business/case/components/TestCaseList.vue | 5 +- .../frontend/src/business/home/TrackHome.vue | 245 +++++++-------- .../business/home/components/BugCountCard.vue | 241 +++++++++----- .../home/components/CaseCountCard.vue | 297 +++++++++--------- .../home/components/CaseMaintenance.vue | 105 ++++++- .../home/components/FailureTestCaseList.vue | 121 +++---- .../home/components/RelevanceCaseCard.vue | 194 ++++++------ .../business/home/components/ReviewList.vue | 194 +++++++----- .../home/components/RunningTaskList.vue | 156 ++++----- .../home/components/card/HoverCard.vue | 71 +++++ .../home/components/card/MainInfoCard.vue | 114 +++++++ .../home/components/chart/BugCountChart.vue | 242 ++++++++++++++ .../home/components/chart/CaseCountChart.vue | 241 ++++++++++++++ .../components/chart/RelevanceCountChart.vue | 223 +++++++++++++ .../components/pagination/HomePagination.vue | 113 +++++++ .../components/table/BasicCaseTypeLabel.vue | 60 ++++ .../components/table/BasicStatusLabel.vue | 76 +++++ .../components/table/BasicTaskTypeLabel.vue | 52 +++ test-track/frontend/src/i18n/lang/en-US.js | 39 +++ test-track/frontend/src/i18n/lang/zh-CN.js | 39 +++ test-track/frontend/src/i18n/lang/zh-TW.js | 39 +++ 38 files changed, 2450 insertions(+), 771 deletions(-) create mode 100644 test-track/frontend/src/business/home/components/card/HoverCard.vue create mode 100644 test-track/frontend/src/business/home/components/card/MainInfoCard.vue create mode 100644 test-track/frontend/src/business/home/components/chart/BugCountChart.vue create mode 100644 test-track/frontend/src/business/home/components/chart/CaseCountChart.vue create mode 100644 test-track/frontend/src/business/home/components/chart/RelevanceCountChart.vue create mode 100644 test-track/frontend/src/business/home/components/pagination/HomePagination.vue create mode 100644 test-track/frontend/src/business/home/components/table/BasicCaseTypeLabel.vue create mode 100644 test-track/frontend/src/business/home/components/table/BasicStatusLabel.vue create mode 100644 test-track/frontend/src/business/home/components/table/BasicTaskTypeLabel.vue diff --git a/api-test/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDefinitionExecResultMapper.java b/api-test/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDefinitionExecResultMapper.java index e91b382ea8..af72a70917 100644 --- a/api-test/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDefinitionExecResultMapper.java +++ b/api-test/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDefinitionExecResultMapper.java @@ -28,7 +28,8 @@ public interface ExtApiDefinitionExecResultMapper { long countByTestCaseIDInProject(String projectId); - List findFailureCaseInTestPlanByProjectIDAndExecuteTimeAndLimitNumber(@Param("projectId") String projectId, @Param("selectFunctionCase") boolean selectFunctionCase, @Param("startTimestamp") long startTimestamp); + List findFailureCaseInTestPlanByProjectIDAndExecuteTimeAndLimitNumber(@Param("projectId") String projectId, @Param("selectFunctionCase") boolean selectFunctionCase, + @Param("startTimestamp") long startTimestamp, @Param("limitNumber") int limitNumber); String selectExecResult(String resourceId); diff --git a/api-test/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDefinitionExecResultMapper.xml b/api-test/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDefinitionExecResultMapper.xml index 7e55f7b874..c91e62fb6b 100644 --- a/api-test/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDefinitionExecResultMapper.xml +++ b/api-test/backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiDefinitionExecResultMapper.xml @@ -61,93 +61,95 @@