From f6f0231de425b0008fd344c5d30190b4fff08f00 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Fri, 8 Jan 2021 18:29:32 +0800 Subject: [PATCH] . --- src/components/doReview/index.vue | 286 ++++++++++++++++ src/layouts/header/index.vue | 2 +- src/libs/route/addRoutes.js | 9 +- src/pages/achievement/detail/index.vue | 22 +- src/pages/achievement/list/examResults.vue | 8 +- .../achievement/list/practiceResults.vue | 1 + src/pages/assessment/detail/index.vue | 14 +- src/pages/assessment/monitor/index.vue | 9 +- src/pages/assessment/review/index.vue | 2 +- src/pages/assessment/scoreQuery/index.vue | 8 +- src/pages/assessment/show/index.vue | 320 ++++++++++++++++++ src/pages/index/list/index.vue | 25 +- src/pages/practice/detail/index.vue | 16 +- src/pages/practice/list/index.vue | 13 +- src/pages/quesBank/list/myQuesBank.vue | 20 +- src/pages/quesBank/list/quesDialog.vue | 15 +- src/pages/setting/person/index.vue | 3 +- src/pages/student/list/index.vue | 2 +- src/pages/student/list/studentSide.vue | 7 +- src/pages/system/list/role.vue | 255 +++++++++++++- src/pages/testPaper/add/index.vue | 12 +- src/router/modules/assessment.js | 6 + src/router/modules/testPaper.js | 7 +- src/router/permission.js | 17 +- src/setting.js | 4 +- src/store/modules/achievement.js | 8 +- src/store/modules/user.js | 6 +- 27 files changed, 1012 insertions(+), 85 deletions(-) create mode 100644 src/components/doReview/index.vue create mode 100644 src/pages/assessment/show/index.vue diff --git a/src/components/doReview/index.vue b/src/components/doReview/index.vue new file mode 100644 index 0000000..0b2bce6 --- /dev/null +++ b/src/components/doReview/index.vue @@ -0,0 +1,286 @@ + + + + \ No newline at end of file diff --git a/src/layouts/header/index.vue b/src/layouts/header/index.vue index 3f9c0b6..57cdeb1 100644 --- a/src/layouts/header/index.vue +++ b/src/layouts/header/index.vue @@ -46,7 +46,7 @@ export default { this.$router.push('/setting/person') }, loginout() { - this.logout() + this.logout(this.$router) }, back(){ this.$router.back() diff --git a/src/libs/route/addRoutes.js b/src/libs/route/addRoutes.js index a1f7c5f..25359ba 100644 --- a/src/libs/route/addRoutes.js +++ b/src/libs/route/addRoutes.js @@ -25,11 +25,10 @@ function createRoute(data){ } export default function(data,path){ - // generateBtnPermission(data) + generateBtnPermission(data) createRoute(data) let routes = router.options.routes - console.log(11,routes) - // routes[1].children = [...routes[1].children,...newRoutes] - // store.auth.commit("addRoutes", { routes }) - // router.addRoutes(routes) + routes[1].children = [...routes[1].children,...newRoutes] + store.auth.commit("addRoutes", { routes }) + router.addRoutes(routes) } \ No newline at end of file diff --git a/src/pages/achievement/detail/index.vue b/src/pages/achievement/detail/index.vue index 21ae397..94f9069 100644 --- a/src/pages/achievement/detail/index.vue +++ b/src/pages/achievement/detail/index.vue @@ -2,20 +2,28 @@

{{paperName }}

-
+
总分: 100分
-
+
+ 得分: + {{thisScore}}分 +
+
考试时长: {{time}}分钟
+
+ 排名: + {{ranking === 0 ? 1 : ranking}} +
    - + +
  • {{item.name}}
  • +
@@ -67,6 +75,7 @@ export default { return { paperName: '', time: 0, + ranking: 1, selectVisible: false, tabs: [ { @@ -100,7 +109,7 @@ export default { 'userId' ]), ...mapState('achievement', [ - 'id','assessmentId','stuId' + 'id','assessmentId','stuId','thisScore' ]) }, mounted() { @@ -112,6 +121,7 @@ export default { .then(res => { this.paperName = res.paperName this.time = res.time + this.ranking = res.ranking this.allData = res.data let tabs = this.tabs res.data.list1.length || (tabs[0].show = false) diff --git a/src/pages/achievement/list/examResults.vue b/src/pages/achievement/list/examResults.vue index 0c937c8..527d643 100644 --- a/src/pages/achievement/list/examResults.vue +++ b/src/pages/achievement/list/examResults.vue @@ -69,7 +69,7 @@ - +