瀏覽代碼

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

zengyicheng 1 年之前
父節點
當前提交
9fba23b1db
共有 3 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      src/components/easy2/studyStudent.vue
  2. 1 1
      src/components/easy3/studyStudent.vue
  3. 1 1
      src/components/studyStudent.vue

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

@@ -12034,7 +12034,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

@@ -12023,7 +12023,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

@@ -12005,7 +12005,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(() => {