|
|
@@ -1539,6 +1539,10 @@ export default {
|
|
|
},
|
|
|
handleImport() {
|
|
|
this.excelBox = true;
|
|
|
+ this.excelForm = {
|
|
|
+ excelFile: null,
|
|
|
+ isCovered: 0
|
|
|
+ };
|
|
|
},
|
|
|
uploadAfter(res, done, loading, column) {
|
|
|
// window.console.log(column);
|
|
|
@@ -1550,13 +1554,8 @@ export default {
|
|
|
// 刷新数据列表
|
|
|
this.refreshChange();
|
|
|
// 重置上传表单中的文件字段
|
|
|
- if (this.$refs.excelForm) {
|
|
|
- // 清空上传的文件
|
|
|
- this.excelForm.excelFile = null;
|
|
|
- // 通知表单组件更新
|
|
|
- this.$refs.excelForm.resetFields(['excelFile']);
|
|
|
- this.excelForm.isCovered=0
|
|
|
- }
|
|
|
+ // 方法1:重置整个表单
|
|
|
+
|
|
|
done();
|
|
|
},
|
|
|
handleExport() {
|