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 @@
-
-
-
-
- 留言板
-
-
-
-
-
张三提问于2020-12-11
-
-
- 回复
- 删除
-
-
-
-
-
-
-
-
-
-
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 {