11wqe1 3 mēneši atpakaļ
vecāks
revīzija
6386a32ef0

+ 4 - 2
src/components/EnglishVoice2/index.vue

@@ -163,11 +163,13 @@ export default {
                     this.close2();
                 })
                 .catch((err) => {
+                   
+                    this.$message.error("提交失败");
+                    console.error(err);
+                    
                     this.addOp3('1', "", { courseid: this.id,tool:'英语口语',
                     data: JSON.stringify(this.work),
                     type: "course_tool_sub" }, err)
-                    this.$message.error("提交失败");
-                    console.error(err);
                 });
         },
     },

+ 12 - 0
src/components/EnglishVoice3/index.vue

@@ -17,8 +17,11 @@
 <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
@@ -138,6 +141,11 @@ 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();
@@ -145,6 +153,10 @@ export default {
                 .catch((err) => {
                     this.$message.error("提交失败");
                     console.error(err);
+                    
+                    this.addOp3('1', "", { courseid: this.id,tool:'英语口语',
+                    data: JSON.stringify(this.work),
+                    type: "course_tool_sub" }, err)
                 });
         },
     },