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 })