|
@@ -463,10 +463,10 @@
|
|
<div
|
|
<div
|
|
class="vedioBox"
|
|
class="vedioBox"
|
|
v-if="
|
|
v-if="
|
|
- chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
|
|
|
|
|
|
+ (chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
|
|
.taskDetail != '' ||
|
|
.taskDetail != '' ||
|
|
vChapterData[taskCount].length > 0 ||
|
|
vChapterData[taskCount].length > 0 ||
|
|
- fileC[taskCount].length > 0
|
|
|
|
|
|
+ fileC[taskCount].length > 0) && (tType == 1 || (tType == 2 && IsStulook))
|
|
"
|
|
"
|
|
style="border-radius: 0 0 20px 20px"
|
|
style="border-radius: 0 0 20px 20px"
|
|
>
|
|
>
|
|
@@ -10060,6 +10060,15 @@
|
|
@change="updateFollow"
|
|
@change="updateFollow"
|
|
></el-switch>
|
|
></el-switch>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="switch_box" v-if="courseDetail.userid == userid">
|
|
|
|
+ <span>允许学生查看内容资料</span>
|
|
|
|
+ <el-switch
|
|
|
|
+ v-model="IsStulook"
|
|
|
|
+ active-text=""
|
|
|
|
+ class="switchCss"
|
|
|
|
+ @change="updateIsStulook"
|
|
|
|
+ ></el-switch>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div slot="footer">
|
|
<div slot="footer">
|
|
@@ -12651,6 +12660,8 @@ export default {
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ // 是否允许学生查看内容资料 2不可以 1可以
|
|
|
|
+ IsStulook:false,
|
|
homeWorkLoading:false,
|
|
homeWorkLoading:false,
|
|
wordCloudKey: 0,
|
|
wordCloudKey: 0,
|
|
bg: null,
|
|
bg: null,
|
|
@@ -18063,6 +18074,35 @@ export default {
|
|
console.error(err);
|
|
console.error(err);
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ updateIsStulook(){
|
|
|
|
+ let params = [
|
|
|
|
+ {
|
|
|
|
+ sopen: this.IsStulook == false ? 2 : 1,
|
|
|
|
+ cid: this.id
|
|
|
|
+ }
|
|
|
|
+ ];
|
|
|
|
+
|
|
|
|
+ this.ajax
|
|
|
|
+ .post(this.$store.state.api + "updateCourseStulook", params)
|
|
|
|
+ .then(res => {
|
|
|
|
+
|
|
|
|
+ if (this.IsStulook == true) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: "学生查看内容资料权限已开启",
|
|
|
|
+ type: "success"
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: "关闭学生查看内容资料权限",
|
|
|
|
+ type: "success"
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ // this.setCTask();
|
|
|
|
+ })
|
|
|
|
+ .catch(err => {
|
|
|
|
+ console.error(err);
|
|
|
|
+ });
|
|
|
|
+ },
|
|
updateFollow() {
|
|
updateFollow() {
|
|
let params = [
|
|
let params = [
|
|
{
|
|
{
|
|
@@ -18075,7 +18115,7 @@ export default {
|
|
.then((res) => {
|
|
.then((res) => {
|
|
if (this.IsFollow == true) {
|
|
if (this.IsFollow == true) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: "开启成功",
|
|
|
|
|
|
+ message: "跟随模式已开启",
|
|
type: "success",
|
|
type: "success",
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
@@ -18144,6 +18184,7 @@ export default {
|
|
this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
|
|
this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
|
|
this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
|
|
this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
|
|
this.IsFollow = res.data[0][0].follow == 1 ? false : true;
|
|
this.IsFollow = res.data[0][0].follow == 1 ? false : true;
|
|
|
|
+ this.IsStulook = res.data[0][0].isStulook == 2 ? false : true;
|
|
if (!this.IsLookOpen) {
|
|
if (!this.IsLookOpen) {
|
|
this.setNavList();
|
|
this.setNavList();
|
|
}else {
|
|
}else {
|
|
@@ -21456,7 +21497,11 @@ export default {
|
|
followingMode(flag) {
|
|
followingMode(flag) {
|
|
this.IsFollow = flag;
|
|
this.IsFollow = flag;
|
|
this.updateFollow();
|
|
this.updateFollow();
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ StulookMode(flag) {
|
|
|
|
+ this.IsStulook = flag;
|
|
|
|
+ this.updateIsStulook();
|
|
|
|
+ },
|
|
},
|
|
},
|
|
directives: {
|
|
directives: {
|
|
// 使用局部注册指令的方式
|
|
// 使用局部注册指令的方式
|
|
@@ -21698,6 +21743,12 @@ export default {
|
|
|
|
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
|
|
+ if (this.tType == 1) {
|
|
|
|
+ // 开局关闭学生查看内容
|
|
|
|
+ this.StulookMode(false)
|
|
|
|
+ // 开局打开跟随模式
|
|
|
|
+ this.followingMode(true)
|
|
|
|
+ }
|
|
document.body.addEventListener("click", (e) => {
|
|
document.body.addEventListener("click", (e) => {
|
|
if (this.isUpdateToolDetail1) {
|
|
if (this.isUpdateToolDetail1) {
|
|
this.updateToolDetail(this.toolDetailIndex);
|
|
this.updateToolDetail(this.toolDetailIndex);
|
|
@@ -23566,10 +23617,10 @@ export default {
|
|
justify-content: center;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
|
|
-.answerBg > div:nth-child(1) {
|
|
|
|
|
|
+/* .answerBg > div:nth-child(1) { */
|
|
/* font-size: 22px;
|
|
/* font-size: 22px;
|
|
padding: 25px 0 10px; */
|
|
padding: 25px 0 10px; */
|
|
-}
|
|
|
|
|
|
+/* } */
|
|
|
|
|
|
.answerContent {
|
|
.answerContent {
|
|
width: 215px;
|
|
width: 215px;
|
|
@@ -23739,8 +23790,8 @@ export default {
|
|
width: 400px;
|
|
width: 400px;
|
|
}
|
|
}
|
|
|
|
|
|
-.e_add_btn {
|
|
|
|
-}
|
|
|
|
|
|
+/* .e_add_btn {
|
|
|
|
+} */
|
|
|
|
|
|
.e_add_content {
|
|
.e_add_content {
|
|
display: flex;
|
|
display: flex;
|
|
@@ -25132,8 +25183,8 @@ ol {
|
|
top: -25px;
|
|
top: -25px;
|
|
}
|
|
}
|
|
|
|
|
|
-.group_workBox {
|
|
|
|
-}
|
|
|
|
|
|
+/* .group_workBox {
|
|
|
|
+} */
|
|
|
|
|
|
.group_workBox + .group_workBox {
|
|
.group_workBox + .group_workBox {
|
|
margin-top: 20px;
|
|
margin-top: 20px;
|
|
@@ -25256,8 +25307,8 @@ ol {
|
|
border-radius: 5px;
|
|
border-radius: 5px;
|
|
}
|
|
}
|
|
|
|
|
|
-.groupBox {
|
|
|
|
-}
|
|
|
|
|
|
+/* .groupBox {
|
|
|
|
+} */
|
|
|
|
|
|
.groupContent + .groupContent {
|
|
.groupContent + .groupContent {
|
|
margin-top: 30px;
|
|
margin-top: 30px;
|
|
@@ -25598,9 +25649,9 @@ ol {
|
|
margin-left: 15px;
|
|
margin-left: 15px;
|
|
width: calc(100% - 50px);
|
|
width: calc(100% - 50px);
|
|
}
|
|
}
|
|
-.stageNav{
|
|
|
|
|
|
+/* .stageNav{ */
|
|
/* font-weight: bold; */
|
|
/* font-weight: bold; */
|
|
-}
|
|
|
|
|
|
+/* } */
|
|
.stageItemTitle > div:first-child {
|
|
.stageItemTitle > div:first-child {
|
|
min-width: 55px;
|
|
min-width: 55px;
|
|
}
|
|
}
|
|
@@ -25647,11 +25698,11 @@ ol {
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
transition: all 0.5s;
|
|
transition: all 0.5s;
|
|
}
|
|
}
|
|
-.toolChild {
|
|
|
|
|
|
+/* .toolChild { */
|
|
/* margin: 0 0 0 17px;
|
|
/* margin: 0 0 0 17px;
|
|
padding: 0 0 0 20px;
|
|
padding: 0 0 0 20px;
|
|
border-left: 1px solid #d7d7d7; */
|
|
border-left: 1px solid #d7d7d7; */
|
|
-}
|
|
|
|
|
|
+/* } */
|
|
|
|
|
|
.toolChild > div + div{
|
|
.toolChild > div + div{
|
|
margin-top:5px;
|
|
margin-top:5px;
|
|
@@ -25674,7 +25725,7 @@ ol {
|
|
width:100%;
|
|
width:100%;
|
|
}
|
|
}
|
|
|
|
|
|
-.toolChild > div::before {
|
|
|
|
|
|
+/* .toolChild > div::before { */
|
|
/* content: "";
|
|
/* content: "";
|
|
width: 15px;
|
|
width: 15px;
|
|
height: 1px;
|
|
height: 1px;
|
|
@@ -25683,7 +25734,7 @@ ol {
|
|
top: 24px;
|
|
top: 24px;
|
|
left: -20px;
|
|
left: -20px;
|
|
display: block; */
|
|
display: block; */
|
|
-}
|
|
|
|
|
|
+/* } */
|
|
|
|
|
|
.isGjCss {
|
|
.isGjCss {
|
|
/* color: #0061ff; */
|
|
/* color: #0061ff; */
|