Browse Source

故障字典导入bug

Rmengdi 2 tháng trước cách đây
mục cha
commit
741df2493a
2 tập tin đã thay đổi với 4 bổ sung5 xóa
  1. 1 0
      .gitignore
  2. 3 5
      src/views/als/faultCase/index.vue

+ 1 - 0
.gitignore

@@ -1,6 +1,7 @@
 .DS_Store
 node_modules
 /dist
+*.rar
 
 
 

+ 3 - 5
src/views/als/faultCase/index.vue

@@ -483,11 +483,9 @@ export default {
     },
     // 文件上传成功处理
     handleFileSuccess(response, file, fileList) {
-      if (this.uploadFlag) {
-        this.upload.open = false
-        this.upload.isUploading = false
-        this.$refs.upload.clearFiles()
-      }
+      this.upload.open = false
+      this.upload.isUploading = false
+      this.$refs.upload.clearFiles()
       this.$alert("<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + response.msg + '</div>', '导入结果', { dangerouslyUseHTMLString: true })
     },
     // 提交上传文件