|
@@ -66,7 +66,7 @@ const Dashboard: React.FC = () => {
|
|
|
|
|
|
|
|
// 模拟通知数据
|
|
// 模拟通知数据
|
|
|
const notifications: Notification[] = [
|
|
const notifications: Notification[] = [
|
|
|
- { id: 1, iconClass: 'i-heroicons-banknote-20-solid', iconColor: 'green', title: '薪资发放通知', subtitle: '11月薪资已发放,请查收' },
|
|
|
|
|
|
|
+ { id: 1, iconClass: 'i-heroicons-check-circle-20-solid', iconColor: 'green', title: '薪资发放通知', subtitle: '11月薪资已发放,请查收' },
|
|
|
{ id: 2, iconClass: 'i-heroicons-exclamation-circle-20-solid', iconColor: 'blue', title: '考勤异常提醒', subtitle: '11月20日考勤异常,请及时处理' },
|
|
{ id: 2, iconClass: 'i-heroicons-exclamation-circle-20-solid', iconColor: 'blue', title: '考勤异常提醒', subtitle: '11月20日考勤异常,请及时处理' },
|
|
|
{ id: 3, iconClass: 'i-heroicons-building-office-2-20-solid', iconColor: 'yellow', title: '企业通知', subtitle: '下周培训安排已更新' },
|
|
{ id: 3, iconClass: 'i-heroicons-building-office-2-20-solid', iconColor: 'yellow', title: '企业通知', subtitle: '下周培训安排已更新' },
|
|
|
{ id: 4, iconClass: 'i-heroicons-wrench-screwdriver-20-solid', iconColor: 'red', title: '系统维护通知', subtitle: '系统将于12月1日维护' },
|
|
{ id: 4, iconClass: 'i-heroicons-wrench-screwdriver-20-solid', iconColor: 'red', title: '系统维护通知', subtitle: '系统将于12月1日维护' },
|
|
@@ -168,7 +168,7 @@ const Dashboard: React.FC = () => {
|
|
|
placeholder={true}
|
|
placeholder={true}
|
|
|
/>
|
|
/>
|
|
|
|
|
|
|
|
- <View className="px-4 pb-4">
|
|
|
|
|
|
|
+ <View className="px-4 pb-20">
|
|
|
{/* 个人概览卡片 - 蓝色渐变背景 */}
|
|
{/* 个人概览卡片 - 蓝色渐变背景 */}
|
|
|
<View
|
|
<View
|
|
|
className="rounded-2xl p-6 mb-4 shadow-md"
|
|
className="rounded-2xl p-6 mb-4 shadow-md"
|
|
@@ -202,15 +202,15 @@ const Dashboard: React.FC = () => {
|
|
|
|
|
|
|
|
{/* 3列统计数据 */}
|
|
{/* 3列统计数据 */}
|
|
|
<View className="flex justify-between mt-4">
|
|
<View className="flex justify-between mt-4">
|
|
|
- <View className="text-center">
|
|
|
|
|
|
|
+ <View className="flex flex-col items-center">
|
|
|
<Text className="text-white text-2xl font-bold">28</Text>
|
|
<Text className="text-white text-2xl font-bold">28</Text>
|
|
|
<Text className="text-white/80 text-xs">本月出勤</Text>
|
|
<Text className="text-white/80 text-xs">本月出勤</Text>
|
|
|
</View>
|
|
</View>
|
|
|
- <View className="text-center">
|
|
|
|
|
|
|
+ <View className="flex flex-col items-center">
|
|
|
<Text className="text-white text-2xl font-bold">0</Text>
|
|
<Text className="text-white text-2xl font-bold">0</Text>
|
|
|
<Text className="text-white/80 text-xs">异常记录</Text>
|
|
<Text className="text-white/80 text-xs">异常记录</Text>
|
|
|
</View>
|
|
</View>
|
|
|
- <View className="text-center">
|
|
|
|
|
|
|
+ <View className="flex flex-col items-center">
|
|
|
<Text className="text-white text-2xl font-bold">¥4,800</Text>
|
|
<Text className="text-white text-2xl font-bold">¥4,800</Text>
|
|
|
<Text className="text-white/80 text-xs">本月薪资</Text>
|
|
<Text className="text-white/80 text-xs">本月薪资</Text>
|
|
|
</View>
|
|
</View>
|
|
@@ -280,7 +280,7 @@ const Dashboard: React.FC = () => {
|
|
|
className="bg-green-50 rounded-xl p-3 flex flex-col items-center justify-center"
|
|
className="bg-green-50 rounded-xl p-3 flex flex-col items-center justify-center"
|
|
|
onClick={() => handleQuickAction('attendance')}
|
|
onClick={() => handleQuickAction('attendance')}
|
|
|
>
|
|
>
|
|
|
- <View className="i-heroicons-calendar-check-20-solid text-green-500 text-lg mb-1" />
|
|
|
|
|
|
|
+ <View className="i-heroicons-document-text-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>
|
|
|
|
|
|
|
@@ -288,7 +288,7 @@ const Dashboard: React.FC = () => {
|
|
|
className="bg-purple-50 rounded-xl p-3 flex flex-col items-center justify-center"
|
|
className="bg-purple-50 rounded-xl p-3 flex flex-col items-center justify-center"
|
|
|
onClick={() => handleQuickAction('employment')}
|
|
onClick={() => handleQuickAction('employment')}
|
|
|
>
|
|
>
|
|
|
- <View className="i-heroicons-banknote-20-solid text-purple-500 text-lg mb-1" />
|
|
|
|
|
|
|
+ <View className="i-heroicons-chart-bar-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>
|
|
|
|
|
|