perf(short-drama-agent-front): 优化记录加载与工作区体验
This commit is contained in:
1 parent
d0264c08ce
commit
db9aea1694
111 files changed
+1680
-1290
No files matched your search
@@ -84,7 +84,7 @@ export function issueLabel(code: ProductionIssueCode): string {
|
||||
/**
|
||||
* 将生产任务状态转换为中文标签,包含首帧与视频的生成中状态。
|
||||
* @param status 后端返回的生产任务状态
|
||||
* @returns 状态对应的中文名称,未知状态保留原值
|
||||
* @returns 状态对应的中文名称,未知状态显示待确认
|
||||
*/
|
||||
export function productionStatusLabel(status: string): string {
|
||||
const labels: Record<string, string> = {
|
||||
@@ -99,9 +99,11 @@ export function productionStatusLabel(status: string): string {
|
||||
completed: '已完成',
|
||||
failed: '失败',
|
||||
cancelled: '已取消',
|
||||
submitted: '已提交',
|
||||
processing: '处理中',
|
||||
not_started: '未开始'
|
||||
}
|
||||
return labels[status] ?? status
|
||||
return labels[status] ?? '待确认'
|
||||
}
|
||||
|
||||
/** 视频质量链状态标签与后端状态机保持一致。 */
|
||||
@@ -115,5 +117,5 @@ export function videoQualityStatusLabel(status: string): string {
|
||||
exhausted: '自动修复次数已用完',
|
||||
stale_motion_plan: '动作版本过期,质量流程已停止'
|
||||
}
|
||||
return labels[status] ?? status
|
||||
return labels[status] ?? '待确认'
|
||||
}
|
||||
Reference in new issue
Block a user