You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.1 KiB
TypeScript
48 lines
1.1 KiB
TypeScript
import request from '@/config/axios'
|
|
export interface DashboardProductVO {
|
|
taskItems: ItemVO[]
|
|
planItems: ItemVO[]
|
|
}
|
|
|
|
export interface ItemVO {
|
|
key: string
|
|
label: string
|
|
value: number
|
|
}
|
|
|
|
export interface DeviceStatusVO {
|
|
key: string
|
|
label: string
|
|
value: number
|
|
level: 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` })
|
|
},
|
|
|
|
}
|
|
|