|
@@ -1,6 +1,6 @@
|
1
|
1
|
import React, { useMemo, useRef, useCallback, useState } from 'react'
|
2
|
2
|
// import { PageHeaderWrapper } from '@ant-design/pro-layout'
|
3
|
|
-import { notification, Spin } from 'antd'
|
|
3
|
+import { Button, notification, Spin } from 'antd'
|
4
|
4
|
import QueryTable from '@/components/QueryTable'
|
5
|
5
|
import request from '@/utils/request'
|
6
|
6
|
import apis from '@/services/apis'
|
|
@@ -44,6 +44,10 @@ export default (props) => {
|
44
|
44
|
})
|
45
|
45
|
}, [page])
|
46
|
46
|
|
|
47
|
+ const actionRender = () => {
|
|
48
|
+ return <Button type="primary" icon="plus">新增</Button>
|
|
49
|
+ }
|
|
50
|
+
|
47
|
51
|
return (
|
48
|
52
|
// <PageHeaderWrapper>
|
49
|
53
|
<Spin spinning={loading}>
|
|
@@ -53,6 +57,7 @@ export default (props) => {
|
53
|
57
|
api={apis.building.getList}
|
54
|
58
|
searchFields={searchFields}
|
55
|
59
|
columns={tableColumns}
|
|
60
|
+ actionRender={actionRender}
|
56
|
61
|
onPageChange={(pg) => setPage(pg)}
|
57
|
62
|
/>
|
58
|
63
|
</Spin>
|