|
|
@@ -24,6 +24,7 @@ import {
|
|
|
import type { ColumnsType, TablePaginationConfig } from "antd/es/table";
|
|
|
import type React from "react";
|
|
|
import { useEffect, useState } from "react";
|
|
|
+import UserBrief from "@/components/UserBrief";
|
|
|
import {
|
|
|
approvePlaymateBankApply,
|
|
|
getPlaymateBankApplyPage,
|
|
|
@@ -186,38 +187,18 @@ const PlaymateBankApplyPage: React.FC = () => {
|
|
|
|
|
|
const columns: ColumnsType<PlaymateBankApplyAdminDTO> = [
|
|
|
{
|
|
|
- title: "用户编号",
|
|
|
- dataIndex: "userNo",
|
|
|
- key: "userNo",
|
|
|
- width: 150,
|
|
|
+ title: "用户",
|
|
|
+ key: "user",
|
|
|
+ width: 260,
|
|
|
fixed: "left",
|
|
|
- render: (v) => v || "-",
|
|
|
- },
|
|
|
- {
|
|
|
- title: "头像",
|
|
|
- dataIndex: "avatar",
|
|
|
- key: "avatar",
|
|
|
- width: 90,
|
|
|
- render: (v?: string) =>
|
|
|
- v ? (
|
|
|
- <Image
|
|
|
- src={v}
|
|
|
- alt="avatar"
|
|
|
- width={40}
|
|
|
- height={40}
|
|
|
- style={{ borderRadius: "50%", objectFit: "cover" }}
|
|
|
- preview
|
|
|
- />
|
|
|
- ) : (
|
|
|
- "-"
|
|
|
- ),
|
|
|
- },
|
|
|
- {
|
|
|
- title: "昵称",
|
|
|
- dataIndex: "nickname",
|
|
|
- key: "nickname",
|
|
|
- width: 160,
|
|
|
- render: (v) => v || "-",
|
|
|
+ render: (_: unknown, record: PlaymateBankApplyAdminDTO) => (
|
|
|
+ <UserBrief
|
|
|
+ avatar={record.avatar}
|
|
|
+ nickname={record.nickname}
|
|
|
+ userNo={record.userNo}
|
|
|
+ size={40}
|
|
|
+ />
|
|
|
+ ),
|
|
|
},
|
|
|
{
|
|
|
title: "姓名",
|
|
|
@@ -233,6 +214,13 @@ const PlaymateBankApplyPage: React.FC = () => {
|
|
|
width: 160,
|
|
|
render: (v) => v || "-",
|
|
|
},
|
|
|
+ {
|
|
|
+ title: "银行编码",
|
|
|
+ dataIndex: "bankCode",
|
|
|
+ key: "bankCode",
|
|
|
+ width: 120,
|
|
|
+ render: (v) => v || "-",
|
|
|
+ },
|
|
|
{
|
|
|
title: "银行卡号",
|
|
|
dataIndex: "bankNo",
|
|
|
@@ -379,7 +367,7 @@ const PlaymateBankApplyPage: React.FC = () => {
|
|
|
pageSizeOptions: ["10", "20", "30", "40", "50", "100", "200"],
|
|
|
}}
|
|
|
onChange={handleTableChange}
|
|
|
- scroll={{ x: 1900 }}
|
|
|
+ scroll={{ x: 2020 }}
|
|
|
size="small"
|
|
|
bordered
|
|
|
/>
|
|
|
@@ -459,6 +447,9 @@ const PlaymateBankApplyPage: React.FC = () => {
|
|
|
<Descriptions.Item label="银行名称">
|
|
|
{currentRecord.bankName || "-"}
|
|
|
</Descriptions.Item>
|
|
|
+ <Descriptions.Item label="银行编码">
|
|
|
+ {currentRecord.bankCode || "-"}
|
|
|
+ </Descriptions.Item>
|
|
|
<Descriptions.Item label="银行卡号" span={2}>
|
|
|
{currentRecord.bankNo || "-"}
|
|
|
</Descriptions.Item>
|
|
|
@@ -511,7 +502,9 @@ const PlaymateBankApplyPage: React.FC = () => {
|
|
|
</div>
|
|
|
<div>
|
|
|
<span className="font-medium">银行卡:</span>
|
|
|
- {currentRecord.bankName || "-"} {currentRecord.bankNo || "-"}
|
|
|
+ {currentRecord.bankName || "-"}
|
|
|
+ {currentRecord.bankCode ? ` (${currentRecord.bankCode})` : ""}{" "}
|
|
|
+ {currentRecord.bankNo || "-"}
|
|
|
</div>
|
|
|
</div>
|
|
|
)}
|