|
@@ -1,10 +1,9 @@
|
1
|
1
|
import React, { useMemo, useRef, useState } from 'react'
|
2
|
|
-import { Button, notification, Spin, Badge, Select } from 'antd'
|
3
|
|
-import { router } from 'umi'
|
|
2
|
+import { Button} from 'antd'
|
4
|
3
|
import moment from 'moment'
|
|
4
|
+import router from 'umi/router';
|
5
|
5
|
import QueryTable from '@/components/QueryTable'
|
6
|
6
|
import { fetch, apis } from '@/utils/request';
|
7
|
|
-import { useEffect } from 'react'
|
8
|
7
|
|
9
|
8
|
const searchFields = [
|
10
|
9
|
{
|
|
@@ -24,7 +23,6 @@ export default (props) => {
|
24
|
23
|
const { recommendPerson } = history.location.query
|
25
|
24
|
|
26
|
25
|
const ref = useRef()
|
27
|
|
- const [notQuery, setNotQuery] = useState(true);
|
28
|
26
|
|
29
|
27
|
const tableColumns = [
|
30
|
28
|
{
|
|
@@ -102,19 +100,12 @@ export default (props) => {
|
102
|
100
|
},
|
103
|
101
|
]
|
104
|
102
|
|
105
|
|
- useEffect(() => {
|
106
|
|
- setNotQuery(!recommendPerson);
|
107
|
|
-
|
108
|
|
- if (!recommendPerson) {
|
109
|
|
- notification.warning({ message: "请设置经纪人" })
|
110
|
|
- }
|
111
|
|
- }, [recommendPerson])
|
112
|
|
-
|
113
|
103
|
return (
|
114
|
104
|
<QueryTable
|
115
|
105
|
ref={ref}
|
116
|
106
|
rowKey="channelCustomerId"
|
117
|
107
|
api={apis.broker.getCustomerList}
|
|
108
|
+ searchPre={<Button type="link" icon="arrow-left" onClick={() => router.goBack()}>返回</Button>}
|
118
|
109
|
searchFields={searchFields}
|
119
|
110
|
columns={tableColumns}
|
120
|
111
|
params={{ recommendPerson }}
|