feat(short-drama-agent-front): 优化分镜界面并新增弹窗手势

This commit is contained in:
GJ committed 2026-11-18 18:50:15 +08:00
1 parent b15a6011ce
commit d68f03471c
59 files changed
+2694 -857

No files matched your search

+16
View File
@@ -1,6 +1,22 @@
import { reactive } from 'vue'
import type { ProductionIssueCode, ProductionSession, ShotKeyframe, ShotVideo, ShotVideoQualityStatus } from './types'
/**
* 为没有独立名称字段的首帧生成展示名称,按原创建时间编号,不随列表倒序或主图切换改名。
* @param items 同一镜头的完整图片记录
* @param shotTitle 当前镜头名称
* @param shotNo 镜头序号,用于名称缺失时说明归属
* @returns 图片ID与只用于展示的名称,不写回资产
*/
export function keyframeDisplayNames(items: readonly ShotKeyframe[], shotTitle: string, shotNo: number) {
const title = shotTitle.trim() || `镜头 ${shotNo}`
return new Map(
items
.toSorted((a, b) => (a.createdAt ?? '').localeCompare(b.createdAt ?? '') || a.id.localeCompare(b.id))
.map((item, index) => [item.id, `${title} · 图片 ${String(index + 1).padStart(2, '0')}`])
)
}
/** 按项目隔离生产回执,切换页面后仍能查看上一次批量操作结果。 */
const sessions = reactive<Record<string, ProductionSession>>({})