diff --git a/.changeset/green-apricots-sparkle.md b/.changeset/green-apricots-sparkle.md new file mode 100644 index 0000000000..5166eb130c --- /dev/null +++ b/.changeset/green-apricots-sparkle.md @@ -0,0 +1,5 @@ +--- +"@scow/mis-web": patch +--- + +增加租户管理下的用户列表的关联账户跳转到账户管理的功能 diff --git a/apps/mis-web/src/pageComponents/tenant/AdminUserTable.tsx b/apps/mis-web/src/pageComponents/tenant/AdminUserTable.tsx index 789a2d7bb7..7c7b6c6601 100644 --- a/apps/mis-web/src/pageComponents/tenant/AdminUserTable.tsx +++ b/apps/mis-web/src/pageComponents/tenant/AdminUserTable.tsx @@ -15,6 +15,7 @@ import { DEFAULT_PAGE_SIZE } from "@scow/lib-web/build/utils/pagination"; import { Static } from "@sinclair/typebox"; import { App, Button, Divider, Form, Input, Space, Table } from "antd"; import { SortOrder } from "antd/es/table/interface"; +import Link from "next/link"; import React, { useCallback, useMemo, useState } from "react"; import { api } from "src/apis"; import { ChangePasswordModalLink } from "src/components/ChangePasswordModal"; @@ -240,7 +241,16 @@ export const AdminUserTable: React.FC = ({ dataIndex="affiliatedAccountNames" title={t(p("affiliatedAccountName"))} - render={(_, r) => r.accountAffiliations.map((x) => x.accountName).join(", ")} + render={(_, r) => ( + <> + {r.accountAffiliations.map((x, index) => ( + <> + {x.accountName} + {index < r.accountAffiliations.length - 1 && ", "} + + ))} + + )} /> dataIndex="changePassword"