From 3a4591c75bf357b4abb98bd983651a393f8a5fdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=B4=E6=9C=97?= <464174023@qq.com> Date: Sat, 31 Aug 2024 17:57:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=96=87=E4=BB=B6=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E5=89=8D=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/document/document.js | 10 ++ src/views/filestatistic/DownStatDetail.vue | 87 +++++++++++ src/views/filestatistic/PieChart.vue | 102 +++++++++++++ src/views/filestatistic/index.vue | 163 +++++++++++++++++++++ 4 files changed, 362 insertions(+) create mode 100644 src/views/filestatistic/DownStatDetail.vue create mode 100644 src/views/filestatistic/PieChart.vue create mode 100644 src/views/filestatistic/index.vue diff --git a/src/api/document/document.js b/src/api/document/document.js index 080e497..a86601b 100644 --- a/src/api/document/document.js +++ b/src/api/document/document.js @@ -52,3 +52,13 @@ export function pushDoc(id) { method: 'put' }) } + + +// 获取统计信息 +export function getStatistics(query) { + return request({ + url: '/document/statistics', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/views/filestatistic/DownStatDetail.vue b/src/views/filestatistic/DownStatDetail.vue new file mode 100644 index 0000000..a8c7067 --- /dev/null +++ b/src/views/filestatistic/DownStatDetail.vue @@ -0,0 +1,87 @@ + + diff --git a/src/views/filestatistic/PieChart.vue b/src/views/filestatistic/PieChart.vue new file mode 100644 index 0000000..e6a7360 --- /dev/null +++ b/src/views/filestatistic/PieChart.vue @@ -0,0 +1,102 @@ + + + diff --git a/src/views/filestatistic/index.vue b/src/views/filestatistic/index.vue new file mode 100644 index 0000000..349743c --- /dev/null +++ b/src/views/filestatistic/index.vue @@ -0,0 +1,163 @@ + + + + +