|
@@ -10,6 +10,7 @@ import useRoomSelect from '../utils/hooks/useRoomSelect'
|
10
|
10
|
import NumRange from './components/NumRange'
|
11
|
11
|
|
12
|
12
|
const getListWithPoints = fetchList(apis.propUser.listWithPoints)
|
|
13
|
+const exportListWithPoints = fetch(apis.propUser.listWithPointsExport)
|
13
|
14
|
|
14
|
15
|
const Condition = props => {
|
15
|
16
|
const [communityId, setCommunityId] = useState()
|
|
@@ -182,11 +183,11 @@ export default props => {
|
182
|
183
|
}
|
183
|
184
|
|
184
|
185
|
const handleExport = () => {
|
185
|
|
- // setLoading(true)
|
186
|
|
- // buildingInfoListExport({ data: {...queryParams, communityId, pageNum: 1, pageSize: 9999} }).then(res => {
|
187
|
|
- // setLoading(false)
|
188
|
|
- // exportExcel(res, "业主列表")
|
189
|
|
- // }).catch(() => setLoading(false))
|
|
186
|
+ setLoading(true)
|
|
187
|
+ exportListWithPoints({params: {...queryParams, communityId}}).then(res => {
|
|
188
|
+ setLoading(false)
|
|
189
|
+ exportExcel(res, "业主积分")
|
|
190
|
+ }).catch(() => setLoading(false))
|
190
|
191
|
}
|
191
|
192
|
|
192
|
193
|
useEffect(() => {
|
|
@@ -206,7 +207,7 @@ export default props => {
|
206
|
207
|
<Condition onSearch={handleSearch} onReset={handleSearch} onCommunityChange={v => setCommunityId(v)} />
|
207
|
208
|
<div style={{ margin: '24px 0' }}>
|
208
|
209
|
<div style={{display: 'inline-block'}}>
|
209
|
|
- {/* <Button onClick={handleExport}>导出</Button> */}
|
|
210
|
+ <Button onClick={handleExport}>导出</Button>
|
210
|
211
|
</div>
|
211
|
212
|
</div>
|
212
|
213
|
<List
|