浏览代码

模考修复

En route 1 年之前
父节点
当前提交
ab42dc4bba

+ 1 - 1
src/components/dataReview/index.vue

@@ -666,7 +666,7 @@ export default {
         if (
           this.infoForm["name"] &&
           this.cacheIdCardData["IdName"] &&
-          this.infoForm["name"] !== this.cacheIdCardData["IdName"]
+          this.infoForm["name"].trim() !== this.cacheIdCardData["IdName"]
         ) {
           var str = "输入的姓名和身份证人像面照片姓名不匹配,请联系客服";
           this.$message.warning(str);

+ 1 - 1
src/components/listOption1/index.vue

@@ -36,7 +36,7 @@
           </div>
         </div>
         <div class="tabber" v-if="params.educationId">
-          <div class="left">培训项目:</div>
+          <div class="left">业务层次:</div>
           <div class="right">
             <div
               class="t-button"

+ 1 - 1
src/components/listOption2/index.vue

@@ -43,7 +43,7 @@
         </div>
       </div>
       <div class="tabber" v-if="params.educationId">
-        <div class="left">培训项目:</div>
+        <div class="left">业务层次:</div>
         <div class="right">
           <div
             class="t-button"

+ 24 - 25
src/pages/mock-exam/index.vue

@@ -1173,12 +1173,11 @@ export default {
     } catch (err) {}
   },
   beforeRouteLeave(to, from, next) {
-    if (this.isSubmit ||
-      (to.path == "/home" && !this.$store.state.userInfo)) {
+    if (this.isSubmit || (to.path == "/home" && !this.$store.state.userInfo)) {
       //交卷
       next();
     } else {
-      next(false)
+      next(false);
       //离开
       if (this.bankType == 1) {
         let ansCount = this.questionOverNum(true); //已答题数
@@ -2170,32 +2169,32 @@ export default {
             message: "交卷成功"
           });
 
-          setTimeout(() => {
-            this.$router.replace({
-              path: "/mock-report",
-              query: {
-                subscribeId: this.subscribeId,
-                eachExamId: this.eachExamId,
-                examId: this.examId,
-                recordId: this.recordId
-              }
-            });
-          }, 1000);
+          //错题集id提交(客观题)
+          this.$request
+            .mockWrongRecord({
+              eachExamId: this.eachExamId,
+              examId: this.examId,
+              questionIds: form.questionIds,
+              recordId: this.recordId
+            })
+            .then(res => {
+              setTimeout(() => {
+                this.$router.replace({
+                  path: "/mock-report",
+                  query: {
+                    subscribeId: this.subscribeId,
+                    eachExamId: this.eachExamId,
+                    examId: this.examId,
+                    recordId: this.recordId
+                  }
+                });
+              }, 1000);
+            })
+            .catch(err => {});
         })
         .catch(err => {
           this.loading = false;
         });
-
-      //错题集id提交(客观题)
-      this.$request
-        .mockWrongRecord({
-          eachExamId: this.eachExamId,
-          examId: this.examId,
-          questionIds: form.questionIds,
-          recordId: this.recordId
-        })
-        .then(res => {})
-        .catch(err => {});
     },
 
     /**