瀏覽代碼

excel导入问题

zhuliu 1 年之前
父節點
當前提交
cbe0eac781
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/views/components/import/components/importPatent.vue

+ 3 - 1
src/views/components/import/components/importPatent.vue

@@ -154,11 +154,13 @@ export default {
                 return item.uid == file.uid
             })
             if (a != -1) {
-                this.files.splice(a, 1, file.raw)
+                this.files=[file.raw]
                 this.form.fileGuid = file.guid
             }
            
             // this.handleConfirm()
+        }else{
+            this.files = [file.raw]
         }
     },
     handleConfirm() {