feat(template): 新增答题卡模板编辑器及相关功能

- 新增模板详情页面,支持上传PDF/图片作为底稿,并生成可拖拽调整的区域
- 新增模板类型定义、上传钩子及画布组件,支持批量生成区域、旋转、对齐参考线等功能
- 更新模板列表页,适配新的API接口并增加删除功能
- 更新OSS工具函数,修复上传凭证处理逻辑
- 更新公共类型定义,调整分页查询返回结构
- 移除旧的书籍相关API文件,替换为模板API
- 更新依赖项,添加pdfjs-dist、vue3-draggable-resizable等库
- 隐藏页面底部,优化界面显示
This commit is contained in:
2026-01-28 18:00:17 +08:00
parent 78e51d96f6
commit 16d7ecd172
17 changed files with 1207 additions and 266 deletions

View File

@ -12,12 +12,12 @@ declare namespace Api {
/** page pageSize */
pageSize: number
/** total count */
total: number
total?: number
}
/** common params of paginating query list data */
interface PaginatingQueryRecord<T = any> extends PaginatingCommonParams {
list: T[]
data: T[]
}
/** common search params of table */

View File

@ -15,6 +15,23 @@ declare namespace Api {
total?: number
}
interface AddTemplateParams {
/** template id */
id: number | null
/** page number */
pageNo: number | null | string
/** template name */
name: string
/** background url */
backGroundUrl: string
/** width */
width: number
/** height */
height: number
/** template content */
tempContent: string
}
/** template search params */
interface TemplateSearchParams extends PaginatingCommonParams {
/** competition activity name */