Michael Wang 4 lat temu
rodzic
commit
c4f91d5ff0

+ 2 - 3
src/components/FaceRecognition/FaceRecognition.vue

@@ -583,9 +583,8 @@ export default {
           console.log(res2, {
             "res2.headers": res2.headers,
             'res2.headers.get("Content-MD5")': res2.headers.get("Content-MD5"),
-            'res2.headers.get("Content-Type")': res2.headers.get(
-              "Content-Type"
-            ),
+            'res2.headers.get("Content-Type")':
+              res2.headers.get("Content-Type"),
           });
           // throw new Error("eee");
           if (!res2.ok) {

+ 2 - 3
src/features/OnlineExam/Examing/BooleanQuestionView.vue

@@ -60,9 +60,8 @@
 <script>
 import QuestionBody from "./QuestionBody";
 import { createNamespacedHelpers } from "vuex";
-const { mapMutations, mapGetters } = createNamespacedHelpers(
-  "examingHomeModule"
-);
+const { mapMutations, mapGetters } =
+  createNamespacedHelpers("examingHomeModule");
 
 export default {
   name: "BooleanQuestionView",

+ 6 - 3
src/features/OnlineExam/Examing/FaceMotion/FaceMotion.vue

@@ -693,13 +693,16 @@ export default {
               if (!cs) return;
               this.compareResult = cs;
               // 后台的计算需要通过resultJson来判断: isPass isStranger existsSystemError
-              this.finalResult.verifySteps[0].result = this.compareResult.isPass;
+              this.finalResult.verifySteps[0].result =
+                this.compareResult.isPass;
               this.finalResult.verifySteps[0].resourceType = "PIC";
-              this.finalResult.verifySteps[0].resourceUrl = this.compareResult.fileUrl;
+              this.finalResult.verifySteps[0].resourceUrl =
+                this.compareResult.fileUrl;
               this.finalResult.verifySteps[0].resultJson = JSON.stringify(
                 this.compareResult
               );
-              this.finalResult.verifySteps[0].errorMsg = this.compareResult.errorMsg;
+              this.finalResult.verifySteps[0].errorMsg =
+                this.compareResult.errorMsg;
               this.pauseDetecting = false;
               this.doneCompare = true;
               if (this.compareResult.isPass && !this.compareResult.isStranger) {

+ 2 - 3
src/features/OnlineExam/Examing/FillBlankQuestionView.vue

@@ -46,9 +46,8 @@
 <script>
 import QuestionBody from "./QuestionBody";
 import { createNamespacedHelpers } from "vuex";
-const { mapMutations, mapGetters } = createNamespacedHelpers(
-  "examingHomeModule"
-);
+const { mapMutations, mapGetters } =
+  createNamespacedHelpers("examingHomeModule");
 
 /**
  * 1. 进入页面,this.studentAnswer从examQuestion.studentAnswer获得数据

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

@@ -61,9 +61,8 @@
 <script>
 import QuestionBody from "./QuestionBody";
 import { createNamespacedHelpers } from "vuex";
-const { mapMutations, mapGetters } = createNamespacedHelpers(
-  "examingHomeModule"
-);
+const { mapMutations, mapGetters } =
+  createNamespacedHelpers("examingHomeModule");
 
 const optionName = "ABCDEFGHIJ".split("");
 export default {
@@ -100,9 +99,10 @@ export default {
     newQuestionOptions() {
       return this.question.questionOptionList.map((v, i) => {
         return {
-          value: this.question.questionOptionList[
-            this.examQuestion.optionPermutation[i]
-          ],
+          value:
+            this.question.questionOptionList[
+              this.examQuestion.optionPermutation[i]
+            ],
           oldIndex: "" + this.examQuestion.optionPermutation[i],
           name: optionName[i],
         };

+ 2 - 3
src/features/OnlineExam/Examing/QuestionView.vue

@@ -216,9 +216,8 @@ export default {
       this.$nextTick(() => {
         this.$nextTick(() => {
           // 从非套题进入套题时,会根据套题的内容动态调整套题的默认高度
-          const parentQuestion = document.getElementsByClassName(
-            "parent-question"
-          )[0];
+          const parentQuestion =
+            document.getElementsByClassName("parent-question")[0];
           if (parentQuestion) {
             this.parentPaneHeight =
               5 +

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

@@ -67,9 +67,8 @@
 <script>
 import QuestionBody from "./QuestionBody";
 import { createNamespacedHelpers } from "vuex";
-const { mapMutations, mapGetters } = createNamespacedHelpers(
-  "examingHomeModule"
-);
+const { mapMutations, mapGetters } =
+  createNamespacedHelpers("examingHomeModule");
 
 const optionName = "ABCDEFGHIJ".split("");
 export default {
@@ -106,9 +105,10 @@ export default {
     newQuestionOptions() {
       return this.question.questionOptionList.map((v, i) => {
         return {
-          value: this.question.questionOptionList[
-            this.examQuestion.optionPermutation[i]
-          ],
+          value:
+            this.question.questionOptionList[
+              this.examQuestion.optionPermutation[i]
+            ],
           oldIndex: "" + this.examQuestion.optionPermutation[i],
           name: optionName[i],
         };

+ 2 - 3
src/features/OnlineExam/Examing/TextQuestionView.vue

@@ -153,9 +153,8 @@
 <script>
 import QuestionBody from "./QuestionBody";
 import { createNamespacedHelpers } from "vuex";
-const { mapMutations, mapGetters, mapState } = createNamespacedHelpers(
-  "examingHomeModule"
-);
+const { mapMutations, mapGetters, mapState } =
+  createNamespacedHelpers("examingHomeModule");
 import VueQrcode from "@chenfengyuan/vue-qrcode";
 import UploadPhotos from "./UploadPhotos";
 

+ 1 - 2
src/router.js

@@ -72,8 +72,7 @@ let router = new Router({
       component: OnlineExamOverview,
     },
     {
-      path:
-        "/online-exam/exam/:examId/examRecordData/:examRecordDataId/order/:order",
+      path: "/online-exam/exam/:examId/examRecordData/:examRecordDataId/order/:order",
       name: "OnlineExamingHome",
       component: ExamingHome,
     },

+ 1 - 2
src/utils/electronLog.js

@@ -29,8 +29,7 @@ if (isElectron) {
         ext: true,
         key_ops: ["encrypt"],
         kty: "RSA",
-        n:
-          "3vl4K5l_XhHYnm28Nz0YoaP7UTUPRQD4_S2btf1R1kzuVbbqg3eBru7OOcPSVOVFd0GGwy1cXlq1-J9XqFTEscFLIQYCimvLhtSDs7797b6DMwpWQ7Y_QvaVXhwgZZh7KlD0pLUtF2NwDYK10bPaWHEik-OwDCQE5P5Gv6Oz4TZZAjSpxOCNx_ui_KGeu8c63if1-mNwzn70U82LjhbHy3edDjAdT0JDPxqYPiMwSo8lhDy1CqFiyQxq2unPHJcRxb9fAwV3siyWOdHQaaKH2GvCxhpsPUHnVlIng02yeZBzv-UIz6fAPWNhC-6H_5GeZ_Qlk6qQIPzFQ3DPD82VGF9GWGbkdWgHm3JZsSyjjZXYSU3lmc3gaO8q5ZDGGlmh31ApOYddEsFcfYobI3RJwhlvAFHxr9YtRjXlaL-YUf_KwztJFFNw75WSWp8-WtMy96LL3cljjR3rxHYBjiOYDsReTIIeLEDEigcKFyswuc71qSIB6XQFxM6J6u3Urvu3uoPiu-aqujVj6gtOSfOHGvCXq05n3eBk89o2kY92J10v1ANDbZo6HneqKFKJ2Dh8uUaavdSJfHWc8QTy2b50HasxZj9mv_ADaBYaGb2C_tnNvgkusnHu87qxt95iqLPJOzMy4au0UD6kPZ8aTkGZq_b2gT9LHxi6PPdEOjRdVxs",
+        n: "3vl4K5l_XhHYnm28Nz0YoaP7UTUPRQD4_S2btf1R1kzuVbbqg3eBru7OOcPSVOVFd0GGwy1cXlq1-J9XqFTEscFLIQYCimvLhtSDs7797b6DMwpWQ7Y_QvaVXhwgZZh7KlD0pLUtF2NwDYK10bPaWHEik-OwDCQE5P5Gv6Oz4TZZAjSpxOCNx_ui_KGeu8c63if1-mNwzn70U82LjhbHy3edDjAdT0JDPxqYPiMwSo8lhDy1CqFiyQxq2unPHJcRxb9fAwV3siyWOdHQaaKH2GvCxhpsPUHnVlIng02yeZBzv-UIz6fAPWNhC-6H_5GeZ_Qlk6qQIPzFQ3DPD82VGF9GWGbkdWgHm3JZsSyjjZXYSU3lmc3gaO8q5ZDGGlmh31ApOYddEsFcfYobI3RJwhlvAFHxr9YtRjXlaL-YUf_KwztJFFNw75WSWp8-WtMy96LL3cljjR3rxHYBjiOYDsReTIIeLEDEigcKFyswuc71qSIB6XQFxM6J6u3Urvu3uoPiu-aqujVj6gtOSfOHGvCXq05n3eBk89o2kY92J10v1ANDbZo6HneqKFKJ2Dh8uUaavdSJfHWc8QTy2b50HasxZj9mv_ADaBYaGb2C_tnNvgkusnHu87qxt95iqLPJOzMy4au0UD6kPZ8aTkGZq_b2gT9LHxi6PPdEOjRdVxs",
       };
       const publicKey = await window.crypto.subtle.importKey(
         "jwk",

+ 6 - 3
vue.config.js

@@ -88,7 +88,8 @@ module.exports = {
         {
           // Match any same-origin request that contains 'api'.
           // 产品名称有可能每分钟都更新
-          urlPattern: /\/api\/ecs_core\/org\/propertyNoSession\/OE_STUDENT_SYS_NAME\?domainName=/,
+          urlPattern:
+            /\/api\/ecs_core\/org\/propertyNoSession\/OE_STUDENT_SYS_NAME\?domainName=/,
           handler: "cacheFirst",
           options: {
             cacheableResponse: {
@@ -139,7 +140,8 @@ module.exports = {
         },
         {
           // 客观分10分钟更新一次
-          urlPattern: /\/api\/ecs_oe_student\/examScore\/queryObjectiveScoreList\?examStudentId=/,
+          urlPattern:
+            /\/api\/ecs_oe_student\/examScore\/queryObjectiveScoreList\?examStudentId=/,
           handler: "cacheFirst",
           options: {
             cacheableResponse: {
@@ -195,7 +197,8 @@ module.exports = {
         },
         {
           // 菜单3分钟获取一次
-          urlPattern: /\/api\/ecs_core\/rolePrivilege\/getStudentClientMenu\?rootOrgId=/,
+          urlPattern:
+            /\/api\/ecs_core\/rolePrivilege\/getStudentClientMenu\?rootOrgId=/,
           handler: "cacheFirst",
           options: {
             cacheableResponse: {