From 87a6cd2a8917c6906cfd2ca73faf1bdbdbff0691 Mon Sep 17 00:00:00 2001
From: zhaofang <752743406@qq.com>
Date: Fri, 15 Jul 2022 18:30:47 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/exam/Test.vue | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/src/views/exam/Test.vue b/src/views/exam/Test.vue
index b056cc1b..b989e507 100644
--- a/src/views/exam/Test.vue
+++ b/src/views/exam/Test.vue
@@ -37,7 +37,10 @@
历史记录
-
+
+
+
+
@@ -235,7 +238,7 @@ import { formatSeconds } from '@/utils/datetime.js'
export default {
data() {
return {
- loading:false,
+ loading:0,
toScoreTow,
examId:'',//考试的id
taskId:'',//考试任务的id
@@ -405,10 +408,10 @@ export default {
})
},
testAnswers(){ //获取当前考试的历史记录
- this.loading = true;
+ this.loading = 1;
apiTestPaper.myTestAnswers(this.examId).then(res=>{
if(res.status ==200) {
- this.loading = false;
+ this.loading = 2;
this.tableData = res.result;
let len=res.result.length;
let times=this.testPaper.times? this.testPaper.times:0;
@@ -417,7 +420,7 @@ export default {
this.tipText='已达到允许考试次数上限';
}
}else{
- this.loading = false;
+ this.loading = 2;
this.$message.error('加载考试记录失败');
}
})