laboratory/src/components/SelectMember/index.vue
@@ -59,7 +59,7 @@ </template> <script> import { getRoleList, getUserList } from './service' import { getRoleList, getUserList, listByRole } from './service' export default { props: { projectId: { @@ -118,7 +118,8 @@ if (this.projectId) { params.projectId = this.projectId; // TODO: 这里需要替换为新的接口调用 // const res = await getProjectUserList(params); const res = await listByRole(params); this.tableData = res.records; } else { const res = await getUserList(params); this.tableData = res.records;