no message

This commit is contained in:
2023-03-06 16:18:34 +08:00
parent c02f416193
commit e2d9180243
7 changed files with 55 additions and 52 deletions

View File

@@ -1,46 +1,46 @@
import {post} from './http.js'
// 设备监控
// export const deviceMonitor = () => post('api/cockpit/deviceMonitor', {
// })
export const deviceMonitor = () => post('api/cockpit/deviceMonitor', {
})
export const findDeviceById = (id) => post('api/cockpit/findDeviceById', {
id: id
})
export const deviceMonitor = () => {
let res = {
result: [
{
'point_id': '1',
'point_code': 'HLJDJW01',
'point_name': '混料机1对接位',
'point_status': '3',
'material_id': 1556534702800769024,
'material_name': '木质花纹2cm',
'ivt_weight': 29.500000,
'work_time': '50',
'ivt_qty': 600.000000,
'vehicle_qty': 15,
'vehicle_max_qty': '',
'device_url': 'hlj'
},
{
'point_id': '1518105008862793728',
'point_code': 'YZJ02XL01',
'point_name': '压制机2下料位1',
'point_status': '3',
'material_id': 1556534702800769024,
'material_name': '木质花纹2cm',
'ivt_weight': 29.500000,
'work_time': '50',
'ivt_qty': 600.000000,
'vehicle_qty': 15,
'vehicle_max_qty': 20,
'device_url': 'yzj'
}
]
}
return res
}
// export const deviceMonitor = () => {
// let res = {
// result: [
// {
// 'point_id': '1',
// 'point_code': 'HLJDJW01',
// 'point_name': '混料机1对接位',
// 'point_status': '3',
// 'material_id': 1556534702800769024,
// 'material_name': '木质花纹2cm',
// 'ivt_weight': 29.500000,
// 'work_time': '50',
// 'ivt_qty': 600.000000,
// 'vehicle_qty': 15,
// 'vehicle_max_qty': '',
// 'device_url': 'hlj'
// },
// {
// 'point_id': '1518105008862793728',
// 'point_code': 'YZJ02XL01',
// 'point_name': '压制机2下料位1',
// 'point_status': '3',
// 'material_id': 1556534702800769024,
// 'material_name': '木质花纹2cm',
// 'ivt_weight': 29.500000,
// 'work_time': '50',
// 'ivt_qty': 600.000000,
// 'vehicle_qty': 15,
// 'vehicle_max_qty': 20,
// 'device_url': 'yzj'
// }
// ]
// }
// return res
// }
// 车间情况
export const workshopCondition = () => post('api/cockpit/workshopCondition', {})