From 74302999134a7c2da7bd46d501dc942359731f0d Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Thu, 4 Feb 2021 16:09:05 +0800 Subject: [PATCH] . --- src/mixins/examDo/index.js | 3 + src/pages/achievement/assessment/index.vue | 8 +-- src/pages/achievement/list/examResults.vue | 17 +++-- src/pages/exam/do/index.vue | 79 ++++++++++++---------- src/pages/exam/list/index.vue | 6 +- src/pages/index/list/index.vue | 12 +++- src/pages/messageBoard/list/index.vue | 12 +++- src/pages/practice/do/index.vue | 50 +++++++++----- src/pages/wrongBook/list/index.vue | 6 -- src/setting.js | 2 +- src/store/modules/achievement.js | 4 +- src/store/modules/exam.js | 4 +- 12 files changed, 124 insertions(+), 79 deletions(-) diff --git a/src/mixins/examDo/index.js b/src/mixins/examDo/index.js index a811eb4..3dd3178 100644 --- a/src/mixins/examDo/index.js +++ b/src/mixins/examDo/index.js @@ -74,6 +74,7 @@ export default { this.$message.error(`请上传${this.maxSize}M以内的文件`) return false } + item.uploading = true }, uploadSuccess(res, file, fileList, item) { let ext = file.response.data.filesResult.fileType @@ -82,6 +83,7 @@ export default { }else{ item.fileUrl[file.name] = res.data.filesResult.fileUrl } + item.uploading = false }, uploadError(err, file, fileList) { this.$message({ @@ -89,6 +91,7 @@ export default { type: "error", center: true }) + item.uploading = false }, beforeRemove(file, fileList) { return this.$confirm(`确定移除 ${file.name}?`) diff --git a/src/pages/achievement/assessment/index.vue b/src/pages/achievement/assessment/index.vue index fe4deac..565fcb4 100644 --- a/src/pages/achievement/assessment/index.vue +++ b/src/pages/achievement/assessment/index.vue @@ -6,13 +6,13 @@ 总分: 100分 -
+
得分: {{score}}分
考试时长: - {{time}}分钟 + {{timeSpent != null && timeSpent != '--' ? (timeSpent / 60).toFixed(2) + '分钟' : timeSpent}}
排名: @@ -102,7 +102,6 @@ export default { data() { return { paperName: '', - time: 0, ranking: 1, selectVisible: false, tabs: [ @@ -138,7 +137,7 @@ export default { 'userId' ]), ...mapState('achievement', [ - 'id','assessmentId','score' + 'id','assessmentId','score','timeSpent' ]) }, mounted() { @@ -149,7 +148,6 @@ export default { this.$post(`${this.api.answerDetail}?userId=${this.userId}&assessmentId=${this.assessmentId}&paperId=${this.id}`) .then(res => { this.paperName = res.paperName - this.time = res.time this.ranking = res.ranking let list = res.data for(let i in list){ diff --git a/src/pages/achievement/list/examResults.vue b/src/pages/achievement/list/examResults.vue index b42a9e0..4ea5eaf 100644 --- a/src/pages/achievement/list/examResults.vue +++ b/src/pages/achievement/list/examResults.vue @@ -20,9 +20,17 @@ - - - + + + + + + + @@ -72,6 +71,7 @@