优化商品导入功能
This commit is contained in:
@@ -307,17 +307,7 @@ export const JeecgListMixin = {
|
|||||||
if (info.file.response.code === 200) {
|
if (info.file.response.code === 200) {
|
||||||
this.$message.success(info.file.response.data || `${info.file.name} 文件上传成功`)
|
this.$message.success(info.file.response.data || `${info.file.name} 文件上传成功`)
|
||||||
} else {
|
} else {
|
||||||
let { message, result: { msg, fileUrl, fileName } } = info.file.response
|
this.$message.warning(info.file.response.data)
|
||||||
let href = window._CONFIG['domianURL'] + fileUrl
|
|
||||||
this.$warning({
|
|
||||||
title: message,
|
|
||||||
content: (
|
|
||||||
<div>
|
|
||||||
<span>{msg}</span><br/>
|
|
||||||
<span>具体详情请 <a href={href} target="_blank" download={fileName}>点击下载</a> </span>
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
this.loadData()
|
this.loadData()
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user