Bläddra i källkod

瑞恒注气量调整

lipenghui 5 dagar sedan
förälder
incheckning
a09b1acf38
2 ändrade filer med 8 tillägg och 2 borttagningar
  1. 6 0
      src/api/pms/stat/index.ts
  2. 2 2
      src/views/pms/stat/rhkb.vue

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

@@ -71,9 +71,15 @@ export const IotStatApi = {
   getRhZql: async (params: any) => {
     return await request.get({ url: `/rq/stat/year/total/gas/`+params })
   },
+  getRhZqlGases: async (params: any) => {
+    return await request.get({ url: `/rq/stat/year/total/gases/`+params })
+  },
   getRhZqlToday: async (params: any) => {
     return await request.get({ url: `/rq/stat/rh/zql/today/`+params })
   },
+  getRhZqlDaily: async (params: any) => {
+    return await request.get({ url: `/rq/stat/rh/zql/daily/`+params })
+  },
   getMaintenanceTodayStatus: async () => {
     return await request.get({ url: `/rq/stat/maintenance/today/status` })
   },

+ 2 - 2
src/views/pms/stat/rhkb.vue

@@ -291,7 +291,7 @@ const getStats = () => {
   IotStatApi.getMaintenanceStatus('rh').then((res) => {
     by.value = res
   })
-  IotStatApi.getRhZql('rh').then((res) => {
+  IotStatApi.getRhZqlGases('rh').then((res) => {
     zqlData.value = res
     const localeStore = useLocaleStore()
     const lang = localeStore.getCurrentLocale.lang
@@ -302,7 +302,7 @@ const getStats = () => {
     }
 
   })
-  IotStatApi.getRhZqlToday('rh').then((res) => {
+  IotStatApi.getRhZqlDaily('rh').then((res) => {
     zqlTodayData.value = res
     const localeStore = useLocaleStore()
     const lang = localeStore.getCurrentLocale.lang