feat:大屏对接接口
parent
4292e5cf86
commit
fae45959ed
@ -1,47 +1,89 @@
|
|||||||
import request from '@/config/axios'
|
import request from '@/config/axios'
|
||||||
|
|
||||||
export interface DashboardProductVO {
|
export interface DashboardProductVO {
|
||||||
taskItems: ItemVO[]
|
taskItems: ItemVO[]
|
||||||
planItems: ItemVO[]
|
planItems: ItemVO[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ItemVO {
|
export interface ItemVO {
|
||||||
key: string
|
key: string
|
||||||
label: string
|
label: string
|
||||||
value: number
|
value: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DeviceStatusVO {
|
export interface DeviceStatusVO {
|
||||||
key: string
|
key: string
|
||||||
label: string
|
label: string
|
||||||
value: number
|
value: number
|
||||||
level: string
|
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
|
// 编码生成记录 API
|
||||||
export const DashboardApi = {
|
export const DashboardApi = {
|
||||||
// 查询编码生成记录分页
|
// 查询编码生成记录分页
|
||||||
getProduction: async (params: any) => {
|
getProduction: async (params: any) => {
|
||||||
return await request.get({ url: `/mes/dashboard/getProduction`, params })
|
return await request.get({ url: `/mes/dashboard/getProduction`, params })
|
||||||
},
|
},
|
||||||
getPlan: async () => {
|
getPlan: async () => {
|
||||||
return await request.get({ url: `/mes/dashboard/getPlan` })
|
return await request.get({ url: `/mes/dashboard/getPlan` })
|
||||||
},
|
},
|
||||||
getDevice: async () => {
|
getDevice: async () => {
|
||||||
return await request.get({ url: `/mes/dashboard/getDevice` })
|
return await request.get({ url: `/mes/dashboard/getDevice` })
|
||||||
},
|
},
|
||||||
getMold: async () => {
|
getMold: async () => {
|
||||||
return await request.get({ url: `/mes/dashboard/getMold` })
|
return await request.get({ url: `/mes/dashboard/getMold` })
|
||||||
},
|
},
|
||||||
getTodoList: async () => {
|
getTodoList: async () => {
|
||||||
return await request.get({ url: `/mes/dashboard/getTodoList` })
|
return await request.get({ url: `/mes/dashboard/getTodoList` })
|
||||||
},
|
},
|
||||||
getDeviceOperationalStatus: async () => {
|
getDeviceOperationalStatus: async () => {
|
||||||
return await request.get({ url: `/iot/device/getDeviceOperationalStatus` })
|
return await request.get({ url: `/iot/device/getDeviceOperationalStatus` })
|
||||||
},
|
},
|
||||||
getDeviceRepairLineOptions: async () => {
|
getDeviceRepairLineOptions: async () => {
|
||||||
return await request.get({ url: `/mes/dashboard/getDeviceRepairLineOptions` })
|
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