瀏覽代碼

导入用户修改

duy 6 天之前
父節點
當前提交
f29f0c6843
共有 1 個文件被更改,包括 6 次插入7 次删除
  1. 6 7
      src/views/system/user.vue

+ 6 - 7
src/views/system/user.vue

@@ -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() {