diff --git a/src/core/constant.js b/src/core/constant.js index beeab7ec5..0a99fe91a 100644 --- a/src/core/constant.js +++ b/src/core/constant.js @@ -95,3 +95,30 @@ export const attachmentTypes = { text: 'MinIO' } } + +export const postStatuses = { + PUBLISHED: { + value: 'PUBLISHED', + color: 'green', + status: 'success', + text: '已发布' + }, + DRAFT: { + value: 'DRAFT', + color: 'yellow', + status: 'warning', + text: '草稿' + }, + RECYCLE: { + value: 'RECYCLE', + color: 'red', + status: 'error', + text: '回收站' + }, + INTIMATE: { + value: 'INTIMATE', + color: 'blue', + status: 'success', + text: '私密' + } +} diff --git a/src/views/post/PostList.vue b/src/views/post/PostList.vue index d296803b7..4417e6169 100644 --- a/src/views/post/PostList.vue +++ b/src/views/post/PostList.vue @@ -12,8 +12,8 @@ - - {{ postStatus[status].text }} + + {{ postStatuses[status].text }} @@ -51,32 +51,34 @@ 写文章 - - - 发布 - - - 移到回收站 - - - 草稿 - - - 永久删除 - - + 批量操作 @@ -87,138 +89,153 @@ - - - - - - + + + - + - + - +