|
@@ -10075,7 +10075,9 @@
|
|
|
@change="updateLookOpen"
|
|
@change="updateLookOpen"
|
|
|
></el-switch>
|
|
></el-switch>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="switch_box" v-if="courseDetail.userid == userid">
|
|
|
|
|
|
|
+ <div class="switch_box" v-if="(courseDetail.userid == userid ||
|
|
|
|
|
+ (courseDetail.course_teacher &&
|
|
|
|
|
+ courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen">
|
|
|
<span>开启跟随模式</span>
|
|
<span>开启跟随模式</span>
|
|
|
<el-switch
|
|
<el-switch
|
|
|
v-model="IsFollow"
|
|
v-model="IsFollow"
|
|
@@ -13412,6 +13414,12 @@ export default {
|
|
|
this.insertMemorandum(`选择<span class="variable">阶段${i+1}${this.navList[i].dyName?':'+this.navList[i].dyName:''}</span>→<span class="variable">任务${j+1}${this.navList[i].task[j].taskName?':'+this.navList[i].task[j].taskName:''}</span>→<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
|
|
this.insertMemorandum(`选择<span class="variable">阶段${i+1}${this.navList[i].dyName?':'+this.navList[i].dyName:''}</span>→<span class="variable">任务${j+1}${this.navList[i].task[j].taskName?':'+this.navList[i].task[j].taskName:''}</span>→<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ if ((this.courseDetail.userid == this.userid ||
|
|
|
|
|
+ (this.courseDetail.course_teacher &&
|
|
|
|
|
+ this.courseDetail.course_teacher.indexOf(this.userid) != -1)) &&
|
|
|
|
|
+ this.IsFollow) {
|
|
|
|
|
+ this.setCTask();
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
// var b = this.$refs["bz" + k][0];
|
|
// var b = this.$refs["bz" + k][0];
|
|
|
// a.scrollTop = b.offsetTop;
|
|
// a.scrollTop = b.offsetTop;
|
|
@@ -17086,12 +17094,15 @@ export default {
|
|
|
this.getHomeWork();
|
|
this.getHomeWork();
|
|
|
this.getCourseDetail(2);
|
|
this.getCourseDetail(2);
|
|
|
this.$forceUpdate();
|
|
this.$forceUpdate();
|
|
|
- if (this.courseDetail.userid == this.userid && this.IsFollow) {
|
|
|
|
|
|
|
+ if ((this.courseDetail.userid == this.userid ||
|
|
|
|
|
+ (this.courseDetail.course_teacher &&
|
|
|
|
|
+ this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
|
|
|
this.setCTask();
|
|
this.setCTask();
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
openTask(s, n, i,ctype) {
|
|
openTask(s, n, i,ctype) {
|
|
|
|
|
+ // 这段代码没用开启了跟随学生侧边栏会隐藏掉
|
|
|
if (this.IsFollow && this.tType == 2) {
|
|
if (this.IsFollow && this.tType == 2) {
|
|
|
this.$message.error("已经开启跟随模式,请认真跟堂听讲");
|
|
this.$message.error("已经开启跟随模式,请认真跟堂听讲");
|
|
|
return;
|
|
return;
|
|
@@ -17204,7 +17215,9 @@ export default {
|
|
|
this.selectPz();
|
|
this.selectPz();
|
|
|
this.getHomeWork();
|
|
this.getHomeWork();
|
|
|
this.getCourseDetail(2);
|
|
this.getCourseDetail(2);
|
|
|
- if (this.courseDetail.userid == this.userid && this.IsFollow) {
|
|
|
|
|
|
|
+ if ((this.courseDetail.userid == this.userid ||
|
|
|
|
|
+ (this.courseDetail.course_teacher &&
|
|
|
|
|
+ this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
|
|
|
this.setCTask();
|
|
this.setCTask();
|
|
|
}
|
|
}
|
|
|
if(flag){
|
|
if(flag){
|
|
@@ -17336,7 +17349,11 @@ export default {
|
|
|
this.ajax
|
|
this.ajax
|
|
|
.get(this.$store.state.api + "selectCourseDetail3", params)
|
|
.get(this.$store.state.api + "selectCourseDetail3", params)
|
|
|
.then((res) => {
|
|
.then((res) => {
|
|
|
- this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
|
|
|
|
|
|
|
+ if ((this.courseDetail.userid == this.userid ||
|
|
|
|
|
+ (this.courseDetail.course_teacher &&
|
|
|
|
|
+ this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
|
|
|
|
|
+ this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
if (type != 2) {
|
|
if (type != 2) {
|
|
|
loading.close();
|
|
loading.close();
|
|
@@ -18417,6 +18434,7 @@ export default {
|
|
|
state: JSON.stringify(_state),
|
|
state: JSON.stringify(_state),
|
|
|
},
|
|
},
|
|
|
];
|
|
];
|
|
|
|
|
+ // 这两个接口是一样的type无所谓了
|
|
|
this.ajax
|
|
this.ajax
|
|
|
.post(
|
|
.post(
|
|
|
this.$store.state.api +
|
|
this.$store.state.api +
|