lsc 1 年間 前
コミット
0763832405

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

@@ -12017,7 +12017,7 @@ export default {
       }, 500);
       }, 500);
     },
     },
     updateToolDetail(i, type) {
     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.toolDetailIndex = i
         this.isUpdateToolDetail1 = true;
         this.isUpdateToolDetail1 = true;
         setTimeout(() => {
         setTimeout(() => {

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

@@ -12006,7 +12006,7 @@ export default {
       }, 500);
       }, 500);
     },
     },
     updateToolDetail(i, type) {
     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.toolDetailIndex = i
         this.isUpdateToolDetail1 = true;
         this.isUpdateToolDetail1 = true;
         setTimeout(() => {
         setTimeout(() => {

+ 1 - 1
src/components/studyStudent.vue

@@ -11987,7 +11987,7 @@ export default {
       }, 500);
       }, 500);
     },
     },
     updateToolDetail(i, type) {
     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.toolDetailIndex = i
         this.isUpdateToolDetail1 = true;
         this.isUpdateToolDetail1 = true;
         setTimeout(() => {
         setTimeout(() => {