fix(测试跟踪): 修改测试计划报告列表字段成功率名称
--bug=1031011 --user=宋昌昌 【测试跟踪】测试跟踪-报告-字段“成功率”改为“通过率” https://www.tapd.cn/55049933/s/1427585
This commit is contained in:
parent
58758ffd90
commit
64fa7aef84
|
@ -55,7 +55,6 @@ import io.metersphere.service.remote.project.TrackIssueTemplateService;
|
||||||
import io.metersphere.service.wapper.TrackProjectService;
|
import io.metersphere.service.wapper.TrackProjectService;
|
||||||
import io.metersphere.service.wapper.UserService;
|
import io.metersphere.service.wapper.UserService;
|
||||||
import io.metersphere.utils.DistinctKeyUtil;
|
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.PlatformStatusDTO;
|
||||||
import io.metersphere.xpack.track.dto.PlatformUser;
|
import io.metersphere.xpack.track.dto.PlatformUser;
|
||||||
import io.metersphere.xpack.track.dto.*;
|
import io.metersphere.xpack.track.dto.*;
|
||||||
|
@ -373,7 +372,8 @@ public class IssuesService {
|
||||||
public IssuesWithBLOBs updateIssues(IssuesUpdateRequest issuesRequest) {
|
public IssuesWithBLOBs updateIssues(IssuesUpdateRequest issuesRequest) {
|
||||||
PlatformIssuesUpdateRequest platformIssuesUpdateRequest = JSON.parseObject(JSON.toJSONString(issuesRequest), PlatformIssuesUpdateRequest.class);
|
PlatformIssuesUpdateRequest platformIssuesUpdateRequest = JSON.parseObject(JSON.toJSONString(issuesRequest), PlatformIssuesUpdateRequest.class);
|
||||||
Project project = baseProjectService.getProjectById(issuesRequest.getProjectId());
|
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);
|
issuesService.handleTestCaseIssues(issuesRequest);
|
||||||
MSException.throwException(Translator.get("platform_not_match"));
|
MSException.throwException(Translator.get("platform_not_match"));
|
||||||
|
|
|
@ -138,7 +138,7 @@
|
||||||
prop="passRate"
|
prop="passRate"
|
||||||
:field="item"
|
:field="item"
|
||||||
:fields-width="fieldsWidth"
|
:fields-width="fieldsWidth"
|
||||||
:label="$t('test_track.report.list.pass_rate')"
|
:label="$t('test_track.pass_rate')"
|
||||||
>
|
>
|
||||||
<template v-slot:default="scope">
|
<template v-slot:default="scope">
|
||||||
<span v-if="scope.row.status === 'RUNNING' || scope.row.status === 'Running'"> - </span>
|
<span v-if="scope.row.status === 'RUNNING' || scope.row.status === 'Running'"> - </span>
|
||||||
|
|
Loading…
Reference in New Issue