浏览代码

课堂观察测试

SanHQin 1 周之前
父节点
当前提交
63f5478361

+ 1 - 1
dist/index.html

@@ -32,7 +32,7 @@
       width: 100%;
       background: #e6eaf0;
       font-family: '黑体';
-    }</style><link href=./static/css/app.36bb5a09a92d46e5f483f98c3d849d17.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.161e82026ac2ae03ab6f.js></script><script type=text/javascript src=./static/js/vendor.bb486323f0fa002ba2e7.js></script><script type=text/javascript src=./static/js/app.6c91b19662fb32102425.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.82882691ef00fd7373043f6cf262dc95.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.161e82026ac2ae03ab6f.js></script><script type=text/javascript src=./static/js/vendor.bb486323f0fa002ba2e7.js></script><script type=text/javascript src=./static/js/app.7734a343296d36d8b293.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {

文件差异内容过多而无法显示
+ 0 - 0
dist/static/css/app.82882691ef00fd7373043f6cf262dc95.css


文件差异内容过多而无法显示
+ 0 - 0
dist/static/css/app.82882691ef00fd7373043f6cf262dc95.css.map


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/app.7734a343296d36d8b293.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/app.7734a343296d36d8b293.js.map


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/manifest.161e82026ac2ae03ab6f.js.map


+ 11 - 5
src/components/pages/classroomObservation/components/chatArea.vue

@@ -1850,7 +1850,7 @@ ${JSON.stringify(_list)}
 
           _startTime = _endTime;
 
-          _this.transcriptionData.content += privText;
+          _this.transcriptionData.content += privSpeakerId + ":" + privText +"\n";
 
           // console.log(textList);
 
@@ -3133,7 +3133,10 @@ ${JSON.stringify(_list)}
         }
         this.showGetTextLoading = true;
         let privText = e.privText;
-        if (privText == undefined || privText == "undefined") return;
+        let privSpeakerId = e.privSpeakerId;
+        if (!privText || !privSpeakerId || privSpeakerId == "Unknown") {
+            return;
+          }
         console.log("👇转译对象👇");
         console.log(e);
         console.log("👇转译结果👇");
@@ -3153,7 +3156,7 @@ ${JSON.stringify(_list)}
         };
         this.recordedForm.textList.push(newItem);
         this.recordedForm.startTime = this.recordedForm.timeDuration + 1;
-        this.transcriptionData.content += privText;
+        this.transcriptionData.content += privSpeakerId + ":" + privText +"\n";;
         this.onRecordAddLine(newItem);
       };
     },
@@ -3188,7 +3191,10 @@ ${JSON.stringify(_list)}
         this.recordedForm.endTime = this.recordedForm.timeDuration;
         this.showGetTextLoading = true;
         let privText = e.privText;
-        if (privText == undefined || privText == "undefined") return;
+        let privSpeakerId = e.privSpeakerId;
+        if (!privText || !privSpeakerId || privSpeakerId == "Unknown") {
+            return;
+          }
         console.log("👇转译对象👇");
         console.log(e);
         console.log("👇转译结果👇");
@@ -3208,7 +3214,7 @@ ${JSON.stringify(_list)}
         };
         this.recordedForm.textList.push(newItem);
         this.recordedForm.startTime = this.recordedForm.timeDuration + 1;
-        this.transcriptionData.content += privText;
+        this.transcriptionData.content += privSpeakerId + ":" + privText +"\n";;
         this.onRecordAddLine(newItem);
       };
     },

+ 31 - 0
src/components/pages/test/index.vue

@@ -1399,6 +1399,37 @@ export default {
         // }
         // this.selectTestType();
     },
+    //切换路由后执行 获取数据
+    beforeRouteEnter(to, from, next) {
+      // console.log("======================")
+      // console.log(to)
+      // console.log(from)
+      // console.log("======================")
+
+      next(vm=>{
+        if(from.path == '/addTest'){
+          vm.selectAllType();
+        if (vm.stype == 1) {
+            vm.getCourse();
+        } else if (vm.stype == 2) {
+            vm.getCourse2();
+        }
+        vm.selectTestType();
+      }
+      })
+
+      // this.$nextTick(()=>{
+      //   if(from.path == '/addTest'){
+      //   this.selectAllType();
+      //   if (this.stype == 1) {
+      //       this.getCourse();
+      //   } else if (this.stype == 2) {
+      //       this.getCourse2();
+      //   }
+      //   this.selectTestType();
+      // }
+      // })
+    },
     mounted() {
         this.getPageBase()
         console.log(2);

部分文件因为文件数量过多而无法显示