forked from 77media/video-flow
任务执行时间线底部描述字体放大
This commit is contained in:
parent
c0d3a0dfd3
commit
3534bd4856
@ -1094,7 +1094,7 @@ export function NetworkTimeline({
|
||||
<div className="pt-2 border-t border-gray-700">
|
||||
<div className="text-gray-400 text-sm mb-1">任务详情:</div>
|
||||
<div className="text-gray-300 text-sm space-y-1">
|
||||
<div>任务ID: <span className="font-mono text-xs">{task.id}</span></div>
|
||||
<div>任务ID: <span className="font-mono text-sm">{task.id}</span></div>
|
||||
<div>任务类型: <span className="text-white">{task.type}</span></div>
|
||||
<div>失败时间: <span className="text-white">{(() => {
|
||||
const taskTimes = getTaskTimes(task);
|
||||
@ -1443,12 +1443,12 @@ ${task.status === 'IN_PROGRESS' ? `进度: ${task.progress}%` : ''}
|
||||
return (
|
||||
<div className="grid grid-cols-2 gap-6">
|
||||
<div>
|
||||
<h4 className="text-sm font-medium text-white mb-2">
|
||||
<h4 className="text-base font-medium text-white mb-3">
|
||||
{task.level === 0 ? '主任务详情' : '子任务详情'}
|
||||
</h4>
|
||||
<div className="space-y-1 text-xs">
|
||||
<div className="space-y-2 text-sm">
|
||||
<div><span className="text-gray-400">任务名称:</span> <span className="text-white">{task.displayName}</span></div>
|
||||
<div><span className="text-gray-400">任务ID:</span> <span className="text-white font-mono text-[10px]">{task.name}</span></div>
|
||||
<div><span className="text-gray-400">任务ID:</span> <span className="text-white font-mono text-sm">{task.name}</span></div>
|
||||
<div><span className="text-gray-400">状态:</span> <span className={getTaskStatusColor(task.status)}>{getTaskStatusText(task.status)}</span></div>
|
||||
<div><span className="text-gray-400">类型:</span> <span className="text-white">{task.type}</span></div>
|
||||
<div><span className="text-gray-400">层级:</span> <span className="text-white">{task.level === 0 ? '主任务' : '子任务'}</span></div>
|
||||
@ -1467,15 +1467,15 @@ ${task.status === 'IN_PROGRESS' ? `进度: ${task.progress}%` : ''}
|
||||
const taskTimes = getTaskTimes(task);
|
||||
return (
|
||||
<>
|
||||
<div className="border-t border-gray-700 pt-2 mt-2">
|
||||
<div className="text-gray-300 font-medium text-xs mb-1">⏰ 时间信息</div>
|
||||
<div><span className="text-gray-400">开始时间:</span> <span className="text-green-400 text-[10px]">{formatDateTime(taskTimes.startTime)}</span></div>
|
||||
<div><span className="text-gray-400">结束时间:</span> <span className="text-blue-400 text-[10px]">{formatDateTime(taskTimes.endTime)}</span></div>
|
||||
<div className="border-t border-gray-700 pt-3 mt-3">
|
||||
<div className="text-gray-300 font-medium text-sm mb-2">⏰ 时间信息</div>
|
||||
<div><span className="text-gray-400">开始时间:</span> <span className="text-green-400 text-sm">{formatDateTime(taskTimes.startTime)}</span></div>
|
||||
<div><span className="text-gray-400">结束时间:</span> <span className="text-blue-400 text-sm">{formatDateTime(taskTimes.endTime)}</span></div>
|
||||
{taskTimes.createdAt && taskTimes.createdAt !== taskTimes.startTime && (
|
||||
<div><span className="text-gray-400">创建时间:</span> <span className="text-gray-300 text-[10px]">{formatDateTime(taskTimes.createdAt)}</span></div>
|
||||
<div><span className="text-gray-400">创建时间:</span> <span className="text-gray-300 text-sm">{formatDateTime(taskTimes.createdAt)}</span></div>
|
||||
)}
|
||||
{taskTimes.updatedAt && taskTimes.updatedAt !== taskTimes.endTime && (
|
||||
<div><span className="text-gray-400">更新时间:</span> <span className="text-gray-300 text-[10px]">{formatDateTime(taskTimes.updatedAt)}</span></div>
|
||||
<div><span className="text-gray-400">更新时间:</span> <span className="text-gray-300 text-sm">{formatDateTime(taskTimes.updatedAt)}</span></div>
|
||||
)}
|
||||
{taskTimes.startTime && taskTimes.endTime && (
|
||||
<div><span className="text-gray-400">执行时长:</span> <span className="text-yellow-400 text-[10px]">{formatTime(task.executionTime)}</span></div>
|
||||
@ -1532,11 +1532,11 @@ ${task.status === 'IN_PROGRESS' ? `进度: ${task.progress}%` : ''}
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h4 className="text-sm font-medium text-white mb-2">执行分析</h4>
|
||||
<div className="space-y-1 text-xs">
|
||||
<h4 className="text-base font-medium text-white mb-3">执行分析</h4>
|
||||
<div className="space-y-2 text-sm">
|
||||
<div><span className="text-gray-400">总时间:</span> <span className="text-white">{formatTime(task.executionTime)}</span></div>
|
||||
<div><span className="text-gray-400">AI处理:</span> <span className="text-white">{formatTime(task.phases.aiProcessing || 0)}</span></div>
|
||||
<div><span className="text-gray-400">数据大小:</span> <span className="text-white">{formatSize(task.dataSize)}</span></div>
|
||||
{/* <div><span className="text-gray-400">数据大小:</span> <span className="text-white">{formatSize(task.dataSize)}</span></div> */}
|
||||
{task.level === 0 && task.taskResult?.total_count && (
|
||||
<div><span className="text-gray-400">子任务数:</span> <span className="text-white">{task.taskResult.total_count}</span></div>
|
||||
)}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user