|
@@ -1353,10 +1353,12 @@ import EditorBar from "../tools/wangEnduit.vue";
|
|
|
import EnglishVoice from '../EnglishVoice3/index.vue'
|
|
|
import onlineWrite from "./onlineWrite";
|
|
|
import smarter from './intelligentAnalysis/smarter.vue';
|
|
|
-
|
|
|
+import { tools as toolsList } from "@/common/tools2.js";
|
|
|
+import { myMixin } from "@/mixins/mixin.js"
|
|
|
// import html2canvas from "html2canvas";
|
|
|
|
|
|
export default {
|
|
|
+ mixins: [ myMixin ],
|
|
|
components:{
|
|
|
eChartsView1:eChartsView,
|
|
|
eChartsView2:eChartsView,
|
|
@@ -1416,6 +1418,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ toolsList:toolsList,
|
|
|
appStoreUrl:'',
|
|
|
chapInfoListData2:[],
|
|
|
radioS:[], //提交作业数组容器
|
|
@@ -1890,12 +1893,15 @@ export default {
|
|
|
this.$emit('selectSWorks');
|
|
|
this.$emit('selectStudent');
|
|
|
document.getElementById('loadLi_JieE').children[0].style.display = "none"
|
|
|
+ this.addOp3('1', "", { courseid: this.id,tool: 'AI应用',data: Cow,type: "course_tool_sub" }, 'success')
|
|
|
+
|
|
|
})
|
|
|
.catch(err => {
|
|
|
document.getElementById('loadLi_JieE').children[0].style.display = "none"
|
|
|
-
|
|
|
this.$message.error("提交失败");
|
|
|
console.error(err);
|
|
|
+ this.addOp3('1', "", { courseid: this.id,tool: 'AI应用',data: Cow,type: "course_tool_sub" }, err)
|
|
|
+
|
|
|
});
|
|
|
},
|
|
|
// 设置分组
|
|
@@ -1966,6 +1972,7 @@ export default {
|
|
|
message: "提交成功",
|
|
|
type: "success",
|
|
|
});
|
|
|
+ this.addOp3('1', "", { courseid: this.id,tool: '英语写作',data:JSON.stringify(myAnList) ,type: "course_tool_sub" }, 'success')
|
|
|
|
|
|
this.englishList = {};
|
|
|
})
|
|
@@ -1980,8 +1987,6 @@ export default {
|
|
|
},
|
|
|
|
|
|
lockChair(){
|
|
|
-
|
|
|
-
|
|
|
this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
|
|
|
this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
|
|
|
this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
|
|
@@ -2254,11 +2259,13 @@ export default {
|
|
|
document.getElementById('loadLi_JieE').children[0].style.display = "none"
|
|
|
this.$message.success('上传成功')
|
|
|
})
|
|
|
+ this.addOp3('1', "", { courseid: this.id,tool: 'Cocopi',data:JSON.stringify(text.replaceAll(/%/g, "%25")) ,type: "course_tool_sub" }, 'success')
|
|
|
|
|
|
|
|
|
},
|
|
|
// 截图类提交作业
|
|
|
async captureScreenshot(){
|
|
|
+
|
|
|
// this.$refs.iframeWhiteBoardRef.contentWindow;
|
|
|
document.getElementById('loadLi_JieE').children[0].style.display = "block"
|
|
|
|
|
@@ -2344,6 +2351,10 @@ export default {
|
|
|
'console.log(_js);\n' +
|
|
|
"document.head.appendChild(_js);\n";
|
|
|
iframeWindow.document.head.appendChild(_ajs);
|
|
|
+
|
|
|
+ this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[this.toolType],data:JSON.stringify(text) ,type: "course_tool_sub" }, 'success')
|
|
|
+
|
|
|
+
|
|
|
// this.$message.success('上传成功')
|
|
|
},
|
|
|
getEditorContent(iframe) {
|
|
@@ -2486,14 +2497,19 @@ export default {
|
|
|
message: "提交成功",
|
|
|
type: "success",
|
|
|
});
|
|
|
+
|
|
|
// this.askList = [];
|
|
|
this.$emit("selectStudent")
|
|
|
this.$emit("selectSWorks")
|
|
|
this.$emit("selectSLook")
|
|
|
+ this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[this.toolType],data:answerData ,type: "course_tool_sub" }, 'success')
|
|
|
+
|
|
|
})
|
|
|
.catch((err) => {
|
|
|
this.$message.error("提交失败");
|
|
|
console.error(err);
|
|
|
+ this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[this.toolType],data:answerData ,type: "course_tool_sub" }, err)
|
|
|
+
|
|
|
});
|
|
|
|
|
|
},
|