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