设备监控样式
This commit is contained in:
@@ -3,6 +3,435 @@ import {post} from './http.js'
|
||||
// 设备监控
|
||||
export const deviceMonitor = () => post('api/cockpit/deviceMonitor', {
|
||||
})
|
||||
// export const deviceMonitor = () => {
|
||||
// let res = {
|
||||
// 'code': 200,
|
||||
// 'desc': '操作成功',
|
||||
// 'result': [
|
||||
// {
|
||||
// 'device_code': 'HLJ05',
|
||||
// 'device_name': '混料机5',
|
||||
// 'device_model': '1',
|
||||
// 'device_status': '1',
|
||||
// 'device_status_name': null,
|
||||
// 'material_name': 'ZLMCZ1001C111122GM001BD20-8',
|
||||
// 'work_time': '0',
|
||||
// 'real_qty': '10',
|
||||
// 'realproducestart_date': '',
|
||||
// 'vehicle_qty': '10',
|
||||
// 'vehicle_type': '100',
|
||||
// 'vehicle_max_qty': '100',
|
||||
// 'device_url': 'HLJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'HLJ06',
|
||||
// 'device_name': '混料机6',
|
||||
// 'device_model': '1',
|
||||
// 'device_status': null,
|
||||
// 'device_status_name': null,
|
||||
// 'material_name': '-',
|
||||
// 'work_time': '0',
|
||||
// 'real_qty': null,
|
||||
// 'realproducestart_date': '',
|
||||
// 'vehicle_qty': null,
|
||||
// 'vehicle_type': null,
|
||||
// 'vehicle_max_qty': null,
|
||||
// 'device_url': 'HLJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'HLJ07',
|
||||
// 'device_name': '混料机7',
|
||||
// 'device_model': '1',
|
||||
// 'device_status': null,
|
||||
// 'device_status_name': null,
|
||||
// 'material_name': '-',
|
||||
// 'work_time': '0',
|
||||
// 'real_qty': null,
|
||||
// 'realproducestart_date': '',
|
||||
// 'vehicle_qty': null,
|
||||
// 'vehicle_type': null,
|
||||
// 'vehicle_max_qty': null,
|
||||
// 'device_url': 'HLJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'HLJ08',
|
||||
// 'device_name': '混料机8',
|
||||
// 'device_model': '1',
|
||||
// 'device_status': null,
|
||||
// 'device_status_name': null,
|
||||
// 'material_name': '-',
|
||||
// 'work_time': '0',
|
||||
// 'real_qty': null,
|
||||
// 'realproducestart_date': '',
|
||||
// 'vehicle_qty': null,
|
||||
// 'vehicle_type': null,
|
||||
// 'vehicle_max_qty': null,
|
||||
// 'device_url': 'HLJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'HLJ09',
|
||||
// 'device_name': '混料机9',
|
||||
// 'device_model': '1',
|
||||
// 'device_status': null,
|
||||
// 'device_status_name': null,
|
||||
// 'material_name': '-',
|
||||
// 'work_time': '0',
|
||||
// 'real_qty': null,
|
||||
// 'realproducestart_date': '',
|
||||
// 'vehicle_qty': null,
|
||||
// 'vehicle_type': null,
|
||||
// 'vehicle_max_qty': null,
|
||||
// 'device_url': 'HLJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'HLJ10',
|
||||
// 'device_name': '混料机10',
|
||||
// 'device_model': '1',
|
||||
// 'device_status': null,
|
||||
// 'device_status_name': null,
|
||||
// 'material_name': '-',
|
||||
// 'work_time': '0',
|
||||
// 'real_qty': null,
|
||||
// 'realproducestart_date': '',
|
||||
// 'vehicle_qty': null,
|
||||
// 'vehicle_type': null,
|
||||
// 'vehicle_max_qty': null,
|
||||
// 'device_url': 'HLJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'HLJ11',
|
||||
// 'device_name': '混料机11',
|
||||
// 'device_model': '1',
|
||||
// 'device_status': null,
|
||||
// 'device_status_name': null,
|
||||
// 'material_name': '-',
|
||||
// 'work_time': '0',
|
||||
// 'real_qty': null,
|
||||
// 'realproducestart_date': '',
|
||||
// 'vehicle_qty': null,
|
||||
// 'vehicle_type': null,
|
||||
// 'vehicle_max_qty': null,
|
||||
// 'device_url': 'HLJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'HLJ12',
|
||||
// 'device_name': '混料机12',
|
||||
// 'device_model': '1',
|
||||
// 'device_status': null,
|
||||
// 'device_status_name': null,
|
||||
// 'material_name': '-',
|
||||
// 'work_time': '0',
|
||||
// 'real_qty': null,
|
||||
// 'realproducestart_date': '',
|
||||
// 'vehicle_qty': null,
|
||||
// 'vehicle_type': null,
|
||||
// 'vehicle_max_qty': null,
|
||||
// 'device_url': 'HLJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'HLJ13',
|
||||
// 'device_name': '混料机13',
|
||||
// 'device_model': '1',
|
||||
// 'device_status': null,
|
||||
// 'device_status_name': null,
|
||||
// 'material_name': '-',
|
||||
// 'work_time': '0',
|
||||
// 'real_qty': null,
|
||||
// 'realproducestart_date': '',
|
||||
// 'vehicle_qty': null,
|
||||
// 'vehicle_type': null,
|
||||
// 'vehicle_max_qty': null,
|
||||
// 'device_url': 'HLJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'HLJ14',
|
||||
// 'device_name': '混料机14',
|
||||
// 'device_model': '1',
|
||||
// 'device_status': null,
|
||||
// 'device_status_name': null,
|
||||
// 'material_name': '-',
|
||||
// 'work_time': '0',
|
||||
// 'real_qty': null,
|
||||
// 'realproducestart_date': '',
|
||||
// 'vehicle_qty': null,
|
||||
// 'vehicle_type': null,
|
||||
// 'vehicle_max_qty': null,
|
||||
// 'device_url': 'HLJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'HLJ15',
|
||||
// 'device_name': '混料机15',
|
||||
// 'device_model': '1',
|
||||
// 'device_status': null,
|
||||
// 'device_status_name': null,
|
||||
// 'material_name': '-',
|
||||
// 'work_time': '0',
|
||||
// 'real_qty': null,
|
||||
// 'realproducestart_date': '',
|
||||
// 'vehicle_qty': null,
|
||||
// 'vehicle_type': null,
|
||||
// 'vehicle_max_qty': null,
|
||||
// 'device_url': 'HLJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'HLJ16',
|
||||
// 'device_name': '混料机16',
|
||||
// 'device_model': '1',
|
||||
// 'device_status': null,
|
||||
// 'device_status_name': null,
|
||||
// 'material_name': '-',
|
||||
// 'work_time': '0',
|
||||
// 'real_qty': null,
|
||||
// 'realproducestart_date': '',
|
||||
// 'vehicle_qty': null,
|
||||
// 'vehicle_type': null,
|
||||
// 'vehicle_max_qty': null,
|
||||
// 'device_url': 'HLJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'HLJ01',
|
||||
// 'device_name': '混料机1',
|
||||
// 'device_model': '2',
|
||||
// 'device_status': null,
|
||||
// 'device_status_name': null,
|
||||
// 'material_name': '-',
|
||||
// 'work_time': '0',
|
||||
// 'real_qty': null,
|
||||
// 'realproducestart_date': '',
|
||||
// 'vehicle_qty': null,
|
||||
// 'vehicle_type': null,
|
||||
// 'vehicle_max_qty': null,
|
||||
// 'device_url': 'HLJ_S'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'HLJ02',
|
||||
// 'device_name': '混料机2',
|
||||
// 'device_model': '2',
|
||||
// 'device_status': null,
|
||||
// 'device_status_name': null,
|
||||
// 'material_name': '-',
|
||||
// 'work_time': '0',
|
||||
// 'real_qty': null,
|
||||
// 'realproducestart_date': '',
|
||||
// 'vehicle_qty': null,
|
||||
// 'vehicle_type': null,
|
||||
// 'vehicle_max_qty': null,
|
||||
// 'device_url': 'HLJ_S'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'HLJ03',
|
||||
// 'device_name': '混料机3',
|
||||
// 'device_model': '2',
|
||||
// 'device_status': null,
|
||||
// 'device_status_name': null,
|
||||
// 'material_name': '-',
|
||||
// 'work_time': '0',
|
||||
// 'real_qty': null,
|
||||
// 'realproducestart_date': '',
|
||||
// 'vehicle_qty': null,
|
||||
// 'vehicle_type': null,
|
||||
// 'vehicle_max_qty': null,
|
||||
// 'device_url': 'HLJ_S'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'HLJ04',
|
||||
// 'device_name': '混料机4',
|
||||
// 'device_model': '2',
|
||||
// 'device_status': null,
|
||||
// 'device_status_name': null,
|
||||
// 'material_name': '-',
|
||||
// 'work_time': '0',
|
||||
// 'real_qty': null,
|
||||
// 'realproducestart_date': '',
|
||||
// 'vehicle_qty': null,
|
||||
// 'vehicle_type': null,
|
||||
// 'vehicle_max_qty': null,
|
||||
// 'device_url': 'HLJ_S'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'YJ03',
|
||||
// 'device_name': '压机3',
|
||||
// 'device_model': '3',
|
||||
// 'device_status': null,
|
||||
// 'device_status_name': null,
|
||||
// 'material_name': '-',
|
||||
// 'work_time': '52',
|
||||
// 'real_qty': 0,
|
||||
// 'realproducestart_date': '2023-04-21 10:10:40',
|
||||
// 'vehicle_qty': null,
|
||||
// 'vehicle_type': null,
|
||||
// 'vehicle_max_qty': null,
|
||||
// 'device_url': 'YZJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'YJ04',
|
||||
// 'device_name': '压机4',
|
||||
// 'device_model': '3',
|
||||
// 'device_status': null,
|
||||
// 'device_status_name': null,
|
||||
// 'material_name': '-',
|
||||
// 'work_time': '75',
|
||||
// 'real_qty': 0,
|
||||
// 'realproducestart_date': '2023-04-20 10:43:55',
|
||||
// 'vehicle_qty': null,
|
||||
// 'vehicle_type': null,
|
||||
// 'vehicle_max_qty': null,
|
||||
// 'device_url': 'YZJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'YJ05',
|
||||
// 'device_name': '压机5',
|
||||
// 'device_model': '3',
|
||||
// 'device_status': null,
|
||||
// 'device_status_name': null,
|
||||
// 'material_name': '-',
|
||||
// 'work_time': '0',
|
||||
// 'real_qty': null,
|
||||
// 'realproducestart_date': '',
|
||||
// 'vehicle_qty': null,
|
||||
// 'vehicle_type': null,
|
||||
// 'vehicle_max_qty': null,
|
||||
// 'device_url': 'YZJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'YJ06',
|
||||
// 'device_name': '压机6',
|
||||
// 'device_model': '3',
|
||||
// 'device_status': null,
|
||||
// 'device_status_name': null,
|
||||
// 'material_name': '-',
|
||||
// 'work_time': '0',
|
||||
// 'real_qty': null,
|
||||
// 'realproducestart_date': '',
|
||||
// 'vehicle_qty': null,
|
||||
// 'vehicle_type': null,
|
||||
// 'vehicle_max_qty': null,
|
||||
// 'device_url': 'YZJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'YJ07',
|
||||
// 'device_name': '压机7',
|
||||
// 'device_model': '3',
|
||||
// 'device_status': null,
|
||||
// 'device_status_name': null,
|
||||
// 'material_name': '-',
|
||||
// 'work_time': '26',
|
||||
// 'real_qty': 0,
|
||||
// 'realproducestart_date': '2023-04-22 11:29:10',
|
||||
// 'vehicle_qty': null,
|
||||
// 'vehicle_type': null,
|
||||
// 'vehicle_max_qty': null,
|
||||
// 'device_url': 'YZJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'YJ08',
|
||||
// 'device_name': '压机8',
|
||||
// 'device_model': '3',
|
||||
// 'device_status': null,
|
||||
// 'device_status_name': null,
|
||||
// 'material_name': '-',
|
||||
// 'work_time': '0',
|
||||
// 'real_qty': null,
|
||||
// 'realproducestart_date': '',
|
||||
// 'vehicle_qty': null,
|
||||
// 'vehicle_type': null,
|
||||
// 'vehicle_max_qty': null,
|
||||
// 'device_url': 'YZJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'YJ09',
|
||||
// 'device_name': '压机9',
|
||||
// 'device_model': '3',
|
||||
// 'device_status': null,
|
||||
// 'device_status_name': null,
|
||||
// 'material_name': '-',
|
||||
// 'work_time': '0',
|
||||
// 'real_qty': null,
|
||||
// 'realproducestart_date': '',
|
||||
// 'vehicle_qty': null,
|
||||
// 'vehicle_type': null,
|
||||
// 'vehicle_max_qty': null,
|
||||
// 'device_url': 'YZJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'YJ10',
|
||||
// 'device_name': '压机10',
|
||||
// 'device_model': '3',
|
||||
// 'device_status': null,
|
||||
// 'device_status_name': null,
|
||||
// 'material_name': '-',
|
||||
// 'work_time': '0',
|
||||
// 'real_qty': null,
|
||||
// 'realproducestart_date': '',
|
||||
// 'vehicle_qty': null,
|
||||
// 'vehicle_type': null,
|
||||
// 'vehicle_max_qty': null,
|
||||
// 'device_url': 'YZJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'YJ01',
|
||||
// 'device_name': '压机1',
|
||||
// 'device_model': '4',
|
||||
// 'device_status': null,
|
||||
// 'device_status_name': null,
|
||||
// 'material_name': '-',
|
||||
// 'work_time': '144',
|
||||
// 'real_qty': 0,
|
||||
// 'realproducestart_date': '2023-04-17 14:18:58',
|
||||
// 'vehicle_qty': null,
|
||||
// 'vehicle_type': null,
|
||||
// 'vehicle_max_qty': null,
|
||||
// 'device_url': 'YZJ_S'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'YJ02',
|
||||
// 'device_name': '压机2',
|
||||
// 'device_model': '4',
|
||||
// 'device_status': null,
|
||||
// 'device_status_name': null,
|
||||
// 'material_name': '-',
|
||||
// 'work_time': '0',
|
||||
// 'real_qty': 0,
|
||||
// 'realproducestart_date': '',
|
||||
// 'vehicle_qty': null,
|
||||
// 'vehicle_type': null,
|
||||
// 'vehicle_max_qty': null,
|
||||
// 'device_url': 'YZJ_S'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'YJ02',
|
||||
// 'device_name': '压机2',
|
||||
// 'device_model': '4',
|
||||
// 'device_status': null,
|
||||
// 'device_status_name': null,
|
||||
// 'material_name': '-',
|
||||
// 'work_time': '120',
|
||||
// 'real_qty': 0,
|
||||
// 'realproducestart_date': '2023-04-18 13:34:36',
|
||||
// 'vehicle_qty': null,
|
||||
// 'vehicle_type': null,
|
||||
// 'vehicle_max_qty': null,
|
||||
// 'device_url': 'YZJ_S'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'FJCDJXS01',
|
||||
// 'device_name': '分拣拆垛机械手',
|
||||
// 'device_model': '5',
|
||||
// 'device_status': null,
|
||||
// 'device_status_name': null,
|
||||
// 'material_name': '-',
|
||||
// 'work_time': '0',
|
||||
// 'real_qty': null,
|
||||
// 'realproducestart_date': '',
|
||||
// 'vehicle_qty': null,
|
||||
// 'vehicle_type': null,
|
||||
// 'vehicle_max_qty': null,
|
||||
// 'device_url': 'FJJXS'
|
||||
// }
|
||||
// ]
|
||||
// }
|
||||
// return res
|
||||
// }
|
||||
export const findDeviceById = (id) => post('api/cockpit/findDeviceById', {
|
||||
id: id
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user