|
|
@@ -334,6 +334,7 @@
|
|
|
:option="excelOption"
|
|
|
v-model="excelForm"
|
|
|
:upload-after="uploadAfter"
|
|
|
+ ref="excelForm"
|
|
|
>
|
|
|
<template slot="excelTemplate">
|
|
|
<el-button
|
|
|
@@ -1540,10 +1541,22 @@ export default {
|
|
|
this.excelBox = true;
|
|
|
},
|
|
|
uploadAfter(res, done, loading, column) {
|
|
|
- window.console.log(column);
|
|
|
- this.excelBox = false;
|
|
|
- this.refreshChange();
|
|
|
- done();
|
|
|
+ // window.console.log(column);
|
|
|
+ // this.excelBox = false;
|
|
|
+ // this.refreshChange();
|
|
|
+ // done();
|
|
|
+ // 关闭导入弹窗
|
|
|
+ this.excelBox = false;
|
|
|
+ // 刷新数据列表
|
|
|
+ this.refreshChange();
|
|
|
+ // 重置上传表单中的文件字段
|
|
|
+ if (this.$refs.excelForm) {
|
|
|
+ // 清空上传的文件
|
|
|
+ this.excelForm.excelFile = null;
|
|
|
+ // 通知表单组件更新
|
|
|
+ this.$refs.excelForm.resetFields(['excelFile']);
|
|
|
+ }
|
|
|
+ done();
|
|
|
},
|
|
|
handleExport() {
|
|
|
this.$confirm("是否导出用户数据?", "提示", {
|