feat:对接工单模块接口

This commit is contained in:
zjc
2025-01-01 12:59:32 +08:00
parent d2c0db5270
commit 0742c6fa93
19 changed files with 616 additions and 772 deletions

49
src/api/workOrder.js Normal file
View File

@@ -0,0 +1,49 @@
import request from './request'
// 最新工单
export function getListApi() {
return request({
url: '/api/largeScreen/workorder/list',
method: 'get'
})
}
// 统计
export function getTotalApi() {
return request({
url: '/api/largeScreen/workorder/total',
method: 'get'
})
}
// 工单总数(折线图)
export function getLineChartApi() {
return request({
url: '/api/largeScreen/workorder/lineChart',
method: 'get'
})
}
// 工单完成比例
export function getCompleteRateApi() {
return request({
url: '/api/largeScreen/workorder/completeRate',
method: 'get'
})
}
// 工单景区占比
export function getSpotRateApi() {
return request({
url: '/api/largeScreen/workorder/spotRate',
method: 'get'
})
}
// 工单类型占比
export function getTypeRateApi() {
return request({
url: '/api/largeScreen/workorder/typeRate',
method: 'get'
})
}