From 4d0fb8ff69ea521ccde1abefacbd2ddf5f09fde4 Mon Sep 17 00:00:00 2001 From: yaoxin <1752800946@qq.com> Date: Thu, 13 Jun 2024 22:14:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B4=9F=E8=BD=BD=E4=B8=AD=E5=BF=83?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=99=A8=E8=8A=82=E7=82=B9=E8=B4=9F=E8=BD=BD?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/vehicle/vehicle.js | 22 +++++++ .../node-list/dashboard/PanelGroup.vue | 22 +++++-- src/views/statistics/node-list/index.vue | 24 +++++--- .../overview/dashboard/PanelGroup.vue | 22 +++++-- src/views/statistics/overview/index.vue | 59 ++++++++++++++++--- vue.config.js | 2 +- 6 files changed, 126 insertions(+), 25 deletions(-) create mode 100644 src/api/vehicle/vehicle.js diff --git a/src/api/vehicle/vehicle.js b/src/api/vehicle/vehicle.js new file mode 100644 index 0000000..e02d453 --- /dev/null +++ b/src/api/vehicle/vehicle.js @@ -0,0 +1,22 @@ +import request from '@/utils/request' + +export function loadCenterStatistics() { + return request({ + url: '/loadcenter/LoadCenterStatistics', + method: 'get' + }) +} + +export function getVehicleList() { + return request({ + url: '/loadcenter/GetVehicleList', + method: 'get' + }) +} + +export function getMqttServerList(sort) { + return request({ + url: '/loadcenter/GetMqttServerList?sort=' + sort, + method: 'get' + }) +} diff --git a/src/views/statistics/node-list/dashboard/PanelGroup.vue b/src/views/statistics/node-list/dashboard/PanelGroup.vue index d72cfb2..d543202 100644 --- a/src/views/statistics/node-list/dashboard/PanelGroup.vue +++ b/src/views/statistics/node-list/dashboard/PanelGroup.vue @@ -11,7 +11,7 @@ + :duration="3000" :end-val="LoadCenterStatistics.gatewayNodeCount" :start-val="0" class="card-panel-num"/> @@ -26,7 +26,7 @@ + :duration="3000" :end-val="10" :start-val="0" class="card-panel-num"/> @@ -41,7 +41,7 @@ + :duration="3200" :end-val="LoadCenterStatistics.entiretyLoad" :start-val="0" class="card-panel-num"/> @@ -56,7 +56,7 @@ + :duration="3600" :end-val="LoadCenterStatistics.vehicleCount" :start-val="0" class="card-panel-num"/> @@ -65,12 +65,26 @@