|
@@ -16212,6 +16212,8 @@ import cocoFlowDia from "../components/cocoFlowDia.vue";
|
|
|
|
|
|
|
|
|
import choseWordCloud from '../components/choseWordCloud.vue'
|
|
|
+import { myMixin } from "@/mixins/mixin.js"
|
|
|
+
|
|
|
var OpenCC = require("opencc-js");
|
|
|
let converter = OpenCC.Converter({
|
|
|
from: "hk",
|
|
@@ -16268,6 +16270,8 @@ const getFile = url => {
|
|
|
});
|
|
|
};
|
|
|
export default {
|
|
|
+ mixins: [ myMixin ],
|
|
|
+
|
|
|
components: {
|
|
|
choseWordCloud,
|
|
|
EditorBar,
|
|
@@ -17828,6 +17832,8 @@ export default {
|
|
|
message: "提交成功",
|
|
|
type: "success"
|
|
|
});
|
|
|
+ this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, "success")
|
|
|
+
|
|
|
this.dialogVisibleSelect = false;
|
|
|
// this.selectAnswer = {};
|
|
|
this.selectSWorks();
|
|
@@ -17836,6 +17842,8 @@ export default {
|
|
|
.catch(err => {
|
|
|
this.$message.error("提交失败");
|
|
|
console.error(err);
|
|
|
+ this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, err)
|
|
|
+
|
|
|
});
|
|
|
},
|
|
|
addSelectAnswerTeacher() {
|
|
@@ -17897,6 +17905,8 @@ export default {
|
|
|
message: "提交成功",
|
|
|
type: "success"
|
|
|
});
|
|
|
+ this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, "success")
|
|
|
+
|
|
|
this.dialogVisibleSentence = false;
|
|
|
// this.selectAnswer = {};
|
|
|
this.selectSWorks();
|
|
@@ -17905,6 +17915,8 @@ export default {
|
|
|
.catch(err => {
|
|
|
this.$message.error("提交失败");
|
|
|
console.error(err);
|
|
|
+ this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, err)
|
|
|
+
|
|
|
});
|
|
|
},
|
|
|
addSenWorksTeacher() {
|
|
@@ -17977,6 +17989,8 @@ export default {
|
|
|
message: "提交成功",
|
|
|
type: "success"
|
|
|
});
|
|
|
+ this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, "success")
|
|
|
+
|
|
|
this.dialogVisibleTable = false;
|
|
|
// this.selectAnswer = {};
|
|
|
this.selectSWorks();
|
|
@@ -17985,6 +17999,8 @@ export default {
|
|
|
.catch(err => {
|
|
|
this.$message.error("提交失败");
|
|
|
console.error(err);
|
|
|
+ this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, err)
|
|
|
+
|
|
|
});
|
|
|
},
|
|
|
tableRowClassName({ row, rowIndex }) {
|
|
@@ -18054,6 +18070,8 @@ export default {
|
|
|
message: "提交成功",
|
|
|
type: "success"
|
|
|
});
|
|
|
+ this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, "success")
|
|
|
+
|
|
|
this.dialogVisibleWord = false;
|
|
|
// this.selectAnswer = {};
|
|
|
this.selectSWorks();
|
|
@@ -18062,6 +18080,8 @@ export default {
|
|
|
.catch(err => {
|
|
|
this.$message.error("提交失败");
|
|
|
console.error(err);
|
|
|
+ this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, err)
|
|
|
+
|
|
|
});
|
|
|
},
|
|
|
addWordWorksTeacher() {
|
|
@@ -18147,6 +18167,8 @@ export default {
|
|
|
message: "提交成功",
|
|
|
type: "success"
|
|
|
});
|
|
|
+ this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, "success")
|
|
|
+
|
|
|
this.studyJuri[0].cover = [];
|
|
|
this.dialogVisible = false;
|
|
|
this.getCourseDetail(2);
|
|
@@ -18154,6 +18176,8 @@ export default {
|
|
|
.catch(err => {
|
|
|
this.$message.error("提交失败");
|
|
|
console.error(err);
|
|
|
+ this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, err)
|
|
|
+
|
|
|
});
|
|
|
},
|
|
|
|
|
@@ -18186,6 +18210,8 @@ export default {
|
|
|
message: "提交成功",
|
|
|
type: "success"
|
|
|
});
|
|
|
+ this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, "success")
|
|
|
+
|
|
|
this.plworkFile = [];
|
|
|
this.dialogVisiblePl = false;
|
|
|
this.getCourseDetail(2);
|
|
@@ -18193,6 +18219,8 @@ export default {
|
|
|
.catch(err => {
|
|
|
this.$message.error("提交失败");
|
|
|
console.error(err);
|
|
|
+ this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, err)
|
|
|
+
|
|
|
});
|
|
|
},
|
|
|
addCourseWorks2(i) {
|
|
@@ -18235,6 +18263,11 @@ export default {
|
|
|
message: "提交成功",
|
|
|
type: "success"
|
|
|
});
|
|
|
+ this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
|
|
|
+ type: typesql,
|
|
|
+ groupIndex: this.groupIndex,
|
|
|
+ url: this.studyJuri[0].cover[0].url,
|
|
|
+ }),type: "course_tool_sub" }, "success")
|
|
|
this.studyJuri[0].cover = [];
|
|
|
this.dialogVisibleGroupWork = false;
|
|
|
this.getCourseDetail(2);
|
|
@@ -18242,6 +18275,11 @@ export default {
|
|
|
.catch(err => {
|
|
|
this.$message.error("提交失败");
|
|
|
console.error(err);
|
|
|
+ this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
|
|
|
+ type: typesql,
|
|
|
+ groupIndex: this.groupIndex,
|
|
|
+ url: this.studyJuri[0].cover[0].url,
|
|
|
+ }),type: "course_tool_sub" }, err)
|
|
|
});
|
|
|
},
|
|
|
addEnglishWork() {
|
|
@@ -18275,6 +18313,9 @@ export default {
|
|
|
message: "提交成功",
|
|
|
type: "success"
|
|
|
});
|
|
|
+ this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
|
|
|
+ data: JSON.stringify(this.myAnList),
|
|
|
+ type: "course_tool_sub" }, "success")
|
|
|
this.myAnList = {};
|
|
|
this.englishList = {};
|
|
|
this.englishToolIndex = 0;
|
|
@@ -18285,6 +18326,9 @@ export default {
|
|
|
.catch(err => {
|
|
|
this.$message.error("提交失败");
|
|
|
console.error(err);
|
|
|
+ this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
|
|
|
+ data: JSON.stringify(this.myAnList),
|
|
|
+ type: "course_tool_sub" }, err)
|
|
|
});
|
|
|
},
|
|
|
addCourseWorksGong(i, data, tool) {
|
|
@@ -21500,6 +21544,8 @@ export default {
|
|
|
message: "提交成功",
|
|
|
type: "success"
|
|
|
});
|
|
|
+ this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, "success")
|
|
|
+
|
|
|
this.answerList = [];
|
|
|
this.answerDialogVisible = false;
|
|
|
this.selectStudent();
|
|
@@ -21509,6 +21555,8 @@ export default {
|
|
|
.catch(err => {
|
|
|
this.$message.error("提交失败");
|
|
|
console.error(err);
|
|
|
+ this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
|
|
|
+
|
|
|
});
|
|
|
},
|
|
|
addQuestionTeacher() {
|
|
@@ -22889,6 +22937,8 @@ export default {
|
|
|
message: "提交成功",
|
|
|
type: "success"
|
|
|
});
|
|
|
+ this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
|
|
|
+
|
|
|
this.eScore = { eBzText: "", eStar: [] };
|
|
|
this.studentEvalDialogVisible = false;
|
|
|
this.selectSWorks();
|
|
@@ -22896,6 +22946,8 @@ export default {
|
|
|
.catch(err => {
|
|
|
this.$message.error("提交失败");
|
|
|
console.error(err);
|
|
|
+ this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
|
|
|
+
|
|
|
});
|
|
|
},
|
|
|
addBzWorksTeacher() {
|
|
@@ -22959,6 +23011,8 @@ export default {
|
|
|
message: "提交成功",
|
|
|
type: "success"
|
|
|
});
|
|
|
+ this.addOp3('1', "", { courseid: this.id,tool:'问卷',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
|
|
|
+
|
|
|
this.askList = [];
|
|
|
this.dialogVisible5 = false;
|
|
|
this.selectStudent();
|
|
@@ -22968,6 +23022,8 @@ export default {
|
|
|
.catch(err => {
|
|
|
this.$message.error("提交失败");
|
|
|
console.error(err);
|
|
|
+ this.addOp3('1', "", { courseid: this.id,tool:'问卷',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
|
|
|
+
|
|
|
});
|
|
|
},
|
|
|
addStudentAskTeacher() {
|
|
@@ -23047,6 +23103,8 @@ export default {
|
|
|
message: "提交成功",
|
|
|
type: "success"
|
|
|
});
|
|
|
+ this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
|
|
|
+
|
|
|
this.askList = [];
|
|
|
this.dialogVisibleChoice = false;
|
|
|
this.selectStudent();
|
|
@@ -23056,6 +23114,8 @@ export default {
|
|
|
.catch(err => {
|
|
|
this.$message.error("提交失败");
|
|
|
console.error(err);
|
|
|
+ this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
|
|
|
+
|
|
|
});
|
|
|
},
|
|
|
addStudentTestTeacher() {
|
|
@@ -23278,6 +23338,8 @@ export default {
|
|
|
var a = 0;
|
|
|
// this.taskCount = index;
|
|
|
this.toolindex = i;
|
|
|
+ this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
|
|
|
+
|
|
|
if (t == 1) {
|
|
|
if (this.wbCount > 0) {
|
|
|
this.updateCount(this.wbCount, t);
|