|
@@ -582,7 +582,7 @@ export default {
|
|
);
|
|
);
|
|
},
|
|
},
|
|
importOrgSettings() {
|
|
importOrgSettings() {
|
|
- this.fileList = [];
|
|
|
|
|
|
+ this.removeFile();
|
|
this.orgSettingsImportDialog = true;
|
|
this.orgSettingsImportDialog = true;
|
|
},
|
|
},
|
|
|
|
|
|
@@ -595,8 +595,7 @@ export default {
|
|
message: "上传成功",
|
|
message: "上传成功",
|
|
type: "success"
|
|
type: "success"
|
|
});
|
|
});
|
|
- this.fileLoading = false;
|
|
|
|
- this.studentImportDialog = false;
|
|
|
|
|
|
+ this.orgSettingsImportDialog = false;
|
|
this.resetPageAndSearch();
|
|
this.resetPageAndSearch();
|
|
},
|
|
},
|
|
uploadError(response, file, fileList) {
|
|
uploadError(response, file, fileList) {
|
|
@@ -611,12 +610,13 @@ export default {
|
|
type: "error"
|
|
type: "error"
|
|
});
|
|
});
|
|
}
|
|
}
|
|
- this.fileLoading = false;
|
|
|
|
},
|
|
},
|
|
//清空文件
|
|
//清空文件
|
|
removeFile() {
|
|
removeFile() {
|
|
- // this.fileList = [];
|
|
|
|
- this.$refs.upload.clearFiles();
|
|
|
|
|
|
+ this.fileList = [];
|
|
|
|
+ if (this.$refs.upload) {
|
|
|
|
+ this.$refs.upload.clearFiles();
|
|
|
|
+ }
|
|
},
|
|
},
|
|
//确定上传
|
|
//确定上传
|
|
submitUpload() {
|
|
submitUpload() {
|
|
@@ -648,7 +648,6 @@ export default {
|
|
message: "上传文件必须为xlsx格式",
|
|
message: "上传文件必须为xlsx格式",
|
|
type: "error"
|
|
type: "error"
|
|
});
|
|
});
|
|
- this.fileList = [];
|
|
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
}
|