优化脚本
This commit is contained in:
@@ -31,7 +31,8 @@ function projBucket(p: Project): "wip" | "ok" | "fail" {
|
||||
}
|
||||
const PROJ_STATUS_LABEL: Record<"wip" | "ok" | "fail", string> = { wip: "进行中", ok: "已完成", fail: "失败 · 待重跑" };
|
||||
// 阶段 → 编号 + 名称 + 进度百分比(5 段流水线;completed = 100%)
|
||||
const STAGE_PCT: Record<string, number> = { script: 20, base_assets: 40, storyboard: 60, video: 80, export: 100 };
|
||||
// 故事板已下线;storyboard 保留映射只为老项目的历史 current_stage 兜底
|
||||
const STAGE_PCT: Record<string, number> = { script: 25, base_assets: 50, storyboard: 50, video: 75, export: 100 };
|
||||
function projStage(p: Project): { label: string; pct: number } {
|
||||
if (p.status === "completed") return { label: "Stage 5 拼接导出", pct: 100 };
|
||||
const meta = stageMeta[p.current_stage];
|
||||
|
||||
Reference in New Issue
Block a user