11wqe1 2 månader sedan
förälder
incheckning
e76666e5f5

+ 41 - 0
src/common/tools2.js

@@ -0,0 +1,41 @@
+export const tools = {
+    58: "模拟驾驶",
+    59: "路径搜索",
+    60: "深度学习",
+    10: "倒计时",
+    65: "挑人",
+    7: "思维网格",
+    1: "电子白板",
+    52: "文档",
+    3: "思维导图",
+    48: "表格",
+    49: "学生分组",
+    4: "卷调查",
+    45: "选择题",
+    15: "问答",
+    16: "作业提交",
+    50: "批量上传",
+    41: "选择匹配",
+    47: "排序",
+    40: "个人评价",
+    18: "训练平台",
+    21: "AIoT Blockly",
+    23: "AI Python",
+    24: "AI Blockly",
+    32: "源码编辑",
+    57: "CocoPi",
+    63: "海龟编程",
+    28: "翻译",
+    31: "数字画板",
+    39: "GeoGebra",
+    66: "公式编辑",
+    67: "分子结构",
+    68: "时间轴",
+    69: "英语写作",
+    70: "英语口语",
+    25: "目标管理",
+    26: "课程设计",
+    62: "交互视频",
+    71: "AI智能体",
+    72: "AI应用",
+};

+ 20 - 4
src/components/components/choseWorksDetailDialog.vue

@@ -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)
+
           });
 
     },

+ 4 - 1
src/components/easy2/studyStudent.vue

@@ -16213,6 +16213,7 @@ import cocoFlowDia from "../components/cocoFlowDia.vue";
 
 import choseWordCloud from '../components/choseWordCloud.vue'
 import { myMixin } from "@/mixins/mixin.js"
+import { tools as toolsList } from "@/common/tools2.js";
 
 var OpenCC = require("opencc-js");
 let converter = OpenCC.Converter({
@@ -16355,6 +16356,7 @@ export default {
         engTitle: "",
         engText: ""
       },
+			toolsList: toolsList,
       newEnglishList1: [],
       oldEnglishJson: {},
       oldEnglishJson1: {},
@@ -23338,7 +23340,6 @@ 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) {
@@ -23872,6 +23873,8 @@ export default {
         ].chapterInfo[0].taskJson[index].toolChoose[i].videoJson;
         this.dialogVisibleVideo = true;
       }
+      this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
+
       this.insertMemorandum(
         `点击工作区<span class="variable">工具${index + 1}:${
           this.toolsList[t]

+ 4 - 1
src/components/easy3/studyStudent.vue

@@ -12516,6 +12516,7 @@ import choseWordCloud from '../components/choseWordCloud.vue'
 import appStoreC from "../components/appStoreC.vue";
 import cocoFlowDia from "../components/cocoFlowDia.vue";
 import { myMixin } from "@/mixins/mixin.js"
+import { tools as toolsList } from "@/common/tools2.js";
 
 let converter = OpenCC.Converter({
   from: "hk",
@@ -12606,6 +12607,7 @@ export default {
   },
   data() {
     return {
+			toolsList: toolsList,
       wordCloudKey: 0,
       bg: null,
       drawShow: false,
@@ -18764,7 +18766,6 @@ 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) {
@@ -19299,6 +19300,8 @@ export default {
           ].toolChoose[i].videoJson;
         this.dialogVisibleVideo = true;
       }
+      this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
+
 			this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
     },
     teacherWorkSubmit(t, i, index, s) {

+ 5 - 42
src/components/studyStudent.vue

@@ -12453,6 +12453,8 @@ import choseWordCloud from './components/choseWordCloud.vue'
 import appStoreC from "./components/appStoreC.vue";
 import cocoFlowDia from "./components/cocoFlowDia.vue";
 import { myMixin } from "@/mixins/mixin.js"
+import { tools as toolsList } from "@/common/tools2.js";
+
 let converter = OpenCC.Converter({
   from: "hk",
   to: "cn"
@@ -12906,46 +12908,7 @@ export default {
       classRoomHelperWidth: '85px',
 			orgArray:[],
       oidArray:[],
-			toolsList:{
-    58: "模拟驾驶",
-    59: "路径搜索",
-    60: "深度学习",
-    10: "倒计时",
-    65: "挑人",
-    7: "思维网格",
-    1: "电子白板",
-    52: "文档",
-    3: "思维导图",
-    48: "表格",
-    49: "学生分组",
-    4: "卷调查",
-    45: "选择题",
-    15: "问答",
-    16: "作业提交",
-    50: "批量上传",
-    41: "选择匹配",
-    47: "排序",
-    40: "个人评价",
-    18: "训练平台",
-    21: "AIoT Blockly",
-    23: "AI Python",
-    24: "AI Blockly",
-    32: "源码编辑",
-    57: "CocoPi",
-    63: "海龟编程",
-    28: "翻译",
-    31: "数字画板",
-    39: "GeoGebra",
-    66: "公式编辑",
-    67: "分子结构",
-    68: "时间轴",
-    69: "英语写作",
-    70: "英语口语",
-    25: "目标管理",
-    26: "课程设计",
-    62: "交互视频",
-    71: "AI智能体"
-},
+			toolsList: toolsList,
 		splitScreenData:{
 			isOpen:false,
 			userId:"",
@@ -18748,8 +18711,6 @@ export default {
     addTools(t, i, index) {
       var a = 0;
       // this.taskCount = index;
-      
-      this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
 
       this.toolindex = i;
       if (t == 1) {
@@ -19284,6 +19245,8 @@ export default {
           ].toolChoose[i].videoJson;
         this.dialogVisibleVideo = true;
       }
+      this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
+
 			this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
     },
     teacherWorkSubmit(t, i, index, s) {

+ 3 - 1
src/components/studySutdentClass/studyStudent.vue

@@ -15763,6 +15763,7 @@ import choseWordCloud from '../components/choseWordCloud.vue'
 import appStoreC from "../components/appStoreC.vue";
 import cocoFlowDia from "../components/cocoFlowDia.vue";
 import { myMixin } from "@/mixins/mixin.js"
+import { tools as toolsList } from "@/common/tools2.js";
 
 var OpenCC = require("opencc-js");
 let converter = OpenCC.Converter({
@@ -15857,6 +15858,7 @@ export default {
   },
   data() {
     return {
+			toolsList: toolsList,
       wordCloudKey: 0,
       bg: null,
       drawShow: false,
@@ -22736,7 +22738,6 @@ export default {
     },
     addTools(t, i, index) {
       var a = 0;
-      this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
 
       // this.taskCount = index;
       this.toolindex = i;
@@ -23273,6 +23274,7 @@ export default {
           ].toolChoose[i].videoJson;
         this.dialogVisibleVideo = true;
       }
+      this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
 			this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
     },
     teacherWorkSubmit(t, i, index, s) {