|
@@ -3,7 +3,7 @@ import { Button, Modal, message, Image,Form,Input, InputNumber } from 'antd';
|
3
|
3
|
import { PlusOutlined } from '@ant-design/icons';
|
4
|
4
|
import { PageHeaderWrapper } from '@ant-design/pro-layout';
|
5
|
5
|
import PageTable from '@/components/PageTable';
|
6
|
|
-import { getCardNoList,addCarNoBatch } from '@/services/card';
|
|
6
|
+import { getCardNoList,addCarNoBatch,exportList } from '@/services/card';
|
7
|
7
|
import moment from 'moment';
|
8
|
8
|
|
9
|
9
|
const formatterTime = (val) => {
|
|
@@ -44,18 +44,43 @@ export default (props) => {
|
44
|
44
|
title: '卡号',
|
45
|
45
|
key: 'cardNo',
|
46
|
46
|
dataIndex: 'cardNo',
|
|
47
|
+ search:false
|
47
|
48
|
},
|
|
49
|
+ {
|
|
50
|
+ title: '卡号前缀',
|
|
51
|
+ key: 'prefix',
|
|
52
|
+ dataIndex: 'prefix',
|
|
53
|
+ hideInTable:true,
|
|
54
|
+
|
|
55
|
+ },
|
|
56
|
+ {
|
|
57
|
+ title: '起始号码',
|
|
58
|
+ key: 'start',
|
|
59
|
+ dataIndex: 'start',
|
|
60
|
+ hideInTable:true,
|
|
61
|
+ renderFormItem: (_, record) => <InputNumber placeholder='请输入您想查询的起始号码(1~1000)' min={1} max={1000} />
|
|
62
|
+ },
|
|
63
|
+ {
|
|
64
|
+ title: '终止号码',
|
|
65
|
+ key: 'end',
|
|
66
|
+ dataIndex: 'end',
|
|
67
|
+ hideInTable:true,
|
|
68
|
+ renderFormItem: (_, record) => <InputNumber placeholder='请输入您想查询的终止号码(1~1000)' min={1} max={1000} />
|
|
69
|
+ },
|
|
70
|
+
|
48
|
71
|
{
|
49
|
72
|
title: '二维码',
|
50
|
73
|
key: 'qrImage',
|
51
|
74
|
dataIndex: 'qrImage',
|
52
|
75
|
render: (t) => <Image width={110} src={t} alt="" />,
|
|
76
|
+ search:false
|
53
|
77
|
},
|
54
|
78
|
{
|
55
|
79
|
title: '创建时间',
|
56
|
80
|
key: 'createDate',
|
57
|
81
|
dataIndex: 'createDate',
|
58
|
82
|
render: formatterTime,
|
|
83
|
+ search:false
|
59
|
84
|
},
|
60
|
85
|
];
|
61
|
86
|
|
|
@@ -64,9 +89,9 @@ export default (props) => {
|
64
|
89
|
<PageTable
|
65
|
90
|
columns={columns}
|
66
|
91
|
request={getCardNoList}
|
|
92
|
+ expfunc={exportList}
|
67
|
93
|
rowKey="qrId"
|
68
|
94
|
options={false}
|
69
|
|
- search={false}
|
70
|
95
|
toolBarRender={actions}
|
71
|
96
|
actionRef={actionRef}
|
72
|
97
|
/>
|