瀏覽代碼

批量上传说明书

zhuliu 1 年之前
父節點
當前提交
eb9f33781b
共有 2 個文件被更改,包括 13 次插入7 次删除
  1. 7 1
      src/utils/model/ImportProgress/index.vue
  2. 6 6
      src/views/project/components/dialog/BatchInstruction.vue

+ 7 - 1
src/utils/model/ImportProgress/index.vue

@@ -77,9 +77,15 @@ export default {
         this.file = {
             name:this.form.file.name
         }
-        // this.record('等待读取文件MD5')
+       this.upload()
+        
+    },
+    upload(){
+         // this.record('等待读取文件MD5')
         this.recordMessage = '等待读取文件MD5'
         let fileChunks = createFileChunk(this.form.file)
+        console.log(fileChunks)
+        return
         this.len = fileChunks.length + 3
         
           getFileMD5(this.form.file, async (md5) => {

+ 6 - 6
src/views/project/components/dialog/BatchInstruction.vue

@@ -146,12 +146,12 @@ export default {
       }
       this.$refs.ruleForm.validate((valid) => {
         if (valid) {
-          // this.$showImportProgress(
-          //   {
-          //     data:this.ruleForm
-          //   }
-          // )
-          // return
+          this.$showImportProgress(
+            {
+              data:this.ruleForm
+            }
+          )
+          return
           this.upload = true
           this.record('等待读取文件MD5')
           getFileMD5(this.ruleForm.file, async (md5) => {