From fce72104c14a9505d08147f583cf377c5b31d0fe Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Fri, 17 Jun 2022 11:54:52 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E5=85=B3=E8=81=94=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E7=94=A8=E4=BE=8B,=20=E8=B4=A3=E4=BB=BB=E4=BA=BA?= =?UTF-8?q?=E7=AD=9B=E9=80=89=E5=AD=97=E6=AE=B5=E6=98=BE=E7=A4=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1014199 --user=宋昌昌 【测试跟踪】测试计划关联接口用例 责任人筛选字段 没有显示 https://www.tapd.cn/55049933/s/1184953 --- .../java/io/metersphere/api/service/ApiDefinitionService.java | 1 + .../api/definition/components/complete/ApiTableList.vue | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java index a8df0cf769..bda8144587 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiDefinitionService.java @@ -1687,6 +1687,7 @@ public class ApiDefinitionService { } Page page = PageHelper.startPage(goPage, pageSize, true); List resList = extApiDefinitionMapper.listRelevance(request); + buildUserInfo(resList); calculateResult(resList, request.getProjectId()); return PageUtils.setPageInfo(page, resList); } diff --git a/frontend/src/business/components/api/definition/components/complete/ApiTableList.vue b/frontend/src/business/components/api/definition/components/complete/ApiTableList.vue index d92069cee7..d603f3dab7 100644 --- a/frontend/src/business/components/api/definition/components/complete/ApiTableList.vue +++ b/frontend/src/business/components/api/definition/components/complete/ApiTableList.vue @@ -187,7 +187,9 @@ export default { }, created: function () { getProjectMember((data) => { - this.userFilters = data; + this.userFilters = data.map(u => { + return {text: u.name, value: u.id}; + }); }); this.getProtocolFilter(); this.checkVersionEnable();