From 22a1da2c6a3f905577339efe37939dd260ea10b6 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Fri, 8 Jan 2021 18:30:34 +0800 Subject: [PATCH] . --- src/pages/account/login/index.vue | 2 +- src/pages/achievement/assessment/index.vue | 14 +++++++----- src/pages/achievement/list/examResults.vue | 3 ++- .../achievement/list/practiceResults.vue | 18 ++++++++++++--- src/pages/achievement/practice/index.vue | 16 +++++++++----- src/pages/exam/detail/index.vue | 14 ++++++++---- src/pages/exam/do/index.vue | 6 ++++- src/pages/exam/list/index.vue | 12 +++++----- src/pages/index/list/index.vue | 22 ++++++++++++++++--- src/pages/practice/do/index.vue | 10 ++++++--- src/pages/practice/list/index.vue | 6 +++-- src/pages/practice/list/myPractice.vue | 12 ++++++++-- src/pages/practice/list/randomPractice.vue | 2 +- src/pages/practice/randomDo/index.vue | 6 ++++- src/pages/setting/person/index.vue | 3 ++- src/router/permission.js | 17 +++++++------- src/setting.js | 2 +- src/store/modules/achievement.js | 4 +++- src/store/modules/practice.js | 2 +- src/store/modules/user.js | 3 +++ 20 files changed, 124 insertions(+), 50 deletions(-) diff --git a/src/pages/account/login/index.vue b/src/pages/account/login/index.vue index b176fae..85f7cc6 100644 --- a/src/pages/account/login/index.vue +++ b/src/pages/account/login/index.vue @@ -65,7 +65,7 @@ export default { isReg: false, loginForm: { username: '13563422432', - password: 'huoran123', + password: '111aaa', }, loginRules: { username: [{ required: true, message: '请输入用户名', trigger: 'blur' }], diff --git a/src/pages/achievement/assessment/index.vue b/src/pages/achievement/assessment/index.vue index 6a4c70f..2ea3ac5 100644 --- a/src/pages/achievement/assessment/index.vue +++ b/src/pages/achievement/assessment/index.vue @@ -6,20 +6,24 @@ 总分: 100分 +
+ 得分: + {{score}}分 +
考试时长: {{time}}分钟
排名: - {{ranking}} + {{ranking === 0 ? 1 : ranking}}
@@ -105,7 +109,7 @@ export default { 'userId' ]), ...mapState('achievement', [ - 'id','assessmentId' + 'id','assessmentId','score' ]) }, mounted() { diff --git a/src/pages/achievement/list/examResults.vue b/src/pages/achievement/list/examResults.vue index 43e5c9c..b42a9e0 100644 --- a/src/pages/achievement/list/examResults.vue +++ b/src/pages/achievement/list/examResults.vue @@ -84,7 +84,8 @@ export default { show(row){ this.setInfo({ id: row.paperId, - assessmentId: row.id + assessmentId: row.assessmentId, + score: row.thisScore }) this.$router.push('assessment') }, diff --git a/src/pages/achievement/list/practiceResults.vue b/src/pages/achievement/list/practiceResults.vue index 93e9d88..12c8184 100644 --- a/src/pages/achievement/list/practiceResults.vue +++ b/src/pages/achievement/list/practiceResults.vue @@ -22,9 +22,21 @@ - - - + + + + + + + + + - - diff --git a/src/pages/practice/list/myPractice.vue b/src/pages/practice/list/myPractice.vue index 9abb495..256bff9 100644 --- a/src/pages/practice/list/myPractice.vue +++ b/src/pages/practice/list/myPractice.vue @@ -27,9 +27,17 @@ {{getDegreeName(scope.row.degree)}} - + + + - + + +