|
@@ -2,6 +2,7 @@ import React, { useEffect, useState } from 'react'
|
|
|
import { View, Text, Input, ScrollView } from '@tarojs/components'
|
|
import { View, Text, Input, ScrollView } from '@tarojs/components'
|
|
|
import Taro from '@tarojs/taro'
|
|
import Taro from '@tarojs/taro'
|
|
|
import { useQuery, useQueryClient } from '@tanstack/react-query'
|
|
import { useQuery, useQueryClient } from '@tanstack/react-query'
|
|
|
|
|
+import dayjs from 'dayjs'
|
|
|
import { YongrenTabBarLayout } from '@d8d/yongren-shared-ui/components/YongrenTabBarLayout'
|
|
import { YongrenTabBarLayout } from '@d8d/yongren-shared-ui/components/YongrenTabBarLayout'
|
|
|
import { PageContainer } from '@d8d/mini-shared-ui-components/components/page-container'
|
|
import { PageContainer } from '@d8d/mini-shared-ui-components/components/page-container'
|
|
|
import { Navbar } from '@d8d/mini-shared-ui-components/components/navbar'
|
|
import { Navbar } from '@d8d/mini-shared-ui-components/components/navbar'
|
|
@@ -338,7 +339,7 @@ const TalentManagement: React.FC<TalentManagementProps> = () => {
|
|
|
</Text>
|
|
</Text>
|
|
|
</View>
|
|
</View>
|
|
|
<View className="mt-2 flex justify-between text-xs text-gray-500">
|
|
<View className="mt-2 flex justify-between text-xs text-gray-500">
|
|
|
- <Text>入职: {talent.latestJoinDate ? new Date(talent.latestJoinDate).toLocaleDateString() : '未入职'}</Text>
|
|
|
|
|
|
|
+ <Text>入职: {talent.latestJoinDate ? dayjs(talent.latestJoinDate).format('YYYY-MM-DD') : '未入职'}</Text>
|
|
|
<Text>薪资: {formatSalary(talent.salaryDetail)}</Text>
|
|
<Text>薪资: {formatSalary(talent.salaryDetail)}</Text>
|
|
|
</View>
|
|
</View>
|
|
|
</View>
|
|
</View>
|