|
|
|
|
1
|
import React, { useState, useEffect } from 'react'
|
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
|
import NavLink from 'umi/navlink'
|
3
|
import NavLink from 'umi/navlink'
|
4
|
import { fetch, fetchList, apis } from '@/utils/request'
|
4
|
import { fetch, fetchList, apis } from '@/utils/request'
|
5
|
import Search from '../components/Search'
|
5
|
import Search from '../components/Search'
|
|
|
|
|
178
|
useEffect(() => {
|
178
|
useEffect(() => {
|
179
|
setLoading(true)
|
179
|
setLoading(true)
|
180
|
buildingInfoList({ data: queryParams }).then(res => {
|
180
|
buildingInfoList({ data: queryParams }).then(res => {
|
181
|
- const { records, ...pageInfo } = res || {}
|
|
|
182
|
- setListData(records)
|
|
|
|
|
181
|
+ const { list, ...pageInfo } = res || {}
|
|
|
182
|
+ setListData(list)
|
183
|
setPagination(pageInfo)
|
183
|
setPagination(pageInfo)
|
184
|
setLoading(false)
|
184
|
setLoading(false)
|
185
|
}).catch(() => setLoading(false))
|
185
|
}).catch(() => setLoading(false))
|