From 64fa7aef84821db081d1b8122bd6aec261260725 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Wed, 18 Oct 2023 11:56:35 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E6=8A=A5?= =?UTF-8?q?=E5=91=8A=E5=88=97=E8=A1=A8=E5=AD=97=E6=AE=B5=E6=88=90=E5=8A=9F?= =?UTF-8?q?=E7=8E=87=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1031011 --user=宋昌昌 【测试跟踪】测试跟踪-报告-字段“成功率”改为“通过率” https://www.tapd.cn/55049933/s/1427585 --- .../src/main/java/io/metersphere/service/IssuesService.java | 4 ++-- .../src/business/report/components/TestPlanReportList.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test-track/backend/src/main/java/io/metersphere/service/IssuesService.java b/test-track/backend/src/main/java/io/metersphere/service/IssuesService.java index b5cfb66da9..bfbfa0ead4 100644 --- a/test-track/backend/src/main/java/io/metersphere/service/IssuesService.java +++ b/test-track/backend/src/main/java/io/metersphere/service/IssuesService.java @@ -55,7 +55,6 @@ import io.metersphere.service.remote.project.TrackIssueTemplateService; import io.metersphere.service.wapper.TrackProjectService; import io.metersphere.service.wapper.UserService; import io.metersphere.utils.DistinctKeyUtil; -import io.metersphere.xpack.track.dto.AttachmentRequest; import io.metersphere.xpack.track.dto.PlatformStatusDTO; import io.metersphere.xpack.track.dto.PlatformUser; import io.metersphere.xpack.track.dto.*; @@ -373,7 +372,8 @@ public class IssuesService { public IssuesWithBLOBs updateIssues(IssuesUpdateRequest issuesRequest) { PlatformIssuesUpdateRequest platformIssuesUpdateRequest = JSON.parseObject(JSON.toJSONString(issuesRequest), PlatformIssuesUpdateRequest.class); Project project = baseProjectService.getProjectById(issuesRequest.getProjectId()); - if (StringUtils.isNotBlank(project.getPlatform()) && !StringUtils.equals(project.getPlatform(), issuesRequest.getPlatform())) { + if (StringUtils.isNotBlank(project.getPlatform()) && StringUtils.isNotBlank(issuesRequest.getPlatform()) && + !StringUtils.equals(project.getPlatform(), issuesRequest.getPlatform())) { // 如果项目平台与缺陷平台不一致, 则修改报错, 只保存用例与缺陷关联关系 issuesService.handleTestCaseIssues(issuesRequest); MSException.throwException(Translator.get("platform_not_match")); diff --git a/test-track/frontend/src/business/report/components/TestPlanReportList.vue b/test-track/frontend/src/business/report/components/TestPlanReportList.vue index 314832d82f..2d1d02b69e 100644 --- a/test-track/frontend/src/business/report/components/TestPlanReportList.vue +++ b/test-track/frontend/src/business/report/components/TestPlanReportList.vue @@ -138,7 +138,7 @@ prop="passRate" :field="item" :fields-width="fieldsWidth" - :label="$t('test_track.report.list.pass_rate')" + :label="$t('test_track.pass_rate')" >