lsc 2 gadi atpakaļ
vecāks
revīzija
865bcdc356

+ 1 - 1
dist/index.html

@@ -18,7 +18,7 @@
       border-radius: 10px;
       -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
       background-color: rgba(0, 0, 0, 0.1);
-    }</style><link href=./static/css/app.08815275e423af77208aade37d36b4fe.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.b9b15ae4f82d2f85be9d.js></script><script type=text/javascript src=./static/js/app.c32ae29be740ddf78425.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.f6e46bacf10241ac5aa3faca3583c317.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.b9b15ae4f82d2f85be9d.js></script><script type=text/javascript src=./static/js/app.a4ca6f7951698f262490.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/static/css/app.f6e46bacf10241ac5aa3faca3583c317.css


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/static/css/app.f6e46bacf10241ac5aa3faca3583c317.css.map


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/static/js/app.a4ca6f7951698f262490.js


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/static/js/app.a4ca6f7951698f262490.js.map


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/static/js/app.c32ae29be740ddf78425.js


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
dist/static/js/manifest.3ad1d5771e9b13dbdad2.js.map


+ 24 - 7
src/components/courseDetail.vue

@@ -69,7 +69,7 @@
                     }}人
                   </div>
                 </div>
-                <div class="Tname" v-if="classList.length">
+                <div class="Tname" v-if="classList.length && tType == 1">
                   授课班级:<span @click="gotoCourse(item.id)" v-for="(item, index) in classList" :key="index">{{
                     item.name
                   }}</span>
@@ -554,11 +554,8 @@ export default {
       this.$router.push(path);
     },
     gotoCourse(id){
-      if(this.tType == 2 && this.classId != id){
-        this.$message.error("请选择自己的班级!")
-        return
-      }
-      this.goTo(
+      if(this.classList.length){
+        this.goTo(
               "/studyStudent?type=0&courseId=" +
               this.id +
               "&userid=" +
@@ -576,6 +573,24 @@ export default {
               "&tcid=" +
               id
             );
+      }else{
+        this.goTo(
+              "/studyStudent?type=0&courseId=" +
+              this.id +
+              "&userid=" +
+              this.userid +
+              "&oid=" +
+              this.oid +
+              "&org=" +
+              this.org +
+              "&cid=" +
+              this.classId +
+              "&tType=" +
+              this.tType +
+              "&screenType=" +
+              this.screenType
+            );
+      }
     },
     addUserRate(i) {
       // var suid = this.userid;
@@ -614,7 +629,7 @@ export default {
         .then((res) => {
           console.log(res.data);
           this.updateVc();
-          if (this.tType == 1 || this.tType == 2 || this.tType == 4) {
+          if (this.tType == 1|| this.tType == 4) {
             this.goTo(
               "/studyStudent?type=" +
               i +
@@ -633,6 +648,8 @@ export default {
               "&screenType=" +
               this.screenType
             );
+          }else if(this.tType == 2){
+            this.gotoCourse(this.classId)
           } else {
             this.goTo(
               "/study?type=" +

+ 2 - 2
src/components/studyStudent.vue

@@ -8267,7 +8267,7 @@ export default {
                 this.worksStudent[i][gA] = [];
 
                 for (var g = 0; g < f.length; g++) {
-                  if(this.tcid && this.tcid != f[g].classid && f[g].type == 2){
+                  if(this.tcid && this.tcid != f[g].classid && f[g].ttype == 2){
                     continue
                   }
                   if (gA == f[g].group && f[g].tool == i) {
@@ -8279,7 +8279,7 @@ export default {
               this.$forceUpdate();
             }
             for (var j = 0; j < b.length; j++) {
-              if(this.tcid && this.tcid != b[j].classid && b[j].type == 2){
+              if(this.tcid && this.tcid != b[j].classid && b[j].ttype == 2){
                   continue
               }
               var likesCount = 0;

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels