|
@@ -77,6 +77,8 @@
|
|
|
btn-type="success"
|
|
|
:upload-url="uploadUrl"
|
|
|
:format="['xls', 'xlsx']"
|
|
|
+ accept=".xls,.xlsx"
|
|
|
+ @upload-error="uplaodError"
|
|
|
@upload-success="uploadSuccess"
|
|
|
>
|
|
|
</upload-button>
|
|
@@ -289,9 +291,9 @@ export default {
|
|
|
.catch(() => {});
|
|
|
},
|
|
|
// import
|
|
|
- // uplaodError(errorData) {
|
|
|
- // this.$notify.error({ title: "错误提示", message: errorData.message });
|
|
|
- // },
|
|
|
+ uplaodError(errorData) {
|
|
|
+ this.$notify.error({ title: "错误提示", message: errorData.message });
|
|
|
+ },
|
|
|
uploadSuccess() {
|
|
|
this.$message.success("文件上传成功,后台正在导入!");
|
|
|
this.getList();
|