refactor: 测试用例页面创建人显示名称

This commit is contained in:
chenjianxing 2021-07-08 21:11:49 +08:00 committed by jianxing
parent e6f9cf6a02
commit 11715f2b47
4 changed files with 13 additions and 2 deletions

View File

@ -201,6 +201,8 @@ public class TapdPlatform extends AbstractIssuePlatform {
.map(Issues::getId)
.collect(Collectors.toList());
LogUtil.info("ids: " + ids);
if (CollectionUtils.isEmpty(ids)) {
return;
}

View File

@ -51,6 +51,7 @@ public class TapdClient extends BaseClient {
url += "&id={5}";
}
String fields = "id,title,description,priority,severity,reporter,status";
LogUtil.info("ids: " + idStr);
ResponseEntity<String> response = restTemplate.exchange(url, HttpMethod.GET, getAuthHttpEntity(), String.class,
projectId, pageNum, limit, fields, idStr);
return (TapdGetIssueResponse) getResultForObject(TapdGetIssueResponse.class, response);

View File

@ -35,7 +35,7 @@
buttons: Array,
row: Object,
size: Number,
hasShowed: Object
hasShowed: Boolean
},
created() {
if (this.trashEnable) {

View File

@ -56,7 +56,11 @@
:field="item"
:fields-width="fieldsWidth"
:label="$t('commons.create_user')"
min-width="120"/>
min-width="120">
<template v-slot:default="scope">
{{memberMap.get(scope.row.createUser)}}
</template>
</ms-table-column>
<ms-table-column
prop="reviewStatus"
@ -291,6 +295,7 @@ export default {
page: getPageInfo(),
fields: [],
fieldsWidth: getCustomTableWidth('TRACK_TEST_CASE'),
memberMap: new Map()
};
},
props: {
@ -351,6 +356,9 @@ export default {
this.page.result.loading = true;
let p1 = getProjectMember((data) => {
this.members = data;
this.members.forEach(item => {
this.memberMap.set(item.id, item.name);
});
});
let p2 = getTestTemplate();
Promise.all([p1, p2]).then((data) => {