From 44ab2dc9fdbab0fef86eb30395a4eae50cd2af05 Mon Sep 17 00:00:00 2001 From: gongjiale <942894820@qq.com> Date: Tue, 3 Sep 2024 22:50:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=96=B0=E7=9A=84=E5=89=8D?= =?UTF-8?q?=E5=8F=B0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/api/statistics/avgTable.js | 9 + ruoyi-ui/src/api/statistics/reportCenter.js | 10 + .../views/dataStatistics/avgTable/index.vue | 162 +++++++++++++++ .../dataStatistics/reportCenter/index.vue | 195 ++++++++++++++++++ 4 files changed, 376 insertions(+) create mode 100644 ruoyi-ui/src/api/statistics/avgTable.js create mode 100644 ruoyi-ui/src/api/statistics/reportCenter.js create mode 100644 ruoyi-ui/src/views/dataStatistics/avgTable/index.vue create mode 100644 ruoyi-ui/src/views/dataStatistics/reportCenter/index.vue diff --git a/ruoyi-ui/src/api/statistics/avgTable.js b/ruoyi-ui/src/api/statistics/avgTable.js new file mode 100644 index 0000000..bf5bda3 --- /dev/null +++ b/ruoyi-ui/src/api/statistics/avgTable.js @@ -0,0 +1,9 @@ +import request from '@/utils/request' + +export function getDeviceAvgByMonth(params) { + return request({ + url: '/statistics/getDeviceAvgByMonth', + params: params, + method: 'get', + }) +} diff --git a/ruoyi-ui/src/api/statistics/reportCenter.js b/ruoyi-ui/src/api/statistics/reportCenter.js new file mode 100644 index 0000000..ae93f32 --- /dev/null +++ b/ruoyi-ui/src/api/statistics/reportCenter.js @@ -0,0 +1,10 @@ +import request from '@/utils/request' + +export function reportCenterApi(params) { + console.log(params); + return request({ + url: '/statistics/reportCenter', + params: params, + method: 'get', + }) +} diff --git a/ruoyi-ui/src/views/dataStatistics/avgTable/index.vue b/ruoyi-ui/src/views/dataStatistics/avgTable/index.vue new file mode 100644 index 0000000..daea76a --- /dev/null +++ b/ruoyi-ui/src/views/dataStatistics/avgTable/index.vue @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ruoyi-ui/src/views/dataStatistics/reportCenter/index.vue b/ruoyi-ui/src/views/dataStatistics/reportCenter/index.vue new file mode 100644 index 0000000..37f3c12 --- /dev/null +++ b/ruoyi-ui/src/views/dataStatistics/reportCenter/index.vue @@ -0,0 +1,195 @@ + + + + + + + + + + + + + + {{ this.month.replace("-", "年") + "月" }} + + + + + {{ getTableFirstColumnName(scope.row) }} + + + + + + + + + + + + + + + + + + +