提交 ba3896a4 作者: ZhangLingKun

功能:招标快讯文件回显

上级 ccf91767
...@@ -130,7 +130,7 @@ export const Uploader: React.FC<PropsType> = (props) => { ...@@ -130,7 +130,7 @@ export const Uploader: React.FC<PropsType> = (props) => {
} else { } else {
if (url) { if (url) {
// 如果有oss地址,则直接下载 // 如果有oss地址,则直接下载
saveAs(url.replace(/^http:/, 'https:')); saveAs(url.replace(/^http:/, 'https:'), res?.name ? res.name : '未命名文件');
} else { } else {
// 没有就直接保存文件 // 没有就直接保存文件
const blob = new Blob([res as any]); const blob = new Blob([res as any]);
......
...@@ -128,7 +128,7 @@ const AddEditModal: React.FC<propType> = (props) => { ...@@ -128,7 +128,7 @@ const AddEditModal: React.FC<propType> = (props) => {
onChange={(e) => { onChange={(e) => {
form.setFieldValue('file', e); form.setFieldValue('file', e);
}} }}
defaultFileList={data?.url ? [{ url: data?.url }] : []} defaultFileList={data?.url ? [{ url: data?.url, name: `${data.tenderName}.xlsx` }] : []}
> >
<Button icon={<UploadOutlined />} type={'primary'}> <Button icon={<UploadOutlined />} type={'primary'}>
上传 上传
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论