|
|
@@ -145,10 +145,11 @@ const OrderDetail: React.FC = () => {
|
|
|
|
|
|
// 转换API数据到UI格式
|
|
|
const transformedVideos = videos.map((video: CompanyVideosResponse['data'][0]) => {
|
|
|
- // 根据assetType确定视频类型
|
|
|
+ // 根据assetType确定视频类型(后端返回值:job_result, salary, tax)
|
|
|
let videoType: 'checkin_video' | 'salary_video' | 'tax_video' = 'checkin_video'
|
|
|
- if (video.assetType === 'salary_video') videoType = 'salary_video'
|
|
|
- if (video.assetType === 'tax_video') videoType = 'tax_video'
|
|
|
+ if (video.assetType === 'salary') videoType = 'salary_video'
|
|
|
+ if (video.assetType === 'tax') videoType = 'tax_video'
|
|
|
+ // job_result 是打卡视频,使用默认值 checkin_video
|
|
|
|
|
|
return {
|
|
|
id: video.id || video.fileId || 0,
|