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 @@