y595705120 il y a 3 ans
Parent
commit
d1bdc38247
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      src/containers/center/play/index.vue

+ 5 - 1
src/containers/center/play/index.vue

@@ -257,10 +257,14 @@
         this.$router.push(`/center/exam/${courseId}`);
       },
       printCert( ){
-        if( this.info.percent < 100 || this.info.score < 60){
+        if( this.info.getXs < this.info.totalXs ){
           this.$message.errorMsg("课程还未完成", 2)
           return;
         }
+        if( this.tpl.examGroupId >0 && this.info.score < 60){
+          this.$message.errorMsg("考试未通过", 2)
+          return;
+        }
         this.info.tmpRzCode = this.info.rzCode
         this.editRzcode = true
       },