From f52d349a08b6d042fb190cc6c06c622089e70778 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Wed, 18 Aug 2021 11:22:01 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/zhba_exam

---
 src/views/exam/startexam.vue |   22 +++++++++++++---------
 1 files changed, 13 insertions(+), 9 deletions(-)

diff --git a/src/views/exam/startexam.vue b/src/views/exam/startexam.vue
index 4d89b0c..2a4fa55 100644
--- a/src/views/exam/startexam.vue
+++ b/src/views/exam/startexam.vue
@@ -85,18 +85,22 @@
       });
     },
     //开始考试跳转
-    startExam() {
+    startExam () {
       var that = this;
       //去修改考试状态
       var data = {
-        id: that.resData.applyId,
-        examType: this.resData.examType,
-      };
-      updateApplyStatus(data).then(() => {});
-      this.$router.push({
-        path: `/startexam/${that.resData.id}`,
-        query: that.resData,
-      });
+        id:that.resData.applyId,
+        examType:this.resData.examType,
+        examId:this.resData.id,
+        userId:this.userInfo.user_id,
+      }
+      updateApplyStatus(data).then((res) => {
+          that.resData['examScoreId'] = res.data.id;
+          that.$router.push({
+            path: `/startexam/${that.resData.id}`,
+            query: that.resData
+        })
+      })
     },
     getUserInfoBYExam() {
       var that = this;

--
Gitblit v1.9.3