|
|
@ -10,6 +10,12 @@ function DataShare(props) { |
|
|
|
cacheKey: 'datatotal', |
|
|
|
}); |
|
|
|
|
|
|
|
const { data: restfulInfo = {} } = useFsRequest({ |
|
|
|
url: 'homepage/restful/info', |
|
|
|
pollingInterval: 1000 * 60, |
|
|
|
cacheKey: 'restfulInfo', |
|
|
|
}); |
|
|
|
|
|
|
|
const renderItem = (s) => { |
|
|
|
return <div className='_item_content'> |
|
|
|
<div className={'_item_icon' + s.key} /> |
|
|
@ -24,11 +30,11 @@ function DataShare(props) { |
|
|
|
|
|
|
|
const leftData = [ |
|
|
|
{ key: '1', data: mathRound(dataTotal?.total), unit: '万条', title: '共享库数据总量' }, |
|
|
|
{ key: '2', data: 2000, unit: '次', title: '访问接口总次数' }, |
|
|
|
{ key: '3', data: 2000, unit: '个', title: '访问接口用户总数' }] |
|
|
|
{ key: '2', data: restfulInfo?.total, unit: '次', title: '访问接口总次数' }, |
|
|
|
{ key: '3', data: restfulInfo?.totalUser, unit: '个', title: '访问接口用户总数' }] |
|
|
|
const rightData = [ |
|
|
|
{ key: '2', data: 2000, unit: '次', title: '接口访问次数' }, |
|
|
|
{ key: '3', data: 2000, unit: '个', title: '访问接口用户总数' }] |
|
|
|
{ key: '2', data: restfulInfo?.todayTotal, unit: '次', title: '接口访问次数' }, |
|
|
|
{ key: '3', data: restfulInfo?.todayUser, unit: '个', title: '访问接口用户总数' }] |
|
|
|
|
|
|
|
return <Box title={"数据共享"} > |
|
|
|
<div className='data_share'> |
|
|
|