|
@@ -210,6 +210,7 @@
|
|
|
:disabled="upload.isUploading"
|
|
|
:on-progress="handleFileUploadProgress"
|
|
|
:on-success="handleFileSuccess"
|
|
|
+ :on-error="errorFile"
|
|
|
:auto-upload="false"
|
|
|
drag
|
|
|
>
|
|
@@ -261,7 +262,7 @@ export default {
|
|
|
// 是否禁用上传
|
|
|
isUploading: false,
|
|
|
// 是否更新已经存在的用户数据
|
|
|
- updateSupport: 0,
|
|
|
+ updateSupport: 1,
|
|
|
// 设置上传的请求头部
|
|
|
headers: { Authorization: "Bearer " + getToken() },
|
|
|
// 上传的地址
|
|
@@ -424,6 +425,9 @@ export default {
|
|
|
this.$alert(response.msg, "导入结果", { dangerouslyUseHTMLString: true });
|
|
|
this.getList(this.queryParams);
|
|
|
},
|
|
|
+ errorFile(err) {
|
|
|
+ this.$modal.notifyError("文件已变动,请重新上传");
|
|
|
+ },
|
|
|
// 提交上传文件
|
|
|
submitFileForm() {
|
|
|
this.$refs.upload.submit();
|