|
@@ -137,7 +137,7 @@ const Dashboard: React.FC = () => {
|
|
|
{/* 顶部信息栏 - 对照原型第276-300行 */}
|
|
{/* 顶部信息栏 - 对照原型第276-300行 */}
|
|
|
<View className="bg-gradient-to-r from-blue-500 to-purple-600 text-white rounded-2xl p-5 mb-4">
|
|
<View className="bg-gradient-to-r from-blue-500 to-purple-600 text-white rounded-2xl p-5 mb-4">
|
|
|
<View className="flex justify-between items-center">
|
|
<View className="flex justify-between items-center">
|
|
|
- <View>
|
|
|
|
|
|
|
+ <View className="flex flex-col">
|
|
|
<Text className="text-sm opacity-80">欢迎回来</Text>
|
|
<Text className="text-sm opacity-80">欢迎回来</Text>
|
|
|
<Text className="text-xl font-bold">
|
|
<Text className="text-xl font-bold">
|
|
|
{overview?.companyName || user?.name || '企业名称'}
|
|
{overview?.companyName || user?.name || '企业名称'}
|
|
@@ -148,15 +148,15 @@ const Dashboard: React.FC = () => {
|
|
|
</View>
|
|
</View>
|
|
|
</View>
|
|
</View>
|
|
|
<View className="mt-4 flex justify-between">
|
|
<View className="mt-4 flex justify-between">
|
|
|
- <View className="text-center">
|
|
|
|
|
|
|
+ <View className="flex flex-col items-center">
|
|
|
<Text className="text-2xl font-bold">{overview?.totalEmployees || 0}</Text>
|
|
<Text className="text-2xl font-bold">{overview?.totalEmployees || 0}</Text>
|
|
|
<Text className="text-xs opacity-80">在职人员</Text>
|
|
<Text className="text-xs opacity-80">在职人员</Text>
|
|
|
</View>
|
|
</View>
|
|
|
- <View className="text-center">
|
|
|
|
|
|
|
+ <View className="flex flex-col items-center">
|
|
|
<Text className="text-2xl font-bold">{overview?.pendingAssignments || 0}</Text>
|
|
<Text className="text-2xl font-bold">{overview?.pendingAssignments || 0}</Text>
|
|
|
<Text className="text-xs opacity-80">待入职</Text>
|
|
<Text className="text-xs opacity-80">待入职</Text>
|
|
|
</View>
|
|
</View>
|
|
|
- <View className="text-center">
|
|
|
|
|
|
|
+ <View className="flex flex-col items-center">
|
|
|
<Text className="text-2xl font-bold">{overview?.monthlyOrders || 0}</Text>
|
|
<Text className="text-2xl font-bold">{overview?.monthlyOrders || 0}</Text>
|
|
|
<Text className="text-xs opacity-80">本月新增</Text>
|
|
<Text className="text-xs opacity-80">本月新增</Text>
|
|
|
</View>
|
|
</View>
|
|
@@ -165,19 +165,19 @@ const Dashboard: React.FC = () => {
|
|
|
|
|
|
|
|
{/* 快速操作网格 - 对照原型第303-320行 */}
|
|
{/* 快速操作网格 - 对照原型第303-320行 */}
|
|
|
<View className="grid grid-cols-4 gap-3 mb-4">
|
|
<View className="grid grid-cols-4 gap-3 mb-4">
|
|
|
- <View className="bg-blue-50 rounded-xl p-3 text-center">
|
|
|
|
|
|
|
+ <View className="bg-blue-50 rounded-xl p-3 flex flex-col items-center">
|
|
|
<View className="i-heroicons-user-group-20-solid text-blue-500 text-lg mb-1" />
|
|
<View className="i-heroicons-user-group-20-solid text-blue-500 text-lg mb-1" />
|
|
|
<Text className="text-xs text-gray-700">人才库</Text>
|
|
<Text className="text-xs text-gray-700">人才库</Text>
|
|
|
</View>
|
|
</View>
|
|
|
- <View className="bg-green-50 rounded-xl p-3 text-center">
|
|
|
|
|
|
|
+ <View className="bg-green-50 rounded-xl p-3 flex flex-col items-center">
|
|
|
<View className="i-heroicons-chart-bar-20-solid text-green-500 text-lg mb-1" />
|
|
<View className="i-heroicons-chart-bar-20-solid text-green-500 text-lg mb-1" />
|
|
|
<Text className="text-xs text-gray-700">数据统计</Text>
|
|
<Text className="text-xs text-gray-700">数据统计</Text>
|
|
|
</View>
|
|
</View>
|
|
|
- <View className="bg-purple-50 rounded-xl p-3 text-center">
|
|
|
|
|
|
|
+ <View className="bg-purple-50 rounded-xl p-3 flex flex-col items-center">
|
|
|
<View className="i-heroicons-document-text-20-solid text-purple-500 text-lg mb-1" />
|
|
<View className="i-heroicons-document-text-20-solid text-purple-500 text-lg mb-1" />
|
|
|
<Text className="text-xs text-gray-700">订单管理</Text>
|
|
<Text className="text-xs text-gray-700">订单管理</Text>
|
|
|
</View>
|
|
</View>
|
|
|
- <View className="bg-yellow-50 rounded-xl p-3 text-center">
|
|
|
|
|
|
|
+ <View className="bg-yellow-50 rounded-xl p-3 flex flex-col items-center">
|
|
|
<View className="i-heroicons-cog-6-tooth-20-solid text-yellow-500 text-lg mb-1" />
|
|
<View className="i-heroicons-cog-6-tooth-20-solid text-yellow-500 text-lg mb-1" />
|
|
|
<Text className="text-xs text-gray-700">设置</Text>
|
|
<Text className="text-xs text-gray-700">设置</Text>
|
|
|
</View>
|
|
</View>
|
|
@@ -218,7 +218,7 @@ const Dashboard: React.FC = () => {
|
|
|
{/* 信息区域 */}
|
|
{/* 信息区域 */}
|
|
|
<View className="flex-1 ml-3">
|
|
<View className="flex-1 ml-3">
|
|
|
<View className="flex justify-between items-start">
|
|
<View className="flex justify-between items-start">
|
|
|
- <View>
|
|
|
|
|
|
|
+ <View className="flex flex-col">
|
|
|
<Text className="font-semibold text-gray-800">{allocation.name}</Text>
|
|
<Text className="font-semibold text-gray-800">{allocation.name}</Text>
|
|
|
<Text className="text-xs text-gray-500">
|
|
<Text className="text-xs text-gray-500">
|
|
|
{allocation.disabilityType} · {allocation.disabilityLevel}
|
|
{allocation.disabilityType} · {allocation.disabilityLevel}
|
|
@@ -262,7 +262,7 @@ const Dashboard: React.FC = () => {
|
|
|
<View className="mb-4">
|
|
<View className="mb-4">
|
|
|
<Text className="font-semibold text-gray-700 mb-3">数据统计</Text>
|
|
<Text className="font-semibold text-gray-700 mb-3">数据统计</Text>
|
|
|
<View className="grid grid-cols-2 gap-3">
|
|
<View className="grid grid-cols-2 gap-3">
|
|
|
- <View className="stat-card bg-white p-4 rounded-lg">
|
|
|
|
|
|
|
+ <View className="stat-card bg-white p-4 rounded-lg flex flex-col">
|
|
|
<View className="flex items-center mb-2">
|
|
<View className="flex items-center mb-2">
|
|
|
<View className="pulse-dot mr-2" />
|
|
<View className="pulse-dot mr-2" />
|
|
|
<Text className="text-sm text-gray-600">在职率</Text>
|
|
<Text className="text-sm text-gray-600">在职率</Text>
|
|
@@ -271,7 +271,7 @@ const Dashboard: React.FC = () => {
|
|
|
{overview?.totalEmployees ? '92%' : '--'}
|
|
{overview?.totalEmployees ? '92%' : '--'}
|
|
|
</Text>
|
|
</Text>
|
|
|
</View>
|
|
</View>
|
|
|
- <View className="stat-card bg-white p-4 rounded-lg">
|
|
|
|
|
|
|
+ <View className="stat-card bg-white p-4 rounded-lg flex flex-col items-center">
|
|
|
<Text className="text-sm text-gray-600 mb-2">平均薪资</Text>
|
|
<Text className="text-sm text-gray-600 mb-2">平均薪资</Text>
|
|
|
<Text className="text-2xl font-bold text-gray-800">
|
|
<Text className="text-2xl font-bold text-gray-800">
|
|
|
{allocations && allocations.length > 0
|
|
{allocations && allocations.length > 0
|