feat:大屏对接接口
parent
4292e5cf86
commit
fae45959ed
@ -1,47 +1,89 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export interface DashboardProductVO {
|
||||
taskItems: ItemVO[]
|
||||
planItems: ItemVO[]
|
||||
taskItems: ItemVO[]
|
||||
planItems: ItemVO[]
|
||||
}
|
||||
|
||||
export interface ItemVO {
|
||||
key: string
|
||||
label: string
|
||||
value: number
|
||||
key: string
|
||||
label: string
|
||||
value: number
|
||||
}
|
||||
|
||||
export interface DeviceStatusVO {
|
||||
key: string
|
||||
label: string
|
||||
value: number
|
||||
level: string
|
||||
key: string
|
||||
label: string
|
||||
value: number
|
||||
level: string
|
||||
}
|
||||
|
||||
export interface TaskStatisticsData {
|
||||
deviceInspection: number
|
||||
deviceInspectionProportion: string
|
||||
moldInspection: number
|
||||
moldInspectionProportion: string
|
||||
deviceMaintenance: number
|
||||
deviceMaintenanceProportion: string
|
||||
moldMaintenance: number
|
||||
moldMaintenanceProportion: string
|
||||
deviceRepair: number
|
||||
deviceRepairProportion: string
|
||||
moldRepair: number
|
||||
moldRepairProportion: string
|
||||
}
|
||||
|
||||
export interface TaskStatisticsResponse {
|
||||
code: number
|
||||
status: number
|
||||
data: TaskStatisticsData
|
||||
msg: string
|
||||
}
|
||||
|
||||
export interface DashboardTaskItem {
|
||||
code: string
|
||||
name: string
|
||||
type: string
|
||||
finishStatus: string
|
||||
resultStatus: number
|
||||
}
|
||||
|
||||
export interface DashboardTaskListResponse {
|
||||
code: number
|
||||
status: number
|
||||
data: DashboardTaskItem[]
|
||||
msg: string
|
||||
}
|
||||
|
||||
// 编码生成记录 API
|
||||
export const DashboardApi = {
|
||||
// 查询编码生成记录分页
|
||||
getProduction: async (params: any) => {
|
||||
return await request.get({ url: `/mes/dashboard/getProduction`, params })
|
||||
},
|
||||
getPlan: async () => {
|
||||
return await request.get({ url: `/mes/dashboard/getPlan` })
|
||||
},
|
||||
getDevice: async () => {
|
||||
return await request.get({ url: `/mes/dashboard/getDevice` })
|
||||
},
|
||||
getMold: async () => {
|
||||
return await request.get({ url: `/mes/dashboard/getMold` })
|
||||
},
|
||||
getTodoList: async () => {
|
||||
return await request.get({ url: `/mes/dashboard/getTodoList` })
|
||||
},
|
||||
getDeviceOperationalStatus: async () => {
|
||||
return await request.get({ url: `/iot/device/getDeviceOperationalStatus` })
|
||||
},
|
||||
getDeviceRepairLineOptions: async () => {
|
||||
return await request.get({ url: `/mes/dashboard/getDeviceRepairLineOptions` })
|
||||
},
|
||||
|
||||
// 查询编码生成记录分页
|
||||
getProduction: async (params: any) => {
|
||||
return await request.get({ url: `/mes/dashboard/getProduction`, params })
|
||||
},
|
||||
getPlan: async () => {
|
||||
return await request.get({ url: `/mes/dashboard/getPlan` })
|
||||
},
|
||||
getDevice: async () => {
|
||||
return await request.get({ url: `/mes/dashboard/getDevice` })
|
||||
},
|
||||
getMold: async () => {
|
||||
return await request.get({ url: `/mes/dashboard/getMold` })
|
||||
},
|
||||
getTodoList: async () => {
|
||||
return await request.get({ url: `/mes/dashboard/getTodoList` })
|
||||
},
|
||||
getDeviceOperationalStatus: async () => {
|
||||
return await request.get({ url: `/iot/device/getDeviceOperationalStatus` })
|
||||
},
|
||||
getDeviceRepairLineOptions: async () => {
|
||||
return await request.get({ url: `/mes/dashboard/getDeviceRepairLineOptions` })
|
||||
},
|
||||
getTaskStatistics: async () => {
|
||||
return await request.get<TaskStatisticsResponse>({ url: `/mes/dashboard/getTaskStatistics` })
|
||||
},
|
||||
getAllTaskList: async () => {
|
||||
return await request.get<DashboardTaskListResponse>({ url: `/mes/dashboard/getAllTaskList` })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue