|
@@ -1,5 +1,5 @@
|
1
|
1
|
import React, { useState, useEffect } from 'react'
|
2
|
|
-import { Select, Spin, Table, Button, Form, Input, Icon, Modal } from 'antd'
|
|
2
|
+import { Select, Spin, Table, Button, Form, Input, Icon, Modal, Popconfirm } from 'antd'
|
3
|
3
|
import NavLink from 'umi/navlink'
|
4
|
4
|
import { fetch, fetchList, apis } from '@/utils/request'
|
5
|
5
|
import Search from '../components/Search'
|
|
@@ -178,8 +178,8 @@ export default props => {
|
178
|
178
|
useEffect(() => {
|
179
|
179
|
setLoading(true)
|
180
|
180
|
buildingInfoList({ data: queryParams }).then(res => {
|
181
|
|
- const { records, ...pageInfo } = res || {}
|
182
|
|
- setListData(records)
|
|
181
|
+ const { list, ...pageInfo } = res || {}
|
|
182
|
+ setListData(list)
|
183
|
183
|
setPagination(pageInfo)
|
184
|
184
|
setLoading(false)
|
185
|
185
|
}).catch(() => setLoading(false))
|