47 lines
1.3 KiB
JavaScript
47 lines
1.3 KiB
JavaScript
import {post} from './http.js'
|
|
|
|
// 设备监控
|
|
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 workshopCondition = () => post('api/cockpit/workshopCondition', {})
|