diff --git a/src/views/comment/CommentList.vue b/src/views/comment/CommentList.vue index 86fe00c2..e0a0dd3d 100644 --- a/src/views/comment/CommentList.vue +++ b/src/views/comment/CommentList.vue @@ -61,18 +61,6 @@ - 会话模式 - 列表模式
- 通过 + + 通过 + + + 回复 + - 删除 + + + 回收站 + + + + 删除 +
@@ -139,7 +151,8 @@ const columns = [ }, { title: '内容', - dataIndex: 'content' + dataIndex: 'content', + scopedSlots: { customRender: 'content' } }, { title: '状态', @@ -188,7 +201,6 @@ export default { selectedRows: [], comments: [], commentsLoading: false, - tableListMode: true, commentStatus: commentApi.commentStatus } }, @@ -213,15 +225,11 @@ export default { if (isSearch) { this.queryParam.page = 0 } - if (this.tableListMode) { - commentApi.query(this.queryParam).then(response => { - this.comments = response.data.data.content - this.pagination.total = response.data.data.total - this.commentsLoading = false - }) - } else { - // TODO tree view - } + commentApi.query(this.queryParam).then(response => { + this.comments = response.data.data.content + this.pagination.total = response.data.data.total + this.commentsLoading = false + }) }, handleEditComment(id) { this.$message.success('编辑') @@ -239,10 +247,6 @@ export default { this.queryParam.keyword = null this.queryParam.status = null this.loadComments() - }, - toggleTableMode() { - this.tableListMode = !this.tableListMode - this.loadComments() } } } diff --git a/src/views/dashboard/Dashboard.vue b/src/views/dashboard/Dashboard.vue index d83da661..4456807d 100644 --- a/src/views/dashboard/Dashboard.vue +++ b/src/views/dashboard/Dashboard.vue @@ -12,7 +12,6 @@ :loading="postLoading" :bordered="false" title="最新文章" - :bodyStyle="{ padding: '0px' }" > 最新文章 @@ -28,9 +27,47 @@ :loading="commentLoading" :bordered="false" title="最新评论" - :bodyStyle="{ padding: '0px' }" > - 最新评论 + + Reply to + Han Solo + +

We supply a series of design principles, practical patterns and high quality design resources (Sketch and Axure).

+ + Reply to + Han Solo + +

We supply a series of design principles, practical patterns and high quality design resources (Sketch and Axure).

+ + Reply to + Han Solo + +

We supply a series of design principles, practical patterns and high quality design resources (Sketch and Axure).

+
+ + Reply to + Han Solo + +

We supply a series of design principles, practical patterns and high quality design resources (Sketch and Axure).

+
+
+
最新日志 diff --git a/src/views/user/Login.vue b/src/views/user/Login.vue index a5f184d2..df62376d 100644 --- a/src/views/user/Login.vue +++ b/src/views/user/Login.vue @@ -39,16 +39,15 @@ /> - + 登录 - +
@@ -101,11 +100,15 @@ export default {