소스 검색

正在考试页面 -> 答题页面

Michael Wang 5 년 전
부모
커밋
80c6354fff

+ 1 - 1
src/features/OnlineExam/Examing/BooleanQuestionView.vue

@@ -121,7 +121,7 @@ export default {
         (["INPUT"].includes(document.activeElement.tagName) &&
           ["checkbox", "radio"].includes(document.activeElement.type))
       ) {
-        window._hmt.push(["_trackEvent", "正在考试页面", "快捷键", "YN"]);
+        window._hmt.push(["_trackEvent", "答题页面", "快捷键", "YN"]);
         if ("KeyY" === e.code) {
           this.answerQuestion("true");
         }

+ 16 - 15
src/features/OnlineExam/Examing/ExamingHome.vue

@@ -273,7 +273,7 @@ export default {
       this.startVideoAfterDelay = true;
     }, 10 * 1000);
 
-    window._hmt.push(["_trackEvent", "正在考试页面", "进入页面"]);
+    window._hmt.push(["_trackEvent", "答题页面", "进入页面"]);
 
     if (typeof nodeRequire != "undefined") {
       try {
@@ -303,7 +303,7 @@ export default {
     }
   },
   beforeRouteUpdate(from, to, next) {
-    window._hmt.push(["_trackEvent", "正在考试页面", "题目切换"]);
+    window._hmt.push(["_trackEvent", "答题页面", "题目切换"]);
     if (process.env.NODE_ENV === "development") {
       console.log("beforeRouteUpdate from: " + this.$route.fullPath);
     }
@@ -507,10 +507,6 @@ export default {
             // );
             this.toggleSnapNow();
           }, SNAPSHOT_INTERVAL * 60 * 1000);
-          this.logger({
-            action: "答题页面",
-            detail: "设置抓拍间隔-" + SNAPSHOT_INTERVAL,
-          });
         }
       }
 
@@ -521,6 +517,16 @@ export default {
 
       exam.freezeTime =
         examProp.FREEZE_TIME && JSON.parse(examProp.FREEZE_TIME);
+      this.logger({
+        page: "答题页面",
+        examRecordDataId: this.$route.params.examRecordDataId,
+        faceCheckEnabled: faceCheckEnabled,
+        faceLivenessEnabled: faceLivenessEnabled,
+        WEIXIN_ANSWER_ENABLED: exam.WEIXIN_ANSWER_ENABLED,
+        SNAPSHOT_INTERVAL: examProp.SNAPSHOT_INTERVAL,
+        PRACTICE_TYPE: examProp.PRACTICE_TYPE,
+        FREEZE_TIME: examProp.FREEZE_TIME,
+      });
 
       // parentQuestionBody
       //     questionUnitWrapperList
@@ -709,7 +715,7 @@ export default {
         if (initFaceLivenessResult === false) {
           window._hmt.push([
             "_trackEvent",
-            "正在考试页面",
+            "答题页面",
             "活检接口再次获取失败-退出",
           ]);
           this.$Message.error({
@@ -754,7 +760,7 @@ export default {
           });
           window._hmt.push([
             "_trackEvent",
-            "正在考试页面",
+            "答题页面",
             "提交答案失败",
             error.message +
               " |||| " +
@@ -911,13 +917,8 @@ export default {
       );
     },
     reloadPage() {
-      window._hmt.push([
-        "_trackEvent",
-        "正在考试页面",
-        "页面加载失败",
-        "reload",
-      ]);
-      this.logger({ page: "正在考试页面", action: "页面加载失败" });
+      window._hmt.push(["_trackEvent", "答题页面", "页面加载失败", "reload"]);
+      this.logger({ page: "答题页面", action: "页面加载失败" });
       window.location.reload();
     },
   },

+ 8 - 8
src/features/OnlineExam/Examing/FaceTracking.vue

@@ -95,7 +95,7 @@ async function detectTest() {
       disableFaceTracking = true;
       window._hmt.push([
         "_trackEvent",
-        "正在考试页面",
+        "答题页面",
         "启动检测耗时过长:停止实时",
       ]);
       return;
@@ -103,7 +103,7 @@ async function detectTest() {
   } catch (error) {
     console.log(error);
     disableFaceTracking = true;
-    window._hmt.push(["_trackEvent", "正在考试页面", "启动检测错误:停止实时"]);
+    window._hmt.push(["_trackEvent", "答题页面", "启动检测错误:停止实时"]);
     return;
   }
 
@@ -136,7 +136,7 @@ async function detectTest() {
           disableFaceTracking = true;
           window._hmt.push([
             "_trackEvent",
-            "正在考试页面",
+            "答题页面",
             "单次检测耗时过长:停止实时",
           ]);
           return;
@@ -170,7 +170,7 @@ async function detectTest() {
   console.log("最好的 inputSize 为: " + __inputSize);
   window._hmt.push([
     "_trackEvent",
-    "正在考试页面",
+    "答题页面",
     "最好的 inputSize 为: " + __inputSize,
   ]);
 
@@ -255,7 +255,7 @@ export default {
         console.log("关闭实时人脸检测,因为耗时过长", this.multipleTimeUsage);
         window._hmt.push([
           "_trackEvent",
-          "正在考试页面",
+          "答题页面",
           "关闭实时人脸检测,因为耗时过长",
         ]);
         return;
@@ -289,7 +289,7 @@ export default {
           // .detectSingleFace(videoEl, options)
           .detectAllFaces(videoEl, options);
       } catch (e) {
-        window._hmt.push(["_trackEvent", "正在考试页面", "实时人脸检测失败"]);
+        window._hmt.push(["_trackEvent", "答题页面", "实时人脸检测失败"]);
         throw e;
       }
       // console.log(result);
@@ -319,7 +319,7 @@ export default {
         const roundAvg = Math.round(avg / 100) * 100;
         window._hmt.push([
           "_trackEvent",
-          "正在考试页面",
+          "答题页面",
           "实时人脸检测平均时长" +
             (isThisMachineOwnByStudent() ? "学生电脑" : "学习中心电脑"),
           roundAvg + "ms",
@@ -333,7 +333,7 @@ export default {
         // const stats = `webgl: ${webgl_available()}; tf_backend: ${faceapi.tf.getBackend()}; os: ${osType}; cpu: ${getCPUModel()}`;
         // window._hmt.push([
         //   "_trackEvent",
-        //   "正在考试页面",
+        //   "答题页面",
         //   "实时人脸检测统计" + roundAvg100 + "ms",
         //   stats,
         // ]);

+ 1 - 1
src/features/OnlineExam/Examing/MultipleQuestionView.vue

@@ -158,7 +158,7 @@ export default {
             .slice(0, this.question.questionOptionList.length)
             .includes(e.code)
         ) {
-          window._hmt.push(["_trackEvent", "正在考试页面", "快捷键", "ABCDE"]);
+          window._hmt.push(["_trackEvent", "答题页面", "快捷键", "ABCDE"]);
           const selectedOldIndex =
             "" +
             this.newQuestionOptions.find(v => v.name == e.code[3]).oldIndex;

+ 3 - 3
src/features/OnlineExam/Examing/RemainTime.vue

@@ -100,7 +100,7 @@ export default {
         ) {
           window._hmt.push([
             "_trackEvent",
-            "正在考试页面",
+            "答题页面",
             "心跳",
             "失败-会话过期",
           ]);
@@ -114,7 +114,7 @@ export default {
             `心跳失败-会话过期 => 考试剩余时间:${this.remainTime / 1000}`
           );
         } else {
-          window._hmt.push(["_trackEvent", "正在考试页面", "心跳", "失败"]);
+          window._hmt.push(["_trackEvent", "答题页面", "心跳", "失败"]);
           this.logger({
             action: "发出心跳",
             error: "心跳失败",
@@ -132,7 +132,7 @@ export default {
           clearInterval(this.remainTimeInterval);
           window._hmt.push([
             "_trackEvent",
-            "正在考试页面",
+            "答题页面",
             "心跳",
             "失败10次-退出",
           ]);

+ 1 - 1
src/features/OnlineExam/Examing/SingleQuestionView.vue

@@ -167,7 +167,7 @@ export default {
             .slice(0, this.question.questionOptionList.length)
             .includes(e.code)
         ) {
-          window._hmt.push(["_trackEvent", "正在考试页面", "快捷键", "ABCDE"]);
+          window._hmt.push(["_trackEvent", "答题页面", "快捷键", "ABCDE"]);
           this.studentAnswer = this.newQuestionOptions.find(
             v => v.name == e.code[3]
           ).oldIndex;

+ 1 - 1
src/features/OnlineExam/Examing/ws.js

@@ -98,7 +98,7 @@ export function openWS({ examRecordDataId }) {
         window._hmt.push([
           "_trackEvent",
           "websocket",
-          "连接错误后-不在正在考试页面-重新连接",
+          "连接错误后-不在答题页面-重新连接",
         ]);
       }
     }, RECONNECT_INTERVAL);

+ 1 - 1
src/store.js

@@ -60,7 +60,7 @@ const examingHomeModule = {
       state = Object.assign(state, { examResult: payload });
     },
     updateQuestionFilter(state, type) {
-      window._hmt.push(["_trackEvent", "正在考试页面", "筛选问题"]);
+      window._hmt.push(["_trackEvent", "答题页面", "筛选问题"]);
       state.questionFilterType = type;
     },
     updateQuestionAudioPlayTimes(state, payload) {