feat(upload): 配置文件上传组件的业务路径和文本提示

- 在 JImageUpload 组件中添加 bizPath 属性以指定上传路径
- 为头像上传功能统一设置 bizPath: 'avatar'
- 为图片上传功能设置 bizPath: 'img'
- 为视频上传功能设置 bizPath: 'video'
- 为PDF文件上传设置 bizPath: 'bizfile'
- 为APP文件上传设置 bizPath: 'appfile'
- 添加 text 属性统一显示 '上传头像' 提示文本
- 在系统横幅管理中配置图片上传的业务路径
- 为新资源管理模块添加完整的数据结构定义
This commit is contained in:
2026-04-30 08:56:14 +08:00
parent 3da41ae2d3
commit eeb1496483
11 changed files with 23 additions and 0 deletions
@@ -330,6 +330,8 @@ export const formSchema: (isUpdate: boolean) => FormSchema[] = (isUpdate) => {
field: 'avatar',
component: 'JImageUpload',
componentProps: {
text: '上传头像',
bizPath: 'avatar',
maxCount: 1,
},
},
@@ -207,6 +207,8 @@ export const formSchema: FormSchema[] = [
label: '头像',
component: 'JImageUpload',
componentProps: {
text: '上传头像',
bizPath: 'avatar',
maxCount: 1,
},
},
@@ -141,6 +141,8 @@ export const formSchema = function (showGoodAt: boolean): FormSchema[] {
component: 'JImageUpload',
required: true,
componentProps: () => ({
text: '上传头像',
bizPath: 'avatar',
maxCount: 1,
}),
},