feat(web): 实现文件上传和下载功能
- 在 DataFileController 中添加文件上传和下载接口- 更新 WareController 中的图标处理逻辑 - 在 DataFile 实体中添加文件类型字段 - 更新 DataFileService 中的文件信息更新方法 - 在前端组件中添加文件上传和下载相关配置
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
export const information = {
|
||||
debug: false,
|
||||
debug: true,
|
||||
// baseUrl: '',
|
||||
baseUrl: 'http://127.0.0.1:20080',
|
||||
title: '可信供给中心',
|
||||
@@ -347,7 +347,12 @@ const formInputFileStaticColumns = [
|
||||
type: 'action',
|
||||
label: '下载',
|
||||
level: 'link',
|
||||
icon: 'fa fa-download'
|
||||
icon: 'fa fa-download',
|
||||
actionType: 'ajax',
|
||||
api: {
|
||||
...apiGet('${base}/upload/download/${id}'),
|
||||
responseType: 'blob',
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user