From d32971b98fad5d8e76236ff9b58ef3f3c0a53b8f Mon Sep 17 00:00:00 2001
From: ZhiZDK <1622823318@qq.com>
Date: Sat, 5 Jun 2021 16:08:24 +0800
Subject: [PATCH] =?UTF-8?q?2021-6-5=20=E9=A1=B5=E9=9D=A2=E7=BE=8E=E5=8C=96?=
=?UTF-8?q?=EF=BC=8C=E8=A1=A8=E6=A0=BC=E9=83=A8=E5=88=86=E5=AD=97=E6=AE=B5?=
=?UTF-8?q?=E5=8A=A0=E4=B8=8A=E6=A0=87=E7=AD=BE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
web/src/views/admin/admin-category.vue | 16 +++++++++-
web/src/views/admin/admin-ebook.vue | 42 ++++++++++++++++++++++++--
2 files changed, 54 insertions(+), 4 deletions(-)
diff --git a/web/src/views/admin/admin-category.vue b/web/src/views/admin/admin-category.vue
index ebdba25..ace7bec 100644
--- a/web/src/views/admin/admin-category.vue
+++ b/web/src/views/admin/admin-category.vue
@@ -27,6 +27,19 @@
+
+
+
+
+ {{record.sort}}
+
+
+
+
+
@@ -107,7 +120,8 @@
},
{
title: '顺序',
- dataIndex: 'sort'
+ dataIndex: 'sort',
+ slots: { customRender: 'sort' }
},
{
title: 'Action',
diff --git a/web/src/views/admin/admin-ebook.vue b/web/src/views/admin/admin-ebook.vue
index d46d39d..debd6bb 100644
--- a/web/src/views/admin/admin-ebook.vue
+++ b/web/src/views/admin/admin-ebook.vue
@@ -31,6 +31,39 @@
+
+
+
+
+ {{record.docCount}}
+
+
+
+
+
+
+ {{record.viewCount}}
+
+
+
+
+
+
+ {{record.voteCount}}
+
+
+
+
+
{{ getCategoryName(record.category1Id) }} / {{ getCategoryName(record.category2Id) }}
@@ -125,15 +158,18 @@
},
{
title: '文档数',
- dataIndex: 'docCount'
+ dataIndex: 'docCount',
+ slots: { customRender: 'docCount' },
},
{
title: '阅读数',
- dataIndex: 'viewCount'
+ dataIndex: 'viewCount',
+ slots: { customRender: 'viewCount' }
},
{
title: '点赞数',
- dataIndex: 'voteCount'
+ dataIndex: 'voteCount',
+ slots: { customRender: 'voteCount' }
},
{
title: 'Action',