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 @@