fix: 用例评审测试用例责任人是用户ID

--bug=1008336 --user=陈建星 【github#8045】用例评审模块,测试用例责任人应该展示用户名称,实际展示用户ID #8045 https://www.tapd.cn/55049933/s/10793866
This commit is contained in:
chenjianxing 2021-12-09 20:05:54 +08:00 committed by jianxing
parent d48f680c04
commit a930f90508
4 changed files with 4 additions and 2 deletions

View File

@ -11,6 +11,7 @@ import java.util.List;
public class TestReviewCaseDTO extends TestCaseWithBLOBs {
private String reviewer;
private String reviewerName;
private String maintainerName;
private String reviewStatus;
private String results;
private String reviewId;

View File

@ -71,6 +71,7 @@ public class TestReviewTestCaseService {
String reviewId = item.getReviewId();
List<String> userIds = getReviewUserIds(reviewId);
item.setReviewerName(getReviewName(userIds, userMap));
item.setMaintainerName(userMap.get(item.getMaintainer()));
});
return list;
}

View File

@ -79,7 +79,7 @@
</ms-table-column>
<ms-table-column
prop="maintainer"
prop="maintainerName"
:field="item"
:fields-width="fieldsWidth"
:label="$t('custom_field.case_maintainer')"

View File

@ -101,7 +101,7 @@ export let CUSTOM_TABLE_HEADER = {
{id: 'reviewerName', key: '7', label: 'test_track.review.reviewer'},
{id: 'reviewStatus', key: '8', label: 'test_track.case.status'},
{id: 'updateTime', key: '9', label: 'commons.update_time'},
{id: 'maintainer', key: 'a', label: 'custom_field.case_maintainer'},
{id: 'maintainerName', key: 'a', label: 'custom_field.case_maintainer'},
],
//测试计划
TEST_PLAN_LIST: [