fix: m
parent
89f7726b45
commit
40d690697a
|
@ -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
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue