import React, { useEffect, useState } from 'react'; import { PageContainer } from '@ant-design/pro-components'; import { Card, Col, Row, Statistic, message, Button } from 'antd'; import TenantScopeFilter from '@/components/TenantScopeFilter'; import { ordersApi } from '@/services/orders'; import { ActionBar } from '@/components/ui'; const ProfitSharingStatisticsPage: React.FC = () => { const [loading, setLoading] = useState(false); const [stat, setStat] = useState({}); const load = async () => { setLoading(true); try { const res = await ordersApi.getProfitSharingStatistics(); setStat(res?.data || res); } catch (e) { message.error('加载统计失败'); } finally { setLoading(false); } }; useEffect(() => { load(); }, []); return ( load()} /> }> load()}>刷新} /> ); }; export default ProfitSharingStatisticsPage;