From c007933919f5c74222fca8e4ea0ea4927553a390 Mon Sep 17 00:00:00 2001 From: ruibaby Date: Sat, 20 Apr 2019 17:47:00 +0800 Subject: [PATCH] Refactor attachment list and theme list. --- src/views/attachment/AttachmentList.vue | 36 +++++----- src/views/comment/CommentList.vue | 12 ++-- src/views/interface/ThemeList.vue | 92 ++++++++++++------------- src/views/page/internal/LinkList.vue | 1 + 4 files changed, 66 insertions(+), 75 deletions(-) diff --git a/src/views/attachment/AttachmentList.vue b/src/views/attachment/AttachmentList.vue index 3d89c57b..b01b8975 100644 --- a/src/views/attachment/AttachmentList.vue +++ b/src/views/attachment/AttachmentList.vue @@ -41,25 +41,22 @@ - - - -
- -
- - - -
+ + + + +
+ +
+ + + +
+
+
@@ -179,7 +176,6 @@ export default { margin: 24px 0 12px 0; } -.attachment-item, .search-box { padding-bottom: 12px; } diff --git a/src/views/comment/CommentList.vue b/src/views/comment/CommentList.vue index c7dcc331..688c1402 100644 --- a/src/views/comment/CommentList.vue +++ b/src/views/comment/CommentList.vue @@ -91,6 +91,12 @@ const columns = [ title: '内容', dataIndex: 'content' }, + { + title: '状态', + className: 'status', + dataIndex: 'statusProperty', + scopedSlots: { customRender: 'status' } + }, { title: '评论页面', dataIndex: 'post', @@ -101,12 +107,6 @@ const columns = [ dataIndex: 'createTime', scopedSlots: { customRender: 'createTime' } }, - { - title: '状态', - className: 'status', - dataIndex: 'statusProperty', - scopedSlots: { customRender: 'status' } - }, { title: '操作', dataIndex: 'action', diff --git a/src/views/interface/ThemeList.vue b/src/views/interface/ThemeList.vue index c32190e5..b0b56302 100644 --- a/src/views/interface/ThemeList.vue +++ b/src/views/interface/ThemeList.vue @@ -1,51 +1,49 @@