lsc 2 years ago
parent
commit
47f6b80543
1 changed files with 6 additions and 7 deletions
  1. 6 7
      src/components/studyStudent.vue

+ 6 - 7
src/components/studyStudent.vue

@@ -6230,7 +6230,7 @@
       :before-close="handleClose"
       class="dialog_diy"
     >
-      <div>
+      <div v-if="dialogVisibleGroup">
         <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
           <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
             提示:需要锁定位置,才能点击头像修改座位。
@@ -9317,7 +9317,7 @@ export default {
               if (
                 !this.navList[b].task[this.navList[b].task.length - 1].isLook
               ) {
-                if (this.courseDetail.userid != this.userid) {
+                if (this.courseDetail.userid != this.userid && this.courseDetail.course_teacher.indexOf(this.userid) == -1) {
                   this.$message.error("任务未解锁");
                 } else {
                   this.$message.error("上一任务未解锁");
@@ -9362,7 +9362,7 @@ export default {
             if (
               !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
                 .isLook &&
-              this.courseDetail.userid != this.userid &&
+              (this.courseDetail.userid != this.userid && this.courseDetail.course_teacher.indexOf(this.userid) == -1) &&
               this.IsLookOpen
             ) {
               this.$message.error("任务未解锁");
@@ -9385,7 +9385,7 @@ export default {
             var bbb = parseInt(this.courseType) + 1;
             if (
               !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
-              this.courseDetail.userid != this.userid &&
+              (this.courseDetail.userid != this.userid && this.courseDetail.course_teacher.indexOf(this.userid) == -1) &&
               this.IsLookOpen
             ) {
               this.$message.error("任务未解锁");
@@ -9400,7 +9400,7 @@ export default {
             if (
               !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
                 .isLook &&
-              this.courseDetail.userid != this.userid &&
+              (this.courseDetail.userid != this.userid && this.courseDetail.course_teacher.indexOf(this.userid) == -1) &&
               this.IsLookOpen
             ) {
               this.$message.error("任务未解锁");
@@ -9459,7 +9459,7 @@ export default {
       if (this.IsLookOpen) {
         if (
           !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
-          this.courseDetail.userid != this.userid
+          (this.courseDetail.userid != this.userid && this.courseDetail.course_teacher.indexOf(this.userid) == -1)
         ) {
           this.$message.error("任务未解锁");
           return;
@@ -10898,7 +10898,6 @@ export default {
               )
             )
           : { text: "" };
-
         this.dialogVisibleTable = true;
       } else if (t == 49) {
         this.groupJson =