|
@@ -2,6 +2,7 @@ import React, { useEffect, useState } from 'react'
|
|
|
import { View, Text, ScrollView } from '@tarojs/components'
|
|
import { View, Text, 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 { Navbar } from '@d8d/mini-shared-ui-components/components/navbar'
|
|
import { Navbar } from '@d8d/mini-shared-ui-components/components/navbar'
|
|
|
import { enterpriseCompanyClient } from '../../api'
|
|
import { enterpriseCompanyClient } from '../../api'
|
|
@@ -72,7 +73,7 @@ const Dashboard: React.FC = () => {
|
|
|
const status = statusMap[talent.workStatus] || '在职'
|
|
const status = statusMap[talent.workStatus] || '在职'
|
|
|
|
|
|
|
|
// 格式化日期
|
|
// 格式化日期
|
|
|
- const joinDate = talent.joinDate ? new Date(talent.joinDate).toLocaleDateString('zh-CN') : '未知'
|
|
|
|
|
|
|
+ const joinDate = talent.joinDate ? dayjs(talent.joinDate).format('YYYY-MM-DD') : '未知'
|
|
|
|
|
|
|
|
return {
|
|
return {
|
|
|
id: talent.personId?.toString() || '0',
|
|
id: talent.personId?.toString() || '0',
|