|
@@ -1,5 +1,5 @@
|
1
|
1
|
import React, { useState, useEffect } from 'react';
|
2
|
|
-import { Input, Menu, Dropdown, Button, Icon, message, Table, Divider, Tag, Select, Form, Alert, Tabs, Row, Col, Radio, tab, Avatar, Modal } from 'antd';
|
|
2
|
+import { Input, Menu, Dropdown, Button, Icon, message, Table, Divider, Tag, Select, Form, Alert, Tabs, Row, Col, Radio, tab, Avatar, Modal, Pagination } from 'antd';
|
3
|
3
|
import { FormattedMessage } from 'umi-plugin-react/locale';
|
4
|
4
|
import XForm, { FieldTypes } from '../../../../components/XForm';
|
5
|
5
|
import router from 'umi/router';
|
|
@@ -33,6 +33,11 @@ const header = props => {
|
33
|
33
|
})
|
34
|
34
|
}
|
35
|
35
|
|
|
36
|
+ const changePageNum = (pageNumber) => {
|
|
37
|
+ let values = props.form.getFieldsValue()
|
|
38
|
+ getCompanyData({ pageNum: pageNumber, pageSize: 10, ...values, companyId: companyId })
|
|
39
|
+ }
|
|
40
|
+
|
36
|
41
|
const openFddUrl = () => {
|
37
|
42
|
window.open(data.certifiedAddress)
|
38
|
43
|
}
|
|
@@ -165,6 +170,9 @@ const header = props => {
|
165
|
170
|
<AddSeal visible={sealInfo.visable} companyId={sealInfo.companyId} onCancel={e => setSealInfo(e)} onSuccess={e => getList(e)}/>
|
166
|
171
|
<UpdateSeal visible={updateSeal.visable} sealId={updateSeal.sealId} companyId={updateSeal.companyId} onCancel={e => updateOnCancel(e)} onSuccess={e => updateOnSuccess(e)}/>
|
167
|
172
|
<Table dataSource={data.records} columns={columns} pagination={false} rowKey="carouseFigureList"/>
|
|
173
|
+ <div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>
|
|
174
|
+ <Pagination showQuickJumper defaultCurrent={1} total={data.total} onChange={changePageNum} current={data.current}/>
|
|
175
|
+ </div>
|
168
|
176
|
</>
|
169
|
177
|
)
|
170
|
178
|
}
|