|
@@ -3,7 +3,9 @@ import { View, Text, ScrollView, Picker } from '@tarojs/components'
|
|
|
import { useQuery } from '@tanstack/react-query'
|
|
import { useQuery } from '@tanstack/react-query'
|
|
|
import { YongrenTabBarLayout } from '@d8d/yongren-shared-ui/components/YongrenTabBarLayout'
|
|
import { YongrenTabBarLayout } from '@d8d/yongren-shared-ui/components/YongrenTabBarLayout'
|
|
|
import { Navbar } from '@d8d/mini-shared-ui-components/components/navbar'
|
|
import { Navbar } from '@d8d/mini-shared-ui-components/components/navbar'
|
|
|
-import { ColumnChart, PieChart, BarChart } from '@d8d/mini-charts'
|
|
|
|
|
|
|
+import { ColumnChart } from '@d8d/mini-charts/components/ColumnChart'
|
|
|
|
|
+import { PieChart } from '@d8d/mini-charts/components/PieChart'
|
|
|
|
|
+import { BarChart } from '@d8d/mini-charts/components/BarChart'
|
|
|
import { enterpriseStatisticsClient } from '../../api/enterpriseStatisticsClient'
|
|
import { enterpriseStatisticsClient } from '../../api/enterpriseStatisticsClient'
|
|
|
import type {
|
|
import type {
|
|
|
DisabilityTypeDistributionResponse,
|
|
DisabilityTypeDistributionResponse,
|
|
@@ -223,6 +225,7 @@ const Statistics: React.FC<StatisticsProps> = () => {
|
|
|
</View>
|
|
</View>
|
|
|
</View>
|
|
</View>
|
|
|
|
|
|
|
|
|
|
+
|
|
|
{/* 统计卡片 */}
|
|
{/* 统计卡片 */}
|
|
|
<View className="grid grid-cols-2 gap-3 mb-4">
|
|
<View className="grid grid-cols-2 gap-3 mb-4">
|
|
|
<View className="stat-card bg-white rounded-lg p-3 shadow-sm flex flex-col">
|
|
<View className="stat-card bg-white rounded-lg p-3 shadow-sm flex flex-col">
|