|
@@ -20,22 +20,22 @@ function header(props) {
|
20
|
20
|
|
21
|
21
|
useEffect(() => {
|
22
|
22
|
if (orgId) {
|
23
|
|
- getDetail(orgId);
|
|
23
|
+ info(orgId);
|
24
|
24
|
}
|
25
|
25
|
}, [])
|
26
|
26
|
|
27
|
27
|
// 查询详情
|
28
|
28
|
|
29
|
29
|
|
30
|
|
- // const getDetail = orgId => {
|
31
|
|
- // request({
|
32
|
|
- // ...apis.fund.accountDetail,
|
33
|
|
- // urlData: { id: orgId },
|
34
|
|
- // }).then(data => {
|
35
|
|
- // console.log(data)
|
36
|
|
- // setNewsData(data)
|
37
|
|
- // })
|
38
|
|
- // }
|
|
30
|
+ const info = orgId => {
|
|
31
|
+ request({
|
|
32
|
+ ...apis.fund.accountDetail,
|
|
33
|
+ urlData: { id: orgId },
|
|
34
|
+ }).then(data => {
|
|
35
|
+ console.log(data)
|
|
36
|
+ setNewsData(data)
|
|
37
|
+ })
|
|
38
|
+ }
|
39
|
39
|
const [tab, changeTab] = useState('basic')
|
40
|
40
|
|
41
|
41
|
const fields = [
|