|
|
@@ -593,6 +593,15 @@ export default { |
|
|
|
// 文件上传成功 |
|
|
|
handleChange(file, filelist, name) { |
|
|
|
console.log(file, filelist, name); |
|
|
|
try { |
|
|
|
if (file.response.code == 1) { |
|
|
|
this.$message.error(`${file.name}上传失败`); |
|
|
|
} else { |
|
|
|
this.$message.success(`${file.response.msg}`); |
|
|
|
} |
|
|
|
} catch (e) { |
|
|
|
console.log(e); |
|
|
|
} |
|
|
|
this[name] = filelist; |
|
|
|
}, |
|
|
|
// 上传文件 |
|
|
|