|
@@ -71,11 +71,9 @@ class ModalTable extends React.Component {
|
71
|
71
|
|
72
|
72
|
// 分页
|
73
|
73
|
onChange(pageNum) {
|
74
|
|
- props.form.validateFields((err, values) => {
|
75
|
|
- if (!err) {
|
76
|
|
- getList({ pageNumber: pageNum, pageSize: 5, ...values })
|
77
|
|
- }
|
78
|
|
- });
|
|
74
|
+
|
|
75
|
+ this.getList({ pageNumber: pageNum, pageSize: 5, })
|
|
76
|
+
|
79
|
77
|
}
|
80
|
78
|
|
81
|
79
|
render() {
|
|
@@ -83,7 +81,8 @@ class ModalTable extends React.Component {
|
83
|
81
|
{
|
84
|
82
|
title: '头像',
|
85
|
83
|
// eslint-disable-next-line jsx-a11y/alt-text
|
86
|
|
- render: (text, records) => <img src={records.picture} width={50} height={50} />,
|
|
84
|
+ render: (text, record) => <Avatar shape="square" src={record.picture} size={64} icon="user" />,
|
|
85
|
+ // render: (text, records) => <img src={records.picture} width={50} height={50} />,
|
87
|
86
|
},
|
88
|
87
|
{
|
89
|
88
|
title: '用户名',
|
|
@@ -346,6 +345,7 @@ function body(props) {
|
346
|
345
|
*/
|
347
|
346
|
function handleReset() {
|
348
|
347
|
props.form.resetFields();
|
|
348
|
+ getList({ pageNumber: 1, pageSize: 10 })
|
349
|
349
|
}
|
350
|
350
|
|
351
|
351
|
function toAudit(cuurentId) {
|