Przeglądaj źródła

Merge branch 'beta' of https://git.cocorobo.cn/CocoRoboLabs/pbl-student-table into beta

SanHQin 2 miesięcy temu
rodzic
commit
ed1ff27482

+ 8 - 1
src/components/EnglishVoice2/index.vue

@@ -25,8 +25,9 @@
 <script>
 import right from './component/right.vue'
 import left from './component/left.vue'
-
+import { myMixin } from "@/mixins/mixin.js"
 export default {
+    mixins: [ myMixin ],
     components: {
         right,
         left
@@ -154,11 +155,17 @@ export default {
                         message: "提交成功",
                         type: "success",
                     });
+                    this.addOp3('1', "", { courseid: this.id,tool:'英语口语',
+                    data: JSON.stringify(this.work),
+                    type: "course_tool_sub" }, "success")
                     this.$emit('selectSWorks')
                     this.$emit('selectStudent')
                     this.close2();
                 })
                 .catch((err) => {
+                    this.addOp3('1', "", { courseid: this.id,tool:'英语口语',
+                    data: JSON.stringify(this.work),
+                    type: "course_tool_sub" }, err)
                     this.$message.error("提交失败");
                     console.error(err);
                 });

+ 5 - 0
src/components/components/appStoreC.vue

@@ -32,7 +32,9 @@
 </template>
 
 <script>
+import { myMixin } from "@/mixins/mixin.js"
     export default {
+        mixins: [ myMixin ],
         props: ["sStudent","courseType","taskCount","toolindex"],
         data() {
             return {
@@ -95,11 +97,14 @@
                         type: "success"
                     });
                         this.dialogVisibleSelectTeacher = false;
+                        this.addOp3('1', "", { courseid: this.id,tool:'AI应用',data:Cow,type: "course_tool_sub" }, "success")
                         // this.selectAnswer = {};
                         this.$emit('selectSWorks');
                         this.$emit('selectStudent');
                     })
                     .catch(err => {
+                        this.addOp3('1', "", { courseid: this.id,tool:'AI应用',data:Cow,type: "course_tool_sub" }, err)
+
                         this.$message.error("提交失败");
                         console.error(err);
                     });

+ 62 - 0
src/components/easy2/studyStudent.vue

@@ -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);

+ 61 - 0
src/components/easy3/studyStudent.vue

@@ -12515,6 +12515,7 @@ var OpenCC = require("opencc-js");
 import choseWordCloud from '../components/choseWordCloud.vue'
 import appStoreC from "../components/appStoreC.vue";
 import cocoFlowDia from "../components/cocoFlowDia.vue";
+import { myMixin } from "@/mixins/mixin.js"
 
 let converter = OpenCC.Converter({
   from: "hk",
@@ -12570,6 +12571,8 @@ const getFile = (url) => {
   });
 };
 export default {
+  mixins: [ myMixin ],
+
   components: {
     choseWordCloud,
     EditorBar,
@@ -13505,6 +13508,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();
@@ -13513,6 +13518,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() {
@@ -13574,6 +13581,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();
@@ -13582,6 +13591,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() {
@@ -13654,6 +13665,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();
@@ -13662,6 +13675,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 }) {
@@ -13731,6 +13746,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();
@@ -13739,6 +13756,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() {
@@ -13805,6 +13824,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);
@@ -13812,6 +13833,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)
+
         });
     },
 
@@ -13844,6 +13867,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);
@@ -13851,6 +13876,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) {
@@ -13893,6 +13920,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);
@@ -13900,6 +13932,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() {
@@ -13928,6 +13965,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;
@@ -13938,6 +13978,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)
         });
     },
 
@@ -17021,6 +17064,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();
@@ -17030,6 +17075,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() {
@@ -18315,6 +18362,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();
@@ -18322,6 +18371,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() {
@@ -18386,6 +18437,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();
@@ -18393,6 +18446,8 @@ export default {
           this.selectSLook();
         })
         .catch((err) => {
+          this.addOp3('1', "", { courseid: this.id,tool:'问卷',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
+
           this.$message.error("提交失败");
           console.error(err);
         });
@@ -18474,6 +18529,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();
@@ -18483,6 +18540,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() {
@@ -18705,6 +18764,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);

+ 62 - 5
src/components/studyStudent.vue

@@ -12452,7 +12452,7 @@ var OpenCC = require("opencc-js");
 import choseWordCloud from './components/choseWordCloud.vue'
 import appStoreC from "./components/appStoreC.vue";
 import cocoFlowDia from "./components/cocoFlowDia.vue";
-
+import { myMixin } from "@/mixins/mixin.js"
 let converter = OpenCC.Converter({
   from: "hk",
   to: "cn"
@@ -12507,6 +12507,7 @@ const getFile = (url) => {
   });
 };
 export default {
+  mixins: [ myMixin ],
   components: {
     choseWordCloud,
     EditorBar,
@@ -13481,12 +13482,16 @@ 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();
           this.selectStudent();
         })
         .catch((err) => {
+          this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, err)
+
           this.$message.error("提交失败");
           console.error(err);
         });
@@ -13550,12 +13555,16 @@ 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();
           this.selectStudent();
         })
         .catch((err) => {
+          this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, err)
+
           this.$message.error("提交失败");
           console.error(err);
         });
@@ -13626,6 +13635,8 @@ export default {
       this.ajax
         .post(this.$store.state.api + "addCourseWorks", params)
         .then((res) => {
+          this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, "success")
+
           this.$message({
             message: "提交成功",
             type: "success",
@@ -13636,6 +13647,8 @@ export default {
           this.selectStudent();
         })
         .catch((err) => {
+          this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, err)
+
           this.$message.error("提交失败");
           console.error(err);
         });
@@ -13703,8 +13716,8 @@ export default {
       this.ajax
         .post(this.$store.state.api + "addCourseWorks3-2", params)
         .then((res) => {
-          console.log('res',res);
-          
+          this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, "success")
+
           this.$message({
             message: "提交成功",
             type: "success",
@@ -13715,6 +13728,8 @@ export default {
           this.selectStudent();
         })
         .catch((err) => {
+          this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, err)
+
           this.$message.error("提交失败");
           console.error(err);
         });
@@ -13783,11 +13798,15 @@ 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);
         })
         .catch((err) => {
+          this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, err)
+
           this.$message.error("提交失败");
           console.error(err);
         });
@@ -13822,6 +13841,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);
@@ -13829,6 +13850,7 @@ 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) {
@@ -13871,6 +13893,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);
@@ -13878,6 +13905,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() {
@@ -13906,16 +13938,22 @@ 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;
           this.engDialogVisible = false;
           this.selectSWorks();
-          this.selectStudent();
+          this.selectStudent();    
         })
         .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) {
@@ -17009,6 +17047,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();
@@ -17016,6 +17056,8 @@ export default {
           this.selectSLook();
         })
         .catch((err) => {
+          this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
+
           this.$message.error("提交失败");
           console.error(err);
         });
@@ -18303,11 +18345,15 @@ 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();
         })
         .catch((err) => {
+          this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
+
           this.$message.error("提交失败");
           console.error(err);
         });
@@ -18366,7 +18412,7 @@ export default {
           type: 2,
         },
       ];
-      console.log('params',params);
+      // console.log('params',params);
 
       this.ajax
         .post(this.$store.state.api + "addCourseWorks", params)
@@ -18375,6 +18421,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();
@@ -18382,6 +18430,8 @@ export default {
           this.selectSLook();
         })
         .catch((err) => {
+          this.addOp3('1', "", { courseid: this.id,tool:'问卷',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
+
           this.$message.error("提交失败");
           console.error(err);
         });
@@ -18463,6 +18513,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();
@@ -18470,6 +18522,8 @@ export default {
           this.selectSLook();
         })
         .catch((err) => {
+          this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
+
           this.$message.error("提交失败");
           console.error(err);
         });
@@ -18694,6 +18748,9 @@ 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) {
         if (this.wbCount > 0) {

+ 61 - 0
src/components/studySutdentClass/studyStudent.vue

@@ -15762,6 +15762,7 @@ import evaTable from "./commpont/evaTable";
 import choseWordCloud from '../components/choseWordCloud.vue'
 import appStoreC from "../components/appStoreC.vue";
 import cocoFlowDia from "../components/cocoFlowDia.vue";
+import { myMixin } from "@/mixins/mixin.js"
 
 var OpenCC = require("opencc-js");
 let converter = OpenCC.Converter({
@@ -15818,6 +15819,8 @@ const getFile = (url) => {
   });
 };
 export default {
+  mixins: [ myMixin ],
+
   components: {
     choseWordCloud,
     EditorBar,
@@ -17340,6 +17343,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();
@@ -17348,6 +17353,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() {
@@ -17409,6 +17416,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();
@@ -17417,6 +17426,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() {
@@ -17489,6 +17500,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();
@@ -17497,6 +17510,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 }) {
@@ -17566,6 +17581,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();
@@ -17574,6 +17591,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() {
@@ -17659,6 +17678,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);
@@ -17666,6 +17687,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)
+
         });
     },
 
@@ -17698,6 +17721,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);
@@ -17705,6 +17730,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) {
@@ -17747,6 +17774,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);
@@ -17754,6 +17786,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() {
@@ -17782,6 +17819,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;
@@ -17792,6 +17832,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)
         });
     },
 
@@ -20918,6 +20961,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();
@@ -20925,6 +20970,8 @@ export default {
           this.selectSLook();
         })
         .catch((err) => {
+          this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
+
           this.$message.error("提交失败");
           console.error(err);
         });
@@ -22289,6 +22336,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();
@@ -22296,6 +22345,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() {
@@ -22360,6 +22411,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();
@@ -22369,6 +22422,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() {
@@ -22448,6 +22503,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();
@@ -22457,6 +22514,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() {
@@ -22677,6 +22736,8 @@ 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;
       if (t == 1) {