123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- import { FundStatusEnum, } from '@/services/launchAdq/enum'
- import React from 'react'
- import { Badge, Space } from 'antd'
- import { copy } from '@/utils/utils'
- import { CopyOutlined } from '@ant-design/icons'
- function tableConfig(tableIdClick: any): any {
- return [
- {
- title: 'ID',
- dataIndex: 'id',
- key: 'id',
- align: 'center',
- width: 50
- },
- {
- title: '账号ID',
- dataIndex: 'accountId',
- key: 'accountId',
- align: 'center',
- width: 90,
- render: (a: string) => {
- return <Space>
- <a onClick={() => copy(a)} style={{ color: '#00bcd4' }}><CopyOutlined /></a>
- <a onClick={() => tableIdClick({ activeKey: '1', parma: { accountId: a } })}>{a}</a>
- </Space>
- }
- },
- {
- title: '腾讯备注',
- dataIndex: 'memo',
- key: 'memo',
- align: 'center',
- width: 100,
- fixed: 'left',
- ellipsis: true,
- },
- {
- title: '本地备注',
- dataIndex: 'remark',
- key: 'remark',
- align: 'center',
- width: 100,
- fixed: 'left',
- ellipsis: true,
- },
- {
- title: '账户余额(分)',
- dataIndex: 'balance',
- key: 'balance',
- align: 'center',
- width: 150,
- },
- {
- title: '资金状态',
- dataIndex: 'fundStatus',
- key: 'fundStatus',
- align: 'center',
- width: 130,
- render: (a: string | number) => {
- return FundStatusEnum[a]
- }
- },
- {
- title: '是否有效',
- dataIndex: 'enabled',
- key: 'enabled',
- align: 'center',
- width: 130,
- render: (a: any, b: any) => {
- return <Badge status={a ? "processing" : "error"} text={a ? '是' : '否'} />
- }
- },
- ]
- }
- export default tableConfig
|