|
@@ -5,6 +5,7 @@ import { useQuery, useQueryClient } from '@tanstack/react-query'
|
|
|
import dayjs from 'dayjs'
|
|
import dayjs from 'dayjs'
|
|
|
import { YongrenTabBarLayout } from '@/components/YongrenTabBarLayout'
|
|
import { YongrenTabBarLayout } from '@/components/YongrenTabBarLayout'
|
|
|
import { Navbar } from '@d8d/mini-shared-ui-components/components/navbar'
|
|
import { Navbar } from '@d8d/mini-shared-ui-components/components/navbar'
|
|
|
|
|
+import { NameAvatar } from '@/components/NameAvatar'
|
|
|
import { enterpriseCompanyClient } from '@/api'
|
|
import { enterpriseCompanyClient } from '@/api'
|
|
|
import { enterpriseStatisticsClient } from '@/api/enterpriseStatisticsClient'
|
|
import { enterpriseStatisticsClient } from '@/api/enterpriseStatisticsClient'
|
|
|
import { useAuth, useRequireAuth } from '@/hooks'
|
|
import { useAuth, useRequireAuth } from '@/hooks'
|
|
@@ -12,7 +13,7 @@ import type {
|
|
|
EmploymentRateResponse,
|
|
EmploymentRateResponse,
|
|
|
AverageSalaryResponse
|
|
AverageSalaryResponse
|
|
|
} from '@/types/statisticsTypes'
|
|
} from '@/types/statisticsTypes'
|
|
|
-// import './Dashboard.css'
|
|
|
|
|
|
|
+import './Dashboard.css'
|
|
|
|
|
|
|
|
// 类型定义
|
|
// 类型定义
|
|
|
interface OverviewData {
|
|
interface OverviewData {
|
|
@@ -315,11 +316,11 @@ const Dashboard: React.FC = () => {
|
|
|
onClick={() => handleTalentCardClick(allocation.id)}
|
|
onClick={() => handleTalentCardClick(allocation.id)}
|
|
|
>
|
|
>
|
|
|
{/* 头像区域 */}
|
|
{/* 头像区域 */}
|
|
|
- <View className={`name-avatar ${allocation.avatarColor} w-10 h-10 rounded-full flex items-center justify-center`}>
|
|
|
|
|
- <Text className="text-white font-semibold">
|
|
|
|
|
- {allocation.name.charAt(0)}
|
|
|
|
|
- </Text>
|
|
|
|
|
- </View>
|
|
|
|
|
|
|
+ <NameAvatar
|
|
|
|
|
+ name={allocation.name}
|
|
|
|
|
+ size="sm"
|
|
|
|
|
+ id={parseInt(allocation.id)}
|
|
|
|
|
+ />
|
|
|
|
|
|
|
|
{/* 信息区域 */}
|
|
{/* 信息区域 */}
|
|
|
<View className="flex-1 ml-3">
|
|
<View className="flex-1 ml-3">
|