Browse Source

chore: 企业小程序人才详情页暂时隐藏部分功能

隐藏以下三个模块:
- 工作信息中的岗位类型字段
- 薪资历史记录卡片
- 联系按钮

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
yourname 2 weeks ago
parent
commit
5d8157145e

+ 13 - 9
mini-ui-packages/yongren-talent-management-ui/src/pages/TalentDetail/TalentDetail.tsx

@@ -154,7 +154,8 @@ const TalentDetail: React.FC<TalentDetailProps> = () => {
   })
 
   // 获取薪资历史记录 - 使用企业专用薪资历史API
-  const { data: salaryHistory, isLoading: historyLoading } = useQuery({
+  // TODO: 薪资历史记录暂时隐藏,保留查询以便后续恢复 - 2025-03-25
+  const { data: _salaryHistory, isLoading: historyLoading } = useQuery({
     queryKey: ['salaryHistory', talentId],
     queryFn: async () => {
       if (!talentId) throw new Error('无效的人才ID')
@@ -510,10 +511,11 @@ const TalentDetail: React.FC<TalentDetailProps> = () => {
                       <Text className="text-gray-500">所属订单</Text>
                       <Text className="text-gray-800">{workInfo?.orderId ? `订单 #${workInfo.orderId}` : '无'}</Text>
                     </View>
-                    <View className="flex justify-between">
+                    {/* TODO: 岗位类型暂时隐藏 - 2025-03-25 */}
+                    {/* <View className="flex justify-between">
                       <Text className="text-gray-500">岗位类型</Text>
                       <Text className="text-gray-800">{workInfo?.position || '未指定'}</Text>
-                    </View>
+                    </View> */}
                   </View>
                 </View>
 
@@ -612,8 +614,9 @@ const TalentDetail: React.FC<TalentDetailProps> = () => {
                   )}
                 </View>
 
+                {/* TODO: 薪资历史记录卡片暂时隐藏 - 2025-03-25 */}
                 {/* 薪资历史记录卡片 */}
-                <View className="card bg-white p-4 mb-4">
+                {/* <View className="card bg-white p-4 mb-4">
                   <Text className="font-semibold text-gray-700 mb-3">薪资历史记录</Text>
                   {historyLoading ? (
                     <View className="space-y-2">
@@ -648,7 +651,7 @@ const TalentDetail: React.FC<TalentDetailProps> = () => {
                       <Text className="text-gray-400 text-sm">暂无薪资历史记录</Text>
                     </View>
                   )}
-                </View>
+                </View> */}
 
                 {/* 个人征信文件区域 */}
                 <View className="card bg-white p-4">
@@ -753,10 +756,11 @@ const TalentDetail: React.FC<TalentDetailProps> = () => {
                   )}
                 </View>
 
+                {/* TODO: 联系按钮暂时隐藏 - 2025-03-25 */}
                 {/* 操作按钮 - 原型第831-839行 */}
-                <View className="mt-4">
+                {/* <View className="mt-4"> */}
                   {/* 联系按钮 */}
-                  <View
+                  {/* <View
                     className="w-full bg-blue-500 text-white py-3 rounded-lg font-medium flex items-center justify-center active:bg-blue-600"
                     onClick={() => {
                       // 联系功能:拨打电话或跳转
@@ -774,8 +778,8 @@ const TalentDetail: React.FC<TalentDetailProps> = () => {
                   >
                     <Text className="i-heroicons-phone-20-solid mr-2" />
                     <Text>联系</Text>
-                  </View>
-                </View>
+                  </View> */}
+                {/* </View> */}
 
               </View>
             </>

+ 13 - 9
mini/src/pages/yongren/talent/detail/index.tsx

@@ -156,7 +156,8 @@ const TalentDetail: React.FC<TalentDetailProps> = () => {
   })
 
   // 获取薪资历史记录 - 使用企业专用薪资历史API
-  const { data: salaryHistory, isLoading: historyLoading } = useQuery({
+  // TODO: 薪资历史记录暂时隐藏,保留查询以便后续恢复 - 2025-03-25
+  const { data: _salaryHistory, isLoading: historyLoading } = useQuery({
     queryKey: ['salaryHistory', talentId],
     queryFn: async () => {
       if (!talentId) throw new Error('无效的人才ID')
@@ -503,10 +504,11 @@ const TalentDetail: React.FC<TalentDetailProps> = () => {
                       <Text className="text-gray-500">所属订单</Text>
                       <Text className="text-gray-800">{workInfo?.orderId ? `订单 #${workInfo.orderId}` : '无'}</Text>
                     </View>
-                    <View className="flex justify-between">
+                    {/* TODO: 岗位类型暂时隐藏 - 2025-03-25 */}
+                    {/* <View className="flex justify-between">
                       <Text className="text-gray-500">岗位类型</Text>
                       <Text className="text-gray-800">{workInfo?.position || '未指定'}</Text>
-                    </View>
+                    </View> */}
                   </View>
                 </View>
 
@@ -608,8 +610,9 @@ const TalentDetail: React.FC<TalentDetailProps> = () => {
                   )}
                 </View>
 
+                {/* TODO: 薪资历史记录卡片暂时隐藏 - 2025-03-25 */}
                 {/* 薪资历史记录卡片 */}
-                <View className="card bg-white p-4 mb-4">
+                {/* <View className="card bg-white p-4 mb-4">
                   <Text className="font-semibold text-gray-700 mb-3">薪资历史记录</Text>
                   {historyLoading ? (
                     <View className="space-y-2">
@@ -644,7 +647,7 @@ const TalentDetail: React.FC<TalentDetailProps> = () => {
                       <Text className="text-gray-400 text-sm">暂无薪资历史记录</Text>
                     </View>
                   )}
-                </View>
+                </View> */}
 
                 {/* 个人征信文件区域 */}
                 <View className="card bg-white p-4">
@@ -749,10 +752,11 @@ const TalentDetail: React.FC<TalentDetailProps> = () => {
                   )}
                 </View>
 
+                {/* TODO: 联系按钮暂时隐藏 - 2025-03-25 */}
                 {/* 操作按钮 - 原型第831-839行 */}
-                <View className="mt-4">
+                {/* <View className="mt-4"> */}
                   {/* 联系按钮 */}
-                  <View
+                  {/* <View
                     className="w-full bg-blue-500 text-white py-3 rounded-lg font-medium flex items-center justify-center active:bg-blue-600"
                     onClick={() => {
                       // 联系功能:拨打电话或跳转
@@ -770,8 +774,8 @@ const TalentDetail: React.FC<TalentDetailProps> = () => {
                   >
                     <Text className="i-heroicons-phone-20-solid mr-2" />
                     <Text>联系</Text>
-                  </View>
-                </View>
+                  </View> */}
+                {/* </View> */}
 
               </View>
             </>