|
@@ -30,22 +30,12 @@ import {
|
|
|
getPlaymateIdentityApplyPage,
|
|
getPlaymateIdentityApplyPage,
|
|
|
} from "@/services/playmateIdentityApply";
|
|
} from "@/services/playmateIdentityApply";
|
|
|
import type {
|
|
import type {
|
|
|
- ObjectIdLike,
|
|
|
|
|
PagerPlaymateIdentityApplyAdminDTO,
|
|
PagerPlaymateIdentityApplyAdminDTO,
|
|
|
PlaymateIdentityApplyAdminDTO,
|
|
PlaymateIdentityApplyAdminDTO,
|
|
|
PlaymateIdentityApplyAdminQuery,
|
|
PlaymateIdentityApplyAdminQuery,
|
|
|
} from "@/types/api/playmateIdentityApply";
|
|
} from "@/types/api/playmateIdentityApply";
|
|
|
import { formatTimestamp } from "@/utils/date";
|
|
import { formatTimestamp } from "@/utils/date";
|
|
|
|
|
|
|
|
-function objectIdToRowKey(id: ObjectIdLike): string {
|
|
|
|
|
- if (typeof id === "string") return id;
|
|
|
|
|
- try {
|
|
|
|
|
- return JSON.stringify(id);
|
|
|
|
|
- } catch {
|
|
|
|
|
- return String(id?.timestamp ?? "") + String(id?.date ?? "");
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
const PlaymateIdentityApplyPage: React.FC = () => {
|
|
const PlaymateIdentityApplyPage: React.FC = () => {
|
|
|
const { message } = App.useApp();
|
|
const { message } = App.useApp();
|
|
|
const [searchForm] = Form.useForm();
|
|
const [searchForm] = Form.useForm();
|
|
@@ -348,7 +338,7 @@ const PlaymateIdentityApplyPage: React.FC = () => {
|
|
|
<Table
|
|
<Table
|
|
|
columns={columns}
|
|
columns={columns}
|
|
|
dataSource={dataSource}
|
|
dataSource={dataSource}
|
|
|
- rowKey={(record) => objectIdToRowKey(record.id)}
|
|
|
|
|
|
|
+ rowKey={(record) => record.id}
|
|
|
loading={loading}
|
|
loading={loading}
|
|
|
pagination={{
|
|
pagination={{
|
|
|
current: queryParams.pageIndex,
|
|
current: queryParams.pageIndex,
|