refactor: 测试用例页面创建人显示名称
This commit is contained in:
parent
e6f9cf6a02
commit
11715f2b47
|
@ -201,6 +201,8 @@ public class TapdPlatform extends AbstractIssuePlatform {
|
||||||
.map(Issues::getId)
|
.map(Issues::getId)
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
|
|
||||||
|
LogUtil.info("ids: " + ids);
|
||||||
|
|
||||||
if (CollectionUtils.isEmpty(ids)) {
|
if (CollectionUtils.isEmpty(ids)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,6 +51,7 @@ public class TapdClient extends BaseClient {
|
||||||
url += "&id={5}";
|
url += "&id={5}";
|
||||||
}
|
}
|
||||||
String fields = "id,title,description,priority,severity,reporter,status";
|
String fields = "id,title,description,priority,severity,reporter,status";
|
||||||
|
LogUtil.info("ids: " + idStr);
|
||||||
ResponseEntity<String> response = restTemplate.exchange(url, HttpMethod.GET, getAuthHttpEntity(), String.class,
|
ResponseEntity<String> response = restTemplate.exchange(url, HttpMethod.GET, getAuthHttpEntity(), String.class,
|
||||||
projectId, pageNum, limit, fields, idStr);
|
projectId, pageNum, limit, fields, idStr);
|
||||||
return (TapdGetIssueResponse) getResultForObject(TapdGetIssueResponse.class, response);
|
return (TapdGetIssueResponse) getResultForObject(TapdGetIssueResponse.class, response);
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
buttons: Array,
|
buttons: Array,
|
||||||
row: Object,
|
row: Object,
|
||||||
size: Number,
|
size: Number,
|
||||||
hasShowed: Object
|
hasShowed: Boolean
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
if (this.trashEnable) {
|
if (this.trashEnable) {
|
||||||
|
|
|
@ -56,7 +56,11 @@
|
||||||
:field="item"
|
:field="item"
|
||||||
:fields-width="fieldsWidth"
|
:fields-width="fieldsWidth"
|
||||||
:label="$t('commons.create_user')"
|
: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
|
<ms-table-column
|
||||||
prop="reviewStatus"
|
prop="reviewStatus"
|
||||||
|
@ -291,6 +295,7 @@ export default {
|
||||||
page: getPageInfo(),
|
page: getPageInfo(),
|
||||||
fields: [],
|
fields: [],
|
||||||
fieldsWidth: getCustomTableWidth('TRACK_TEST_CASE'),
|
fieldsWidth: getCustomTableWidth('TRACK_TEST_CASE'),
|
||||||
|
memberMap: new Map()
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
|
@ -351,6 +356,9 @@ export default {
|
||||||
this.page.result.loading = true;
|
this.page.result.loading = true;
|
||||||
let p1 = getProjectMember((data) => {
|
let p1 = getProjectMember((data) => {
|
||||||
this.members = data;
|
this.members = data;
|
||||||
|
this.members.forEach(item => {
|
||||||
|
this.memberMap.set(item.id, item.name);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
let p2 = getTestTemplate();
|
let p2 = getTestTemplate();
|
||||||
Promise.all([p1, p2]).then((data) => {
|
Promise.all([p1, p2]).then((data) => {
|
||||||
|
|
Loading…
Reference in New Issue