Bladeren bron

Merge branch 'beta' of https://git.cocorobo.cn/CocoRoboLabs/pbl-student-table into beta

zengyicheng 1 jaar geleden
bovenliggende
commit
9fba23b1db

+ 1 - 1
src/components/easy2/studyStudent.vue

@@ -12034,7 +12034,7 @@ export default {
       }, 500);
     },
     updateToolDetail(i, type) {
-      if (!this.isUpdateToolDetail1 && type == 2) {
+      if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
         this.toolDetailIndex = i
         this.isUpdateToolDetail1 = true;
         setTimeout(() => {

+ 1 - 1
src/components/easy3/studyStudent.vue

@@ -12023,7 +12023,7 @@ export default {
       }, 500);
     },
     updateToolDetail(i, type) {
-      if (!this.isUpdateToolDetail1 && type == 2) {
+      if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
         this.toolDetailIndex = i
         this.isUpdateToolDetail1 = true;
         setTimeout(() => {

+ 1 - 1
src/components/studyStudent.vue

@@ -12005,7 +12005,7 @@ export default {
       }, 500);
     },
     updateToolDetail(i, type) {
-      if (!this.isUpdateToolDetail1 && type == 2) {
+      if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
         this.toolDetailIndex = i
         this.isUpdateToolDetail1 = true;
         setTimeout(() => {