sqltest
时启龙 2024-07-24 16:31:31 +08:00
parent 89f7726b45
commit 40d690697a
1 changed files with 5 additions and 5 deletions

View File

@ -27,7 +27,7 @@ function getDatesFormatted() {
// 单位机时统计 // 单位机时统计
export const getDepartDuration = () => export const getDepartDuration = () =>
axios 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) { .then(function (response) {
return response.data return response.data
}) })
@ -38,7 +38,7 @@ export const getDepartDuration = () =>
// 软件机时统计 // 软件机时统计
export const getSoftwareDuration = () => export const getSoftwareDuration = () =>
axios 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) { .then(function (response) {
return response.data return response.data
}) })
@ -49,7 +49,7 @@ export const getSoftwareDuration = () =>
// 当前在用软件 // 当前在用软件
export const getInUseSoftware = () => export const getInUseSoftware = () =>
axios 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) { .then(function (response) {
return response.data return response.data
}) })
@ -60,7 +60,7 @@ export const getInUseSoftware = () =>
// 用户机时用量 // 用户机时用量
export const getUserUseTrend = () => export const getUserUseTrend = () =>
axios 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) { .then(function (response) {
return response.data return response.data
}) })
@ -70,7 +70,7 @@ export const getUserUseTrend = () =>
// 软件集成数量 // 软件集成数量
export const getSoftwareIntegrate = () => export const getSoftwareIntegrate = () =>
axios 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) { .then(function (response) {
return response.data return response.data
}) })