|
@@ -121,6 +121,24 @@ function header(props) {
|
121
|
121
|
getList({ pageNum: 1, pageSize: 10 })
|
122
|
122
|
}
|
123
|
123
|
|
|
124
|
+ // 导出
|
|
125
|
+ const exportList = () => {
|
|
126
|
+ let { LocalDate, ...submitValue } = props.form.getFieldsValue()
|
|
127
|
+
|
|
128
|
+ request({ ...apis.fund.accountExport, params: { ...submitValue } }).then(data => {
|
|
129
|
+ if (!data) {
|
|
130
|
+ return
|
|
131
|
+ }
|
|
132
|
+ const url = window.URL.createObjectURL(new Blob([data]))
|
|
133
|
+ const link = document.createElement('a')
|
|
134
|
+ link.style.display = 'none'
|
|
135
|
+ link.href = url
|
|
136
|
+ link.setAttribute('download', '账户列表.xlsx')
|
|
137
|
+ document.body.append(link)
|
|
138
|
+ link.click()
|
|
139
|
+ }).catch()
|
|
140
|
+ }
|
|
141
|
+
|
124
|
142
|
const toDeatil = (row) => {
|
125
|
143
|
router.push({
|
126
|
144
|
pathname: '/fundManagement/AccountDetail',
|
|
@@ -153,6 +171,9 @@ function header(props) {
|
153
|
171
|
</Button>
|
154
|
172
|
</Form.Item>
|
155
|
173
|
</Form>
|
|
174
|
+ <div>
|
|
175
|
+ <Button type="danger" style={{ float: 'right', marginBottom: '20px', zIndex: 1 }} onClick={() => exportList()} >导出</Button>
|
|
176
|
+ </div>
|
156
|
177
|
<Table rowKey={r => r.accountId} dataSource={data.records} columns={columns} pagination={false} />
|
157
|
178
|
<div style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '30px' }}>
|
158
|
179
|
<Pagination showQuickJumper defaultCurrent={1} total={data.total} onChange={changePageNum} current={data.current} />
|