|
@@ -1,4 +1,5 @@
|
1
|
1
|
import React, { useMemo, useRef, useCallback, useState } from 'react'
|
|
2
|
+import { PageHeaderWrapper } from '@ant-design/pro-layout'
|
2
|
3
|
import apis from '@/services/apis'
|
3
|
4
|
import QueryTable from '@/components/QueryTable'
|
4
|
5
|
import getSearchFields from './searchFields'
|
|
@@ -25,13 +26,15 @@ export default (props) => {
|
25
|
26
|
}, [page])
|
26
|
27
|
|
27
|
28
|
return (
|
28
|
|
- <QueryTable
|
29
|
|
- ref={ref}
|
30
|
|
- rowKey="buildingId"
|
31
|
|
- api={apis.building.getList}
|
32
|
|
- searchFields={searchFields}
|
33
|
|
- columns={tableColumns}
|
34
|
|
- onPageChange={(pg) => setPage(pg)}
|
35
|
|
- />
|
|
29
|
+ <PageHeaderWrapper>
|
|
30
|
+ <QueryTable
|
|
31
|
+ ref={ref}
|
|
32
|
+ rowKey="buildingId"
|
|
33
|
+ api={apis.building.getList}
|
|
34
|
+ searchFields={searchFields}
|
|
35
|
+ columns={tableColumns}
|
|
36
|
+ onPageChange={(pg) => setPage(pg)}
|
|
37
|
+ />
|
|
38
|
+ </PageHeaderWrapper>
|
36
|
39
|
)
|
37
|
40
|
}
|