Explorar el Código

可成未完成

y595705120 hace 1 año
padre
commit
00873e42fe
Se han modificado 1 ficheros con 2 adiciones y 6 borrados
  1. 2 6
      src/containers/center/play/index.vue

+ 2 - 6
src/containers/center/play/index.vue

@@ -249,12 +249,8 @@
         this.$router.push({path:`/center/exam/${courseId}`, query:{groupId}});
       },
       printCert( ){
-        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)
+        if(  this.info.isPass ==0 ){
+          this.$message.errorMsg("课程未完成", 2)
           return;
         }
         let {id, rzCode} = this.info