From ca8bbd9197d818f2c2539b24d4c767786413e582 Mon Sep 17 00:00:00 2001
From: zhaofang <752743406@qq.com>
Date: Fri, 15 Jul 2022 17:58:40 +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 | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/views/exam/Test.vue b/src/views/exam/Test.vue
index 5ef8d406..b056cc1b 100644
--- a/src/views/exam/Test.vue
+++ b/src/views/exam/Test.vue
@@ -37,7 +37,7 @@
历史记录
-
+
@@ -235,6 +235,7 @@ import { formatSeconds } from '@/utils/datetime.js'
export default {
data() {
return {
+ loading:false,
toScoreTow,
examId:'',//考试的id
taskId:'',//考试任务的id
@@ -404,8 +405,10 @@ export default {
})
},
testAnswers(){ //获取当前考试的历史记录
+ this.loading = true;
apiTestPaper.myTestAnswers(this.examId).then(res=>{
if(res.status ==200) {
+ this.loading = false;
this.tableData = res.result;
let len=res.result.length;
let times=this.testPaper.times? this.testPaper.times:0;
@@ -414,6 +417,7 @@ export default {
this.tipText='已达到允许考试次数上限';
}
}else{
+ this.loading = false;
this.$message.error('加载考试记录失败');
}
})