11wqe1 3 months ago
parent
commit
68088ddccd
1 changed files with 7 additions and 2 deletions
  1. 7 2
      src/components/pages/synergyCourse/course.vue

+ 7 - 2
src/components/pages/synergyCourse/course.vue

@@ -489,7 +489,6 @@ export default {
       }
     },
     goToCourse3(courseId) {
-      this.addOp3('1', "", { type: "CocoNote_standard_add" }, "success")
 
       if (courseId) {
         this.$router.push(
@@ -515,6 +514,7 @@ export default {
           "&role=" +
           this.role
         );
+        this.addOp3('1', "", { type: "CocoNote_standard_add" }, "success")
       }
     },
     formatDateTime2(timestamp){
@@ -582,7 +582,6 @@ export default {
       }
     },
     open(cid, uid) {
-      this.addOp3('1', "", { courseid: cid , type: "CocoNote_open" }, "success")
 
       if (uid == this.userid ||  window.topU.US.userInfo.role==1) {
          window.topU.postMessage(
@@ -593,6 +592,7 @@ export default {
           },
           "*"
         );
+        this.addOp3('1', "", { courseid: cid , type: "CocoNote_open" }, "success")
         return;
       }
       let params = {
@@ -620,9 +620,12 @@ export default {
                 },
                 "*"
               );
+              this.addOp3('1', "", { courseid: cid , type: "CocoNote_open" }, "success")
             } else {
               this.$message.error("没有加入分组请先加入分组");
               this.goToCourse3(cid)
+              this.addOp3('1', "", { courseid: cid , type: "CocoNote_open" }, '没有加入分组请先加入分组')
+
               //  window.topU.postMessage(
               //   { 
               //     tools: "opencCscl",
@@ -635,6 +638,8 @@ export default {
           } else {
             this.$message.error("没有加入分组请先加入分组");
             this.goToCourse3(cid)
+            this.addOp3('1', "", { courseid: cid , type: "CocoNote_open" }, '没有加入分组请先加入分组')
+
             //  window.topU.postMessage(
             //   { 
             //     tools: "opencCscl",