diff --git a/src/views/table/index.vue b/src/views/table/index.vue
index 257a3d5..269571d 100644
--- a/src/views/table/index.vue
+++ b/src/views/table/index.vue
@@ -11,7 +11,6 @@
{{scope.row.title}}
-
{{scope.row.author}}
@@ -22,6 +21,11 @@
{{scope.row.pageviews}}
+
+
+ {{scope.row.status}}
+
+
@@ -42,6 +46,16 @@ export default {
listLoading: true
}
},
+ filters: {
+ statusFilter(status) {
+ const statusMap = {
+ published: 'success',
+ draft: 'gray',
+ deleted: 'danger'
+ }
+ return statusMap[status]
+ }
+ },
created() {
this.fetchData()
},