Selaa lähdekoodia

批量上传说明书

zhuliu 1 vuosi sitten
vanhempi
commit
eb9f33781b

+ 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) => {