From d415963aa30d196a01e66e5d75ada999483b42bb Mon Sep 17 00:00:00 2001 From: Jruome <2559028966@qq.com> Date: Wed, 14 Jun 2023 17:28:10 +0800 Subject: [PATCH 01/11] =?UTF-8?q?=E7=AE=A1=E7=90=86=E7=AB=AF=20=E5=95=86?= =?UTF-8?q?=E6=88=B7=E6=95=B0=E6=8D=AE=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-admin/src/api/index.js | 12 + .../src/api/statistics/merchantData.js | 20 ++ yudao-ui-admin/src/views/index.vue | 117 +++++++- .../views/statistics/merchantData/index.vue | 271 ++++++++++++++++++ yudao-ui-app/pages/index/index.vue | 42 +-- yudao-ui-app/pages/users/login/index.vue | 22 +- 6 files changed, 457 insertions(+), 27 deletions(-) create mode 100644 yudao-ui-admin/src/api/index.js create mode 100644 yudao-ui-admin/src/api/statistics/merchantData.js create mode 100644 yudao-ui-admin/src/views/statistics/merchantData/index.vue diff --git a/yudao-ui-admin/src/api/index.js b/yudao-ui-admin/src/api/index.js new file mode 100644 index 000000000..4bc2b684b --- /dev/null +++ b/yudao-ui-admin/src/api/index.js @@ -0,0 +1,12 @@ +import request from '@/utils/request' + +// 数据统计(全部) +export function statisticsAll(query) { + return request({ + url: '/system/statement/statisticsAll', + method: 'get', + params: query + }) +} + + diff --git a/yudao-ui-admin/src/api/statistics/merchantData.js b/yudao-ui-admin/src/api/statistics/merchantData.js new file mode 100644 index 000000000..702a3a5c9 --- /dev/null +++ b/yudao-ui-admin/src/api/statistics/merchantData.js @@ -0,0 +1,20 @@ +import request from '@/utils/request' + +// 数据统计(根据租户统计) +export function statisticsData(query) { + return request({ + url: '/system/statement/statistics', + method: 'get', + params: query + }) +} + +// 导出数据统计(根据租户统计) Excel +export function statement(query) { + return request({ + url: '/system/statement/statement-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/yudao-ui-admin/src/views/index.vue b/yudao-ui-admin/src/views/index.vue index ad2206846..24a1da9da 100644 --- a/yudao-ui-admin/src/views/index.vue +++ b/yudao-ui-admin/src/views/index.vue @@ -1,5 +1,30 @@