From 552004476486fbdd8b6357e4caffebbe821f20da Mon Sep 17 00:00:00 2001 From: AgAngle <1323481023@qq.com> Date: Fri, 29 Nov 2024 15:46:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E5=8F=B0=E7=BC=BA=E9=99=B7=E5=88=97=E8=A1=A8?= =?UTF-8?q?=EF=BC=8C=E6=88=90=E5=91=98=E7=B1=BB=E5=9E=8B=E7=9A=84=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E5=AD=97=E6=AE=B5=EF=BC=8C=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E7=9A=84=E6=98=AFID=E4=B8=8D=E6=98=AF=E5=90=8D=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1037136 --user=陈建星 【工作台】github#29420,工作台,我关注的,缺陷管理。显示的处理人是用户id区分不出来,用例管理-缺陷管理显示的是用户名称。期望展示为用名称 https://www.tapd.cn/55049933/s/1621236 --- .../frontend/src/business/component/IssueTableList.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/workstation/frontend/src/business/component/IssueTableList.vue b/workstation/frontend/src/business/component/IssueTableList.vue index f4c0fbbcab..4da9689ef6 100644 --- a/workstation/frontend/src/business/component/IssueTableList.vue +++ b/workstation/frontend/src/business/component/IssueTableList.vue @@ -168,7 +168,8 @@ import { getCurrentProjectID, getCurrentWorkspaceId, } from "metersphere-frontend/src/utils/token"; -import { getProjectMember, getProjectMemberUserFilter } from "@/api/user"; +import { getProjectMemberUserFilter } from "@/api/user"; +import { getProjectMemberById } from "metersphere-frontend/src/api/user"; import { LOCAL } from "metersphere-frontend/src/utils/constants"; import { TEST_TRACK_ISSUE_LIST } from "metersphere-frontend/src/components/search/search-components"; import { getAdvSearchCustomField } from "metersphere-frontend/src/components/search/custom-component"; @@ -305,9 +306,10 @@ export default { this.getMaintainerOptions(); this.loading = true; this.$nextTick(() => { - getProjectMember((data) => { - this.members = data; - }); + getProjectMemberById(this.projectId) + .then((r) => { + this.members = r.data; + }); getIssuePartTemplateWithProject((template) => { this.initFields(template); this.getIssues();