From 40d690697ae19e4d2c48e17a1d46b1a1bdabdee4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=B6=E5=90=AF=E9=BE=99?= Date: Wed, 24 Jul 2024 16:31:31 +0800 Subject: [PATCH] fix: m --- src/views/screen/api.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/screen/api.js b/src/views/screen/api.js index 89398ea..fabafe5 100644 --- a/src/views/screen/api.js +++ b/src/views/screen/api.js @@ -27,7 +27,7 @@ function getDatesFormatted() { // 单位机时统计 export const getDepartDuration = () => axios - .post(`/screen_server/hpc/findTopByOrg?startDate=${getDatesFormatted().today}&endDate=${getDatesFormatted().ninetyDaysAgo}`) + .post(`/screen_server/hpc/findTopByOrg?startDate=${getDatesFormatted().ninetyDaysAgo}&endDate=${getDatesFormatted().today}`) .then(function (response) { return response.data }) @@ -38,7 +38,7 @@ export const getDepartDuration = () => // 软件机时统计 export const getSoftwareDuration = () => axios - .post(`/screen_server/hpc/findTopBySoft?startDate=${getDatesFormatted().today}&endDate=${getDatesFormatted().ninetyDaysAgo}`) + .post(`/screen_server/hpc/findTopBySoft?startDate=${getDatesFormatted().ninetyDaysAgo}&endDate=${getDatesFormatted().today}`) .then(function (response) { return response.data }) @@ -49,7 +49,7 @@ export const getSoftwareDuration = () => // 当前在用软件 export const getInUseSoftware = () => axios - .post(`/screen_server/hpc/findTopSoftList?startDate=${getDatesFormatted().today}&endDate=${getDatesFormatted().ninetyDaysAgo}`) + .post(`/screen_server/hpc/findTopSoftList?startDate=${getDatesFormatted().ninetyDaysAgo}&endDate=${getDatesFormatted().today}`) .then(function (response) { return response.data }) @@ -60,7 +60,7 @@ export const getInUseSoftware = () => // 用户机时用量 export const getUserUseTrend = () => axios - .post(`/screen_server/hpc/findTopByUser?startDate=${getDatesFormatted().today}&endDate=${getDatesFormatted().ninetyDaysAgo}`) + .post(`/screen_server/hpc/findTopByUser?startDate=${getDatesFormatted().ninetyDaysAgo}&endDate=${getDatesFormatted().today}`) .then(function (response) { return response.data }) @@ -70,7 +70,7 @@ export const getUserUseTrend = () => // 软件集成数量 export const getSoftwareIntegrate = () => axios - .post(`/screen_server/hpc/findSoftCount?startDate=${getDatesFormatted().today}&endDate=${getDatesFormatted().ninetyDaysAgo}`) + .post(`/screen_server/hpc/findSoftCount?startDate=${getDatesFormatted().ninetyDaysAgo}&endDate=${getDatesFormatted().today}`) .then(function (response) { return response.data })