From 1660f87faf4d0cf6b8e56e09a5ed63e39c2abf7c Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Fri, 30 Apr 2021 14:59:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/breadcrumb/index.vue | 6 +++--- src/layouts/navbar/index.vue | 7 +++++-- src/mixins/examDo/index.js | 6 ++---- src/pages/achievement/assessment/index.vue | 4 ++-- src/pages/achievement/practice/index.vue | 4 ++-- src/pages/index/list/index.vue | 5 +++-- src/pages/practice/do/index.vue | 4 ++-- src/pages/practice/list/myPractice.vue | 1 + src/pages/wrongBook/do/index.vue | 2 +- src/styles/common.scss | 11 +++++++++-- 10 files changed, 30 insertions(+), 20 deletions(-) diff --git a/src/components/breadcrumb/index.vue b/src/components/breadcrumb/index.vue index 6313b01..cf1c54c 100644 --- a/src/components/breadcrumb/index.vue +++ b/src/components/breadcrumb/index.vue @@ -3,7 +3,7 @@ 当前位置: 超竞学生端 - {{item}} + {{item}} @@ -14,12 +14,12 @@ export default { data() { return { pages: this.data.split('/'), - curRoute: this.$route.path + curRoute: this.$route.path, + path: this.route ? this.route : 'list' }; }, methods: { update(data){ - console.log(2222,data) this.pages = data.split('/') } } diff --git a/src/layouts/navbar/index.vue b/src/layouts/navbar/index.vue index d3434e0..c65c6e2 100644 --- a/src/layouts/navbar/index.vue +++ b/src/layouts/navbar/index.vue @@ -94,7 +94,10 @@ export default { ], menus: [], actives: { - index: ['index-add'], + practice: ['practice-do','practice-randomDo'], + exam: ['exam-do'], + achievement: ['achievement-practice','achievement-assessment'], + wrongBook: ['wrongBook-do'], } }; }, @@ -102,7 +105,7 @@ export default { onRoutes() { let actives = this.actives for(let i in this.actives){ - if(actives[i].includes(this.$route.name)) return `/${i}` + if(actives[i].includes(this.$route.name)) return `/${i}/list` } return this.$route.path }, diff --git a/src/mixins/examDo/index.js b/src/mixins/examDo/index.js index 3dd3178..fc4f7d1 100644 --- a/src/mixins/examDo/index.js +++ b/src/mixins/examDo/index.js @@ -64,14 +64,12 @@ export default { }) }, handleExceed(files, fileList) { - this.$message.warning( - `当前限制选择 1 个文件,如需更换,请删除上一个文件再重新选择!` - ) + util.warningMsg(`当前限制选择 1 个文件,如需更换,请删除上一个文件再重新选择!` ) }, beforeUpload(file,item){ let ext = util.getFileExt(file.name) if(util.isDoc(ext) && (file.size / 1024 / 1024) > this.maxSize){ - this.$message.error(`请上传${this.maxSize}M以内的文件`) + util.errorMsg(`请上传${this.maxSize}M以内的文件`) return false } item.uploading = true diff --git a/src/pages/achievement/assessment/index.vue b/src/pages/achievement/assessment/index.vue index 9e3e6ae..38961f3 100644 --- a/src/pages/achievement/assessment/index.vue +++ b/src/pages/achievement/assessment/index.vue @@ -31,7 +31,7 @@
-
+
序号:{{index+1}} 得分:{{item.question_score}}
@@ -40,7 +40,7 @@

题干:

-
+

选项:

{{i}}.{{item.options[i]}}

diff --git a/src/pages/achievement/practice/index.vue b/src/pages/achievement/practice/index.vue index 5908e64..3bca8e6 100644 --- a/src/pages/achievement/practice/index.vue +++ b/src/pages/achievement/practice/index.vue @@ -27,7 +27,7 @@
-
+
序号:{{index+1}} 得分:{{item.questionScore}}
@@ -36,7 +36,7 @@

题干:

-
+

选项:

{{i}}.{{item.options[i]}}

diff --git a/src/pages/index/list/index.vue b/src/pages/index/list/index.vue index 4e0bec7..35a4713 100644 --- a/src/pages/index/list/index.vue +++ b/src/pages/index/list/index.vue @@ -27,7 +27,8 @@ @@ -91,7 +92,7 @@