feat(short-drama-agent-front): 完善质量规则确认与中文交互
This commit is contained in:
1 parent
190333d4f9
commit
c4b43b9725
85 files changed
+2059
-480
No files matched your search
@@ -217,7 +217,7 @@ export function useQuality(
|
||||
if (video.motionPlanStale || video.qualityTerminalStatus === 'stale_motion_plan')
|
||||
clearVideoQualification(projectId, target.shotId, target.assetId)
|
||||
if (!videoOperationAllowed(video, action === 'repair' ? 'repair' : 'validate'))
|
||||
throw new Error(video.staleReason || '后端当前不允许此候选执行所选质量操作,请刷新权限。')
|
||||
throw new Error(video.staleReason || '当前候选暂时不能执行这项检查,请刷新状态后再试。')
|
||||
if (action === 'repair') {
|
||||
if (videos.some(item => ['pending', 'queued', 'running'].includes(item.status)))
|
||||
throw new Error('此镜头仍有活动视频任务,请结束后再修复。')
|
||||
@@ -257,7 +257,7 @@ export function useQuality(
|
||||
!Array.isArray(result.sampleFrames) ||
|
||||
typeof result.isPrimary !== 'boolean'
|
||||
)
|
||||
throw new Error('视频校验结果与目标不匹配或不完整,请核对后端记录。')
|
||||
throw new Error('视频检查结果不完整或与所选视频不一致,请刷新检查记录。')
|
||||
receiptTarget.videoValidation = result
|
||||
receipt = {
|
||||
kind: 'video',
|
||||
@@ -309,7 +309,7 @@ export function useQuality(
|
||||
result.keyframeId !== target.assetId ||
|
||||
!result.validationTaskId
|
||||
)
|
||||
throw new Error('首帧校验结果不完整或与目标不匹配,请核对后端记录。')
|
||||
throw new Error('首帧检查结果不完整或与所选图片不一致,请刷新检查记录。')
|
||||
receipt = { kind: 'keyframe', result }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user