|
@@ -17,7 +17,8 @@ import { useRequireAuth } from '../../hooks'
|
|
|
|
|
|
|
|
// 组件导入
|
|
// 组件导入
|
|
|
import { CurrentEmploymentStatus } from '../../components/CurrentEmploymentStatus'
|
|
import { CurrentEmploymentStatus } from '../../components/CurrentEmploymentStatus'
|
|
|
-import { SalaryRecords } from '../../components/SalaryRecords'
|
|
|
|
|
|
|
+// 薪资记录组件暂时禁用 - 待后端数据库支持后启用
|
|
|
|
|
+// import { SalaryRecords } from '../../components/SalaryRecords'
|
|
|
import { EmploymentHistory } from '../../components/EmploymentHistory'
|
|
import { EmploymentHistory } from '../../components/EmploymentHistory'
|
|
|
|
|
|
|
|
// API客户端导入
|
|
// API客户端导入
|
|
@@ -26,7 +27,7 @@ import { talentEmploymentClient } from '../../api'
|
|
|
// 类型导入
|
|
// 类型导入
|
|
|
import {
|
|
import {
|
|
|
CurrentEmploymentStatus as CurrentEmploymentStatusType,
|
|
CurrentEmploymentStatus as CurrentEmploymentStatusType,
|
|
|
- SalaryRecord,
|
|
|
|
|
|
|
+ // SalaryRecord, // 暂时禁用
|
|
|
EmploymentHistoryItem,
|
|
EmploymentHistoryItem,
|
|
|
WorkStatus
|
|
WorkStatus
|
|
|
} from '../../types/employment'
|
|
} from '../../types/employment'
|
|
@@ -56,7 +57,11 @@ const EmploymentPage: React.FC = () => {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
- // 获取薪资记录
|
|
|
|
|
|
|
+ /*
|
|
|
|
|
+ * 获取薪资记录 - 暂时禁用
|
|
|
|
|
+ * TODO: 待后端数据库支持后启用
|
|
|
|
|
+ */
|
|
|
|
|
+ /*
|
|
|
const { data: salaryRecordsData, isLoading: salaryLoading, error: salaryError } = useQuery({
|
|
const { data: salaryRecordsData, isLoading: salaryLoading, error: salaryError } = useQuery({
|
|
|
queryKey: ['salary-records'],
|
|
queryKey: ['salary-records'],
|
|
|
queryFn: async () => {
|
|
queryFn: async () => {
|
|
@@ -75,6 +80,7 @@ const EmploymentPage: React.FC = () => {
|
|
|
return (data.data || []) as SalaryRecord[]
|
|
return (data.data || []) as SalaryRecord[]
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
+ */
|
|
|
|
|
|
|
|
// 获取就业历史
|
|
// 获取就业历史
|
|
|
const { data: employmentHistoryData, isLoading: historyLoading, error: historyError } = useQuery({
|
|
const { data: employmentHistoryData, isLoading: historyLoading, error: historyError } = useQuery({
|
|
@@ -104,6 +110,8 @@ const EmploymentPage: React.FC = () => {
|
|
|
}
|
|
}
|
|
|
}, [statusError])
|
|
}, [statusError])
|
|
|
|
|
|
|
|
|
|
+ // 薪资记录错误处理 - 暂时禁用
|
|
|
|
|
+ /*
|
|
|
React.useEffect(() => {
|
|
React.useEffect(() => {
|
|
|
if (salaryError) {
|
|
if (salaryError) {
|
|
|
Taro.showToast({
|
|
Taro.showToast({
|
|
@@ -112,6 +120,7 @@ const EmploymentPage: React.FC = () => {
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
}, [salaryError])
|
|
}, [salaryError])
|
|
|
|
|
+ */
|
|
|
|
|
|
|
|
React.useEffect(() => {
|
|
React.useEffect(() => {
|
|
|
if (historyError) {
|
|
if (historyError) {
|
|
@@ -122,13 +131,15 @@ const EmploymentPage: React.FC = () => {
|
|
|
}
|
|
}
|
|
|
}, [historyError])
|
|
}, [historyError])
|
|
|
|
|
|
|
|
- // 处理查看全部薪资记录
|
|
|
|
|
|
|
+ /*
|
|
|
|
|
+ * 处理查看全部薪资记录 - 暂时禁用
|
|
|
const handleViewAllSalaryRecords = () => {
|
|
const handleViewAllSalaryRecords = () => {
|
|
|
Taro.showToast({
|
|
Taro.showToast({
|
|
|
title: '全部薪资记录功能开发中',
|
|
title: '全部薪资记录功能开发中',
|
|
|
icon: 'none'
|
|
icon: 'none'
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
+ */
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<View className="h-screen bg-gray-100 flex flex-col">
|
|
<View className="h-screen bg-gray-100 flex flex-col">
|
|
@@ -156,15 +167,18 @@ const EmploymentPage: React.FC = () => {
|
|
|
<CurrentEmploymentStatus status={currentStatus || null} loading={statusLoading} />
|
|
<CurrentEmploymentStatus status={currentStatus || null} loading={statusLoading} />
|
|
|
</View>
|
|
</View>
|
|
|
|
|
|
|
|
- {/* 薪资记录卡片 */}
|
|
|
|
|
- <View className="px-4">
|
|
|
|
|
|
|
+ {/* 薪资记录卡片 - 暂时隐藏
|
|
|
|
|
+ * TODO: 后端数据库结构尚不支持薪资记录功能,待数据库结构支持后再启用
|
|
|
|
|
+ * 相关API: GET /api/v1/rencai/employment/salary-records
|
|
|
|
|
+ */}
|
|
|
|
|
+ {/* <View className="px-4">
|
|
|
<SalaryRecords
|
|
<SalaryRecords
|
|
|
records={salaryRecordsData || []}
|
|
records={salaryRecordsData || []}
|
|
|
loading={salaryLoading}
|
|
loading={salaryLoading}
|
|
|
onViewAll={handleViewAllSalaryRecords}
|
|
onViewAll={handleViewAllSalaryRecords}
|
|
|
showViewAll={true}
|
|
showViewAll={true}
|
|
|
/>
|
|
/>
|
|
|
- </View>
|
|
|
|
|
|
|
+ </View> */}
|
|
|
|
|
|
|
|
{/* 就业历史时间线 */}
|
|
{/* 就业历史时间线 */}
|
|
|
<View className="px-4 pb-4">
|
|
<View className="px-4 pb-4">
|