hbchen пре 1 година
родитељ
комит
da8c8366a4
1 измењених фајлова са 1 додато и 5 уклоњено
  1. 1 5
      src/views/semantics_manage/asr/components/mediaUpload.vue

+ 1 - 5
src/views/semantics_manage/asr/components/mediaUpload.vue

@@ -62,8 +62,7 @@
         </div>
         <div class="dia-bot">
           <el-button type="primary" plain style="margin-right:20px;min-width:120px ;" @click="cancelHandle">取消</el-button>
-          <el-button type="primary" @click="saveHandle" style="min-width:120px;" >开始转写</el-button>
-          <!-- :disabled="fileList.length==0" -->
+          <el-button type="primary" @click="saveHandle" style="min-width:120px;" :disabled="fileList.length==0">开始转写</el-button>
         </div>
         <!-- :http-request="handleUpload"
           :before-upload="handleBeforeUpload" -->
@@ -275,9 +274,6 @@ import MD5 from "js-md5";
         this.$emit("update:diaShow",false)
       },
       saveHandle(){
-        this.$emit("uploadSuccess")
-        this.$emit("update:diaShow",false)
-        return 
         if(this.uploadingFileNames && this.uploadingFileNames.length>0){
           return this.$message.error("还有音/视频未上传完成,请等待上传成功后再转写!") 
         }