From 4f81015b693ba56b3c2112ae3dcbe98760f71fda Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Wed, 18 Aug 2021 11:24:11 +0800
Subject: [PATCH] 开始考试逻辑修改
---
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