ソースを参照

调整连油看板调用接口

Zimo 2 日 前
コミット
c1cec4404d

+ 15 - 0
src/api/pms/stat/index.ts

@@ -120,6 +120,21 @@ export const IotStatApi = {
     })
   },
 
+  getDeviceInfoChartly: async (deviceCode: any, identifier: any, begin: string, end: string) => {
+    return await request.get({
+      url:
+        `/rq/stat/td/chart/ly/` +
+        deviceCode +
+        '/' +
+        identifier +
+        '?beginTime=' +
+        begin +
+        '&endTime=' +
+        end,
+      signal: globalController.signal
+    })
+  },
+
   getDeviceCount: async (params?: any) => {
     return await request.get({ url: `/rq/stat/home/device/count/` + params })
   },

+ 1 - 1
src/views/oli-connection/monitoring-board/chart.vue

@@ -626,7 +626,7 @@ async function initLoadChartData(real_time: boolean = true) {
       dimensions.value.map(async (item) => {
         item.response = true
         try {
-          const res = await IotStatApi.getDeviceInfoChart(
+          const res = await IotStatApi.getDeviceInfoChartly(
             props.deviceCode,
             item.identifier,
             props.date[0],

+ 1 - 1
src/views/oli-connection/monitoring/detail.vue

@@ -622,7 +622,7 @@ async function initLoadChartData({
       dimensions.value.map(async (item) => {
         item.response = true
         try {
-          const res = await IotStatApi.getDeviceInfoChart(
+          const res = await IotStatApi.getDeviceInfoChartly(
             data.value.deviceCode,
             item.identifier,
             selectedDate.value[0],