From 4e9b321312df7e751d8ef54ddbe4883f039324a2 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Fri, 25 Dec 2020 11:51:32 +0800 Subject: [PATCH] . --- src/api/index.js | 3 + src/components/messageBoard/index.vue | 72 ----- src/components/testPaperDetail/index.vue | 7 +- src/layouts/header/index.vue | 7 +- src/libs/auth/generateBtnPermission.js | 4 +- src/libs/bus.js | 6 +- src/libs/random_str.js | 10 +- src/libs/route/addRoutes.js | 8 +- src/libs/route/generateRoutes.js | 6 +- src/libs/route/resetRouter.js | 2 +- src/libs/util.cookies.js | 6 +- src/libs/util.js | 8 +- src/pages/account/login/index.vue | 8 +- src/pages/achievement/detail/index.vue | 6 +- src/pages/achievement/list/wrongBook.vue | 280 ++++++++++++++---- src/pages/assessment/detail/index.vue | 6 +- src/pages/messageBoard/list/index.vue | 19 +- src/pages/practice/detail/index.vue | 8 +- src/plugins/auth/index.js | 10 +- src/store/modules/auth.js | 26 ++ src/store/modules/practice.js | 2 +- src/store/modules/user.js | 4 +- .../lib/{background.scss => _background.scss} | 0 src/styles/lib/{border.scss => _border.scss} | 0 src/styles/lib/{box.scss => _box.scss} | 0 src/styles/lib/{cursor.scss => _cursor.scss} | 0 .../lib/{display.scss => _display.scss} | 0 src/styles/lib/{flex.scss => _flex.scss} | 0 src/styles/lib/{float.scss => _float.scss} | 0 .../lib/{font-size.scss => _font-size.scss} | 0 .../{font-weight.scss => _font-weight.scss} | 0 .../{line-height.scss => _line-height.scss} | 0 src/styles/lib/{link.scss => _link.scss} | 0 .../lib/{overflow.scss => _overflow.scss} | 0 .../lib/{position.scss => _position.scss} | 0 src/styles/lib/{size.scss => _size.scss} | 0 .../lib/{text-align.scss => _text-align.scss} | 0 .../lib/{text-color.scss => _text-color.scss} | 0 ...rtical-align.scss => _vertical-align.scss} | 0 .../lib/{visibility.scss => _visibility.scss} | 0 .../{white-space.scss => _white-space.scss} | 0 src/styles/lib/index.scss | 3 +- src/styles/lib/mixin.scss | 9 - src/styles/var.scss | 24 ++ vue.config.js | 3 + 45 files changed, 337 insertions(+), 210 deletions(-) delete mode 100644 src/components/messageBoard/index.vue create mode 100644 src/store/modules/auth.js rename src/styles/lib/{background.scss => _background.scss} (100%) rename src/styles/lib/{border.scss => _border.scss} (100%) rename src/styles/lib/{box.scss => _box.scss} (100%) rename src/styles/lib/{cursor.scss => _cursor.scss} (100%) rename src/styles/lib/{display.scss => _display.scss} (100%) rename src/styles/lib/{flex.scss => _flex.scss} (100%) rename src/styles/lib/{float.scss => _float.scss} (100%) rename src/styles/lib/{font-size.scss => _font-size.scss} (100%) rename src/styles/lib/{font-weight.scss => _font-weight.scss} (100%) rename src/styles/lib/{line-height.scss => _line-height.scss} (100%) rename src/styles/lib/{link.scss => _link.scss} (100%) rename src/styles/lib/{overflow.scss => _overflow.scss} (100%) rename src/styles/lib/{position.scss => _position.scss} (100%) rename src/styles/lib/{size.scss => _size.scss} (100%) rename src/styles/lib/{text-align.scss => _text-align.scss} (100%) rename src/styles/lib/{text-color.scss => _text-color.scss} (100%) rename src/styles/lib/{vertical-align.scss => _vertical-align.scss} (100%) rename src/styles/lib/{visibility.scss => _visibility.scss} (100%) rename src/styles/lib/{white-space.scss => _white-space.scss} (100%) delete mode 100644 src/styles/lib/mixin.scss create mode 100644 src/styles/var.scss diff --git a/src/api/index.js b/src/api/index.js index 9e2c2d6..48d1884 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -188,4 +188,7 @@ export default { getMineClass:`/management/practise/review/getMineClass`, AchievementListByClassId:`/management/practise/review/AchievementListByClassId`, byClassIdGetPractise:`/management/practise/review/byClassIdGetPractise`, + + // 错题管理 + pageByNameWrong:`/management/wrongTopic/pageByName`, } \ No newline at end of file diff --git a/src/components/messageBoard/index.vue b/src/components/messageBoard/index.vue deleted file mode 100644 index 82c4d41..0000000 --- a/src/components/messageBoard/index.vue +++ /dev/null @@ -1,72 +0,0 @@ - - - diff --git a/src/components/testPaperDetail/index.vue b/src/components/testPaperDetail/index.vue index abf7ca5..42de91c 100644 --- a/src/components/testPaperDetail/index.vue +++ b/src/components/testPaperDetail/index.vue @@ -176,7 +176,6 @@ export default { \ No newline at end of file diff --git a/src/pages/assessment/detail/index.vue b/src/pages/assessment/detail/index.vue index c12fca6..1a132e3 100644 --- a/src/pages/assessment/detail/index.vue +++ b/src/pages/assessment/detail/index.vue @@ -185,7 +185,7 @@ export default { left: 0; width: 100%; height: 4px; - background-color: #e80909; + background-color: $main-color; } } } @@ -251,8 +251,8 @@ export default { cursor: pointer; &.submit{ color: #fff; - background-color: #e80909; - border-color: #e80909; + background-color: $main-color; + border-color: $main-color; } &:hover{ opacity: .8; diff --git a/src/pages/messageBoard/list/index.vue b/src/pages/messageBoard/list/index.vue index cb72e66..fd5d70f 100644 --- a/src/pages/messageBoard/list/index.vue +++ b/src/pages/messageBoard/list/index.vue @@ -44,7 +44,7 @@
- +
@@ -107,8 +107,7 @@ export default { .then(res => { this.listData = this.handleList(res.data.list.list) this.total = res.data.list.totalCount - }) - .catch(err => {}) + }).catch(err => {}) }, handleList(list){ list.map(n => { @@ -138,7 +137,6 @@ export default { replyList = replyList.concat(n.replyList) }) children = children.concat(replyList) - console.log(11,replyList,children) row.children = this.handleList(children) row.showChildren = true }).catch(res => {}) @@ -165,16 +163,16 @@ export default { this.getData() }).catch(res => {}) }, - delReply(row){ + delReply(row,i,index){ if(row.identification == 1){ this.$post(`${this.api.delComment}?commentId=${row.commentId}`).then(res => { this.$message.success('删除成功') - this.getData() + this.listData[index].children.splice(i,1) }).catch(res => {}) }else{ this.$post(`${this.api.delReply}?replyId=${row.replyId}`).then(res => { this.$message.success('删除成功') - this.getData() + this.listData[index].children.splice(i,1) }).catch(res => {}) } }, @@ -209,7 +207,6 @@ export default {