fix(测试跟踪): 工作台缺陷列表,成员类型的自定义字段,显示的是ID不是名字

--bug=1037136 --user=陈建星 【工作台】github#29420,工作台,我关注的,缺陷管理。显示的处理人是用户id区分不出来,用例管理-缺陷管理显示的是用户名称。期望展示为用名称 https://www.tapd.cn/55049933/s/1621236
This commit is contained in:
AgAngle 2024-11-29 15:46:23 +08:00 committed by Craftsman
parent 159f0cd8a5
commit 5520044764
1 changed files with 6 additions and 4 deletions

View File

@ -168,7 +168,8 @@ import {
getCurrentProjectID, getCurrentProjectID,
getCurrentWorkspaceId, getCurrentWorkspaceId,
} from "metersphere-frontend/src/utils/token"; } 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 { LOCAL } from "metersphere-frontend/src/utils/constants";
import { TEST_TRACK_ISSUE_LIST } from "metersphere-frontend/src/components/search/search-components"; import { TEST_TRACK_ISSUE_LIST } from "metersphere-frontend/src/components/search/search-components";
import { getAdvSearchCustomField } from "metersphere-frontend/src/components/search/custom-component"; import { getAdvSearchCustomField } from "metersphere-frontend/src/components/search/custom-component";
@ -305,8 +306,9 @@ export default {
this.getMaintainerOptions(); this.getMaintainerOptions();
this.loading = true; this.loading = true;
this.$nextTick(() => { this.$nextTick(() => {
getProjectMember((data) => { getProjectMemberById(this.projectId)
this.members = data; .then((r) => {
this.members = r.data;
}); });
getIssuePartTemplateWithProject((template) => { getIssuePartTemplateWithProject((template) => {
this.initFields(template); this.initFields(template);