|
@@ -12671,6 +12671,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ homeWorkLoading:false,
|
|
|
toolsList: toolsList,
|
|
|
wordCloudKey: 0,
|
|
|
bg: null,
|
|
@@ -13568,6 +13569,8 @@ export default {
|
|
|
type: 7,
|
|
|
},
|
|
|
];
|
|
|
+ if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
|
|
|
+ this.homeWorkLoading = true
|
|
|
this.ajax
|
|
|
.post(this.$store.state.api + "addCourseWorks", params)
|
|
|
.then((res) => {
|
|
@@ -13576,6 +13579,9 @@ export default {
|
|
|
type: "success",
|
|
|
});
|
|
|
this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, "success")
|
|
|
+ setTimeout(() => {
|
|
|
+ this.homeWorkLoading = false
|
|
|
+ }, 500);
|
|
|
|
|
|
this.dialogVisibleSelect = false;
|
|
|
// this.selectAnswer = {};
|
|
@@ -13585,6 +13591,10 @@ export default {
|
|
|
.catch((err) => {
|
|
|
this.$message.error("提交失败");
|
|
|
console.error(err);
|
|
|
+ setTimeout(() => {
|
|
|
+ this.homeWorkLoading = false
|
|
|
+ }, 500);
|
|
|
+
|
|
|
this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, err)
|
|
|
|
|
|
});
|
|
@@ -13641,6 +13651,8 @@ export default {
|
|
|
type: 9,
|
|
|
},
|
|
|
];
|
|
|
+ if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
|
|
|
+ this.homeWorkLoading = true
|
|
|
this.ajax
|
|
|
.post(this.$store.state.api + "addCourseWorks", params)
|
|
|
.then((res) => {
|
|
@@ -13649,6 +13661,9 @@ export default {
|
|
|
type: "success",
|
|
|
});
|
|
|
this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, "success")
|
|
|
+ setTimeout(() => {
|
|
|
+ this.homeWorkLoading = false
|
|
|
+ }, 500);
|
|
|
|
|
|
this.dialogVisibleSentence = false;
|
|
|
// this.selectAnswer = {};
|
|
@@ -13658,6 +13673,10 @@ export default {
|
|
|
.catch((err) => {
|
|
|
this.$message.error("提交失败");
|
|
|
console.error(err);
|
|
|
+ setTimeout(() => {
|
|
|
+ this.homeWorkLoading = false
|
|
|
+ }, 500);
|
|
|
+
|
|
|
this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, err)
|
|
|
|
|
|
});
|
|
@@ -13725,6 +13744,8 @@ export default {
|
|
|
type: 10,
|
|
|
},
|
|
|
];
|
|
|
+ if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
|
|
|
+ this.homeWorkLoading = true
|
|
|
this.ajax
|
|
|
.post(this.$store.state.api + "addCourseWorks", params)
|
|
|
.then((res) => {
|
|
@@ -13733,6 +13754,9 @@ export default {
|
|
|
type: "success",
|
|
|
});
|
|
|
this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, "success")
|
|
|
+ setTimeout(() => {
|
|
|
+ this.homeWorkLoading = false
|
|
|
+ }, 500);
|
|
|
|
|
|
this.dialogVisibleTable = false;
|
|
|
// this.selectAnswer = {};
|
|
@@ -13742,6 +13766,10 @@ export default {
|
|
|
.catch((err) => {
|
|
|
this.$message.error("提交失败");
|
|
|
console.error(err);
|
|
|
+ setTimeout(() => {
|
|
|
+ this.homeWorkLoading = false
|
|
|
+ }, 500);
|
|
|
+
|
|
|
this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, err)
|
|
|
|
|
|
});
|
|
@@ -13806,6 +13834,8 @@ export default {
|
|
|
atool: 52,
|
|
|
},
|
|
|
];
|
|
|
+ if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
|
|
|
+ this.homeWorkLoading = true
|
|
|
this.ajax
|
|
|
.post(this.$store.state.api + "addCourseWorks3-2", params)
|
|
|
.then((res) => {
|
|
@@ -13814,6 +13844,9 @@ export default {
|
|
|
type: "success",
|
|
|
});
|
|
|
this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, "success")
|
|
|
+ setTimeout(() => {
|
|
|
+ this.homeWorkLoading = false
|
|
|
+ }, 500);
|
|
|
|
|
|
this.dialogVisibleWord = false;
|
|
|
// this.selectAnswer = {};
|
|
@@ -13823,6 +13856,10 @@ export default {
|
|
|
.catch((err) => {
|
|
|
this.$message.error("提交失败");
|
|
|
console.error(err);
|
|
|
+ setTimeout(() => {
|
|
|
+ this.homeWorkLoading = false
|
|
|
+ }, 500);
|
|
|
+
|
|
|
this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, err)
|
|
|
|
|
|
});
|
|
@@ -13884,6 +13921,8 @@ export default {
|
|
|
type: typesql,
|
|
|
},
|
|
|
];
|
|
|
+ if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
|
|
|
+ this.homeWorkLoading = true
|
|
|
this.ajax
|
|
|
.post(this.$store.state.api + "addCourseWorksR", params)
|
|
|
.then((res) => {
|
|
@@ -13892,6 +13931,9 @@ export default {
|
|
|
type: "success",
|
|
|
});
|
|
|
this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, "success")
|
|
|
+ setTimeout(() => {
|
|
|
+ this.homeWorkLoading = false
|
|
|
+ }, 500);
|
|
|
|
|
|
this.studyJuri[0].cover = [];
|
|
|
this.dialogVisible = false;
|
|
@@ -13900,6 +13942,10 @@ export default {
|
|
|
.catch((err) => {
|
|
|
this.$message.error("提交失败");
|
|
|
console.error(err);
|
|
|
+ setTimeout(() => {
|
|
|
+ this.homeWorkLoading = false
|
|
|
+ }, 500);
|
|
|
+
|
|
|
this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, err)
|
|
|
|
|
|
});
|
|
@@ -13927,6 +13973,8 @@ export default {
|
|
|
content: JSON.stringify(_files),
|
|
|
},
|
|
|
];
|
|
|
+ if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
|
|
|
+ this.homeWorkLoading = true
|
|
|
this.ajax
|
|
|
.post(this.$store.state.api + "addCourseWorksPl", params)
|
|
|
.then((res) => {
|
|
@@ -13935,6 +13983,9 @@ export default {
|
|
|
type: "success",
|
|
|
});
|
|
|
this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, "success")
|
|
|
+ setTimeout(() => {
|
|
|
+ this.homeWorkLoading = false
|
|
|
+ }, 500);
|
|
|
|
|
|
this.plworkFile = [];
|
|
|
this.dialogVisiblePl = false;
|
|
@@ -13943,6 +13994,10 @@ export default {
|
|
|
.catch((err) => {
|
|
|
this.$message.error("提交失败");
|
|
|
console.error(err);
|
|
|
+ setTimeout(() => {
|
|
|
+ this.homeWorkLoading = false
|
|
|
+ }, 500);
|
|
|
+
|
|
|
this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, err)
|
|
|
|
|
|
});
|
|
@@ -13980,6 +14035,8 @@ export default {
|
|
|
text: "",
|
|
|
},
|
|
|
];
|
|
|
+ if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
|
|
|
+ this.homeWorkLoading = true
|
|
|
this.ajax
|
|
|
.post(this.$store.state.api + "addCourseWorks5", params)
|
|
|
.then((res) => {
|
|
@@ -13987,6 +14044,10 @@ export default {
|
|
|
message: "提交成功",
|
|
|
type: "success",
|
|
|
});
|
|
|
+ setTimeout(() => {
|
|
|
+ this.homeWorkLoading = false
|
|
|
+ }, 500);
|
|
|
+
|
|
|
this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
|
|
|
type: typesql,
|
|
|
groupIndex: this.groupIndex,
|
|
@@ -13999,6 +14060,10 @@ export default {
|
|
|
.catch((err) => {
|
|
|
this.$message.error("提交失败");
|
|
|
console.error(err);
|
|
|
+ setTimeout(() => {
|
|
|
+ this.homeWorkLoading = false
|
|
|
+ }, 500);
|
|
|
+
|
|
|
this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
|
|
|
type: typesql,
|
|
|
groupIndex: this.groupIndex,
|
|
@@ -14025,6 +14090,8 @@ export default {
|
|
|
text: "",
|
|
|
},
|
|
|
];
|
|
|
+ if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
|
|
|
+ this.homeWorkLoading = true
|
|
|
this.ajax
|
|
|
.post(this.$store.state.api + "addCourseWorks5", params)
|
|
|
.then((res) => {
|
|
@@ -14032,6 +14099,10 @@ export default {
|
|
|
message: "提交成功",
|
|
|
type: "success",
|
|
|
});
|
|
|
+ setTimeout(() => {
|
|
|
+ this.homeWorkLoading = false
|
|
|
+ }, 500);
|
|
|
+
|
|
|
this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
|
|
|
data: JSON.stringify(this.myAnList),
|
|
|
type: "course_tool_sub" }, "success")
|
|
@@ -14045,6 +14116,10 @@ export default {
|
|
|
.catch((err) => {
|
|
|
this.$message.error("提交失败");
|
|
|
console.error(err);
|
|
|
+ setTimeout(() => {
|
|
|
+ this.homeWorkLoading = false
|
|
|
+ }, 500);
|
|
|
+
|
|
|
this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
|
|
|
data: JSON.stringify(this.myAnList),
|
|
|
type: "course_tool_sub" }, err)
|
|
@@ -17130,6 +17205,8 @@ export default {
|
|
|
type: 3,
|
|
|
},
|
|
|
];
|
|
|
+ if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
|
|
|
+ this.homeWorkLoading = true
|
|
|
this.ajax
|
|
|
.post(this.$store.state.api + "addCourseWorks", params)
|
|
|
.then((res) => {
|
|
@@ -17138,6 +17215,9 @@ export default {
|
|
|
type: "success",
|
|
|
});
|
|
|
this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, "success")
|
|
|
+ setTimeout(() => {
|
|
|
+ this.homeWorkLoading = false
|
|
|
+ }, 500);
|
|
|
|
|
|
this.answerList = [];
|
|
|
this.answerDialogVisible = false;
|
|
@@ -17148,6 +17228,10 @@ export default {
|
|
|
.catch((err) => {
|
|
|
this.$message.error("提交失败");
|
|
|
console.error(err);
|
|
|
+ setTimeout(() => {
|
|
|
+ this.homeWorkLoading = false
|
|
|
+ }, 500);
|
|
|
+
|
|
|
this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
|
|
|
|
|
|
});
|
|
@@ -18429,6 +18513,8 @@ export default {
|
|
|
type: 6,
|
|
|
},
|
|
|
];
|
|
|
+ if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
|
|
|
+ this.homeWorkLoading = true
|
|
|
this.ajax
|
|
|
.post(this.$store.state.api + "addCourseWorks", params)
|
|
|
.then((res) => {
|
|
@@ -18437,6 +18523,9 @@ export default {
|
|
|
type: "success",
|
|
|
});
|
|
|
this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
|
|
|
+ setTimeout(() => {
|
|
|
+ this.homeWorkLoading = false
|
|
|
+ }, 500);
|
|
|
|
|
|
this.eScore = { eBzText: "", eStar: [] };
|
|
|
this.studentEvalDialogVisible = false;
|
|
@@ -18445,6 +18534,10 @@ export default {
|
|
|
.catch((err) => {
|
|
|
this.$message.error("提交失败");
|
|
|
console.error(err);
|
|
|
+ setTimeout(() => {
|
|
|
+ this.homeWorkLoading = false
|
|
|
+ }, 500);
|
|
|
+
|
|
|
this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
|
|
|
|
|
|
});
|
|
@@ -18504,6 +18597,8 @@ export default {
|
|
|
type: 2,
|
|
|
},
|
|
|
];
|
|
|
+ if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
|
|
|
+ this.homeWorkLoading = true
|
|
|
this.ajax
|
|
|
.post(this.$store.state.api + "addCourseWorks", params)
|
|
|
.then((res) => {
|
|
@@ -18512,6 +18607,9 @@ export default {
|
|
|
type: "success",
|
|
|
});
|
|
|
this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
|
|
|
+ setTimeout(() => {
|
|
|
+ this.homeWorkLoading = false
|
|
|
+ }, 500);
|
|
|
|
|
|
this.askList = [];
|
|
|
this.dialogVisible5 = false;
|
|
@@ -18521,6 +18619,9 @@ export default {
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
|
|
|
+ setTimeout(() => {
|
|
|
+ this.homeWorkLoading = false
|
|
|
+ }, 500);
|
|
|
|
|
|
this.$message.error("提交失败");
|
|
|
console.error(err);
|
|
@@ -18596,6 +18697,8 @@ export default {
|
|
|
type: 8,
|
|
|
},
|
|
|
];
|
|
|
+ if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
|
|
|
+ this.homeWorkLoading = true
|
|
|
this.ajax
|
|
|
.post(this.$store.state.api + "addCourseWorks", params)
|
|
|
.then((res) => {
|
|
@@ -18604,6 +18707,9 @@ export default {
|
|
|
type: "success",
|
|
|
});
|
|
|
this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
|
|
|
+ setTimeout(() => {
|
|
|
+ this.homeWorkLoading = false
|
|
|
+ }, 500);
|
|
|
|
|
|
this.askList = [];
|
|
|
this.dialogVisibleChoice = false;
|
|
@@ -18614,6 +18720,10 @@ export default {
|
|
|
.catch((err) => {
|
|
|
this.$message.error("提交失败");
|
|
|
console.error(err);
|
|
|
+ setTimeout(() => {
|
|
|
+ this.homeWorkLoading = false
|
|
|
+ }, 500);
|
|
|
+
|
|
|
this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
|
|
|
|
|
|
});
|
|
@@ -21050,13 +21160,13 @@ export default {
|
|
|
if (!document.fullscreenElement) {
|
|
|
this.enterFullScreen();
|
|
|
}
|
|
|
- if (this.timer2) {
|
|
|
- clearInterval(this.timer2);
|
|
|
- this.timer2 = null;
|
|
|
- }
|
|
|
- this.timer2 = setInterval(()=> {
|
|
|
- this.getSplitScreenData();//获取分屏数据
|
|
|
- }, 1000);
|
|
|
+ // if (this.timer2) {
|
|
|
+ // clearInterval(this.timer2);
|
|
|
+ // this.timer2 = null;
|
|
|
+ // }
|
|
|
+ // this.timer2 = setInterval(()=> {
|
|
|
+ // this.getSplitScreenData();//获取分屏数据
|
|
|
+ // }, 1000);
|
|
|
|
|
|
this.$message.success("分屏模式已开启");
|
|
|
},
|
|
@@ -21107,13 +21217,13 @@ export default {
|
|
|
this.splitScreenData.uid = "";
|
|
|
this.splitScreenData.behavior = null;
|
|
|
this.$message.error("已结束分屏模式");
|
|
|
- if (this.timer2) {
|
|
|
- clearInterval(this.timer2);
|
|
|
- this.timer2 = null;
|
|
|
- }
|
|
|
- this.timer2 = setInterval(()=> {
|
|
|
- this.getSplitScreenData();//获取分屏数据
|
|
|
- }, 5000);
|
|
|
+ // if (this.timer2) {
|
|
|
+ // clearInterval(this.timer2);
|
|
|
+ // this.timer2 = null;
|
|
|
+ // }
|
|
|
+ // this.timer2 = setInterval(()=> {
|
|
|
+ // this.getSplitScreenData();//获取分屏数据
|
|
|
+ // }, 5000);
|
|
|
this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
|
|
|
confirmButtonText: '确定', //确认按钮的文字
|
|
|
showCancelButton: false, //是否显示取消按钮
|
|
@@ -23381,10 +23491,10 @@ export default {
|
|
|
justify-content: center;
|
|
|
}
|
|
|
|
|
|
-.answerBg > div:nth-child(1) {
|
|
|
- /* font-size: 22px;
|
|
|
- padding: 25px 0 10px; */
|
|
|
-}
|
|
|
+/* .answerBg > div:nth-child(1) {
|
|
|
+ font-size: 22px;
|
|
|
+ padding: 25px 0 10px;
|
|
|
+} */
|
|
|
|
|
|
.answerContent {
|
|
|
width: 215px;
|
|
@@ -23553,8 +23663,8 @@ export default {
|
|
|
width: 400px;
|
|
|
}
|
|
|
|
|
|
-.e_add_btn {
|
|
|
-}
|
|
|
+/* .e_add_btn {
|
|
|
+} */
|
|
|
|
|
|
.e_add_content {
|
|
|
display: flex;
|
|
@@ -24946,8 +25056,8 @@ ol {
|
|
|
top: -25px;
|
|
|
}
|
|
|
|
|
|
-.group_workBox {
|
|
|
-}
|
|
|
+/* .group_workBox {
|
|
|
+} */
|
|
|
|
|
|
.group_workBox + .group_workBox {
|
|
|
margin-top: 20px;
|
|
@@ -25070,8 +25180,8 @@ ol {
|
|
|
border-radius: 5px;
|
|
|
}
|
|
|
|
|
|
-.groupBox {
|
|
|
-}
|
|
|
+/* .groupBox {
|
|
|
+} */
|
|
|
|
|
|
.groupContent + .groupContent {
|
|
|
margin-top: 30px;
|
|
@@ -25437,11 +25547,11 @@ ol {
|
|
|
overflow: hidden;
|
|
|
transition: all 0.5s;
|
|
|
}
|
|
|
-.toolChild {
|
|
|
+/* .toolChild { */
|
|
|
/* margin: 0 0 0 17px;
|
|
|
padding: 0 0 0 20px;
|
|
|
border-left: 1px solid #d7d7d7; */
|
|
|
-}
|
|
|
+/* } */
|
|
|
|
|
|
.toolChild > div + div{
|
|
|
margin-top:5px;
|