From 89ab432a7f62ebf23c3759c7e306d24b37eee14c Mon Sep 17 00:00:00 2001
From: 23688nl <329261568@qq.com>
Date: Wed, 26 Oct 2022 11:20:20 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4:=20=E7=BB=9F=E8=AE=A1?=
=?UTF-8?q?=E5=88=86=E6=9E=90=20=E6=A8=A1=E5=9D=97=E4=BB=A3=E7=A0=81?=
=?UTF-8?q?=EF=BC=9B(=E9=83=A8=E5=88=86=E4=BC=98=E5=8C=96=E4=BD=BF?=
=?UTF-8?q?=E7=94=A8=E7=BB=84=E4=BB=B6=E9=97=AE=E9=A2=98=EF=BC=81)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/iot/staistics.js | 16 ++
src/components/Echarts/EEchartsBar.vue | 4 +-
src/components/RightToolbar/index.vue | 8 +-
src/views/iot/autocontrol/job/index.vue | 14 +-
src/views/iot/circuitBreaker/index.vue | 16 +-
src/views/iot/contacts/index.vue | 19 +-
src/views/iot/device/index.vue | 14 +-
src/views/iot/device/profile/childDevice.vue | 13 +-
src/views/iot/device/profile/info.vue | 14 +-
src/views/iot/library/index.vue | 26 +-
src/views/iot/model/index.vue | 13 +-
src/views/iot/param/index.vue | 11 +-
src/views/iot/project/profile/space.vue | 13 +-
src/views/iot/project/profile/spaceDevice.vue | 8 +-
.../project/profileV2/AlarmManage/index.vue | 1 +
.../profileV2/DeviceManage/EDeviceTable.vue | 2 +-
.../iot/project/profileV2/EObjectInfo.vue | 6 +-
.../iot/project/profileV2/EObjectSpace.vue | 13 +-
.../project/profileV2/EObjectSpaceDevice.vue | 13 +-
.../iot/project/profileV2/EPrice/index.vue | 16 +-
.../project/profileV2/ESceneManage/index.vue | 14 +-
.../SafetyTemplate/ELeakageCurrent.vue | 9 +-
.../profileV2/SafetyTemplate/index.vue | 1 +
src/views/iot/project/profileV2/details.vue | 191 +++++++++++----
.../iot/region/profile/BuildingDevice.vue | 13 +-
.../iot/region/profile/BuildingSpace.vue | 12 +-
src/views/iot/region/profile/table.vue | 14 +-
src/views/iot/statistics/chain/index.vue | 175 +++-----------
src/views/iot/statistics/chain/template.vue | 224 ++++++++++++++++++
src/views/iot/statistics/compared/index.vue | 192 ++++-----------
.../statistics/compared/profile/amount.vue | 5 +
.../statistics/compared/profile/template.vue | 215 +++++++++++++++++
src/views/iot/statistics/energy/index.vue | 4 +-
src/views/iot/video/camera/index.vue | 29 ++-
src/views/iot/video/site/index.vue | 16 +-
src/views/monitor/job/index.vue | 18 +-
src/views/monitor/job/log.vue | 11 +-
src/views/monitor/operlog/index.vue | 10 +-
.../personal/device/profile/runStarts.vue | 14 +-
src/views/system/dept/index.vue | 2 +-
40 files changed, 919 insertions(+), 490 deletions(-)
create mode 100644 src/views/iot/statistics/chain/template.vue
create mode 100644 src/views/iot/statistics/compared/profile/amount.vue
create mode 100644 src/views/iot/statistics/compared/profile/template.vue
diff --git a/src/api/iot/staistics.js b/src/api/iot/staistics.js
index 75222dae..16e9e2d3 100644
--- a/src/api/iot/staistics.js
+++ b/src/api/iot/staistics.js
@@ -7,3 +7,19 @@ export function projectEnergy(query) {
params: query
})
}
+
+export function monthOnMonthEnergy(query) {
+ return request({
+ url: '/iot/stat/monthOnMonthEnergy',
+ method: 'get',
+ params: query
+ })
+}
+
+export function monthOnCircleEnergy(query) {
+ return request({
+ url: '/iot/stat/monthOnCircleEnergy',
+ method: 'get',
+ params: query
+ })
+}
diff --git a/src/components/Echarts/EEchartsBar.vue b/src/components/Echarts/EEchartsBar.vue
index 12d7b6a5..ca08c406 100644
--- a/src/components/Echarts/EEchartsBar.vue
+++ b/src/components/Echarts/EEchartsBar.vue
@@ -32,7 +32,9 @@ export default {
this.chart = null;
},
mounted() {
- this.drawBar();
+ window.addEventListener("resize", () => {
+ this.updateEchart();
+ });
},
methods: {
updateEchart() {
diff --git a/src/components/RightToolbar/index.vue b/src/components/RightToolbar/index.vue
index 92c65a53..4c7fbcb3 100644
--- a/src/components/RightToolbar/index.vue
+++ b/src/components/RightToolbar/index.vue
@@ -11,19 +11,23 @@