From 1af5e68bbb2967524fad5f8507f2c6b344ea14d1 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Wed, 16 Nov 2022 20:57:26 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):?= =?UTF-8?q?=20=E4=BC=98=E5=8C=96=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=E8=B7=B3=E8=BD=AC=E5=8F=8A=E7=BC=BA=E9=99=B7?= =?UTF-8?q?=E9=81=97=E7=95=99=E9=9D=A2=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --story=1010425 --user=宋昌昌 【测试跟踪】测试跟踪首页交互升级 https://www.tapd.cn/55049933/s/1296708 --- .../frontend/src/i18n/lang/track/zh-CN.js | 2 +- .../frontend/src/i18n/lang/track/zh-TW.js | 2 +- .../track/dto/request/IssuesRequest.java | 9 ++ .../base/mapper/ext/ExtIssuesMapper.java | 4 + .../base/mapper/ext/ExtIssuesMapper.xml | 24 +++++ .../controller/IssuesController.java | 3 + .../io/metersphere/dto/BugStatistics.java | 9 +- .../io/metersphere/service/IssuesService.java | 13 +++ .../io/metersphere/service/TrackService.java | 91 +++++++++---------- .../frontend/src/business/home/TrackHome.vue | 7 +- .../business/home/components/BugCountCard.vue | 9 +- .../home/components/FailureTestCaseList.vue | 2 +- .../business/home/components/ReviewList.vue | 5 +- .../home/components/chart/BugCountChart.vue | 90 +++++++----------- .../frontend/src/business/issue/IssueList.vue | 9 +- test-track/frontend/src/i18n/lang/zh-CN.js | 2 +- test-track/frontend/src/i18n/lang/zh-TW.js | 2 +- .../frontend/src/router/modules/track.js | 2 +- 18 files changed, 161 insertions(+), 124 deletions(-) diff --git a/framework/sdk-parent/frontend/src/i18n/lang/track/zh-CN.js b/framework/sdk-parent/frontend/src/i18n/lang/track/zh-CN.js index f07910cd29..f5efd68b8d 100644 --- a/framework/sdk-parent/frontend/src/i18n/lang/track/zh-CN.js +++ b/framework/sdk-parent/frontend/src/i18n/lang/track/zh-CN.js @@ -466,7 +466,7 @@ export default { status_active: '激活', status_delete: '删除', status_in_progress: '接受/处理', - status_rejected: '拒绝', + status_rejected: '已拒绝', status_upcoming: '待办', status_reopened: '重新打开', please_choose_current_owner: "请选择处理人", diff --git a/framework/sdk-parent/frontend/src/i18n/lang/track/zh-TW.js b/framework/sdk-parent/frontend/src/i18n/lang/track/zh-TW.js index 0bde64afca..a2bf36542c 100644 --- a/framework/sdk-parent/frontend/src/i18n/lang/track/zh-TW.js +++ b/framework/sdk-parent/frontend/src/i18n/lang/track/zh-TW.js @@ -466,7 +466,7 @@ export default { status_active: '激活', status_delete: '刪除', status_in_progress: '接受/處理', - status_rejected: '拒絕', + status_rejected: '已拒絕', status_upcoming: '待辦', status_reopened: '重新打開', please_choose_current_owner: "請選擇處理人", diff --git a/framework/sdk-parent/xpack-interface/src/main/java/io/metersphere/xpack/track/dto/request/IssuesRequest.java b/framework/sdk-parent/xpack-interface/src/main/java/io/metersphere/xpack/track/dto/request/IssuesRequest.java index e94d5a9447..fe38bc800a 100644 --- a/framework/sdk-parent/xpack-interface/src/main/java/io/metersphere/xpack/track/dto/request/IssuesRequest.java +++ b/framework/sdk-parent/xpack-interface/src/main/java/io/metersphere/xpack/track/dto/request/IssuesRequest.java @@ -64,4 +64,13 @@ public class IssuesRequest extends BaseQueryRequest { * 缺陷导出勾选ID */ private List exportIds; + + /** + * 本周遗留缺陷 + */ + private Boolean thisWeekUnClosedIssue = false; + /** + * 本周遗留缺陷ID + */ + private List thisWeekUncloseIds; } diff --git a/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.java b/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.java index cf555af1af..ce524b9248 100644 --- a/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.java +++ b/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.java @@ -44,4 +44,8 @@ public interface ExtIssuesMapper { List getIssueCustomFields(List ids); List getPlatformIssueByIds(@Param("ids") List ids, @Param("projectId") String projectId); + + Long getThisWeekIssueCount(@Param("ids") List ids, @Param("projectId") String projectId); + + List getTestPlanThisWeekIssue(String projectId); } diff --git a/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.xml b/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.xml index ddc1f1b25b..11c21c638e 100644 --- a/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.xml +++ b/test-track/backend/src/main/java/io/metersphere/base/mapper/ext/ExtIssuesMapper.xml @@ -161,6 +161,24 @@ #{value} + + + + +