设备监控
This commit is contained in:
@@ -6,363 +6,5 @@ export const deviceMonitor = () => post('api/cockpit/deviceMonitor', {
|
||||
export const findDeviceById = (id) => post('api/cockpit/findDeviceById', {
|
||||
id: id
|
||||
})
|
||||
// export const deviceMonitor = () => {
|
||||
// let res = {
|
||||
// 'result': [
|
||||
// {
|
||||
// 'device_code': 'HLJ01',
|
||||
// 'device_name': '混料机1',
|
||||
// 'device_model': '1',
|
||||
// 'device_status': '1',
|
||||
// 'material_name': '',
|
||||
// 'work_time': '3.5',
|
||||
// 'device_url': 'HLJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'HLJ02',
|
||||
// 'device_name': '混料机2',
|
||||
// 'device_model': '1',
|
||||
// 'device_status': '1',
|
||||
// 'material_name': '',
|
||||
// 'work_time': '3.5',
|
||||
// 'device_url': 'HLJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'HLJ03',
|
||||
// 'device_name': '混料机3',
|
||||
// 'device_model': '1',
|
||||
// 'device_status': '1',
|
||||
// 'material_name': '',
|
||||
// 'work_time': '3.5',
|
||||
// 'device_url': 'HLJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'HLJ04',
|
||||
// 'device_name': '混料机4',
|
||||
// 'device_model': '1',
|
||||
// 'device_status': '1',
|
||||
// 'material_name': '',
|
||||
// 'work_time': '3.5',
|
||||
// 'device_url': 'HLJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'HLJ05',
|
||||
// 'device_name': '混料机5',
|
||||
// 'device_model': '1',
|
||||
// 'device_status': '1',
|
||||
// 'material_name': '',
|
||||
// 'work_time': '3.5',
|
||||
// 'device_url': 'HLJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'HLJ06',
|
||||
// 'device_name': '混料机6',
|
||||
// 'device_model': '1',
|
||||
// 'device_status': '1',
|
||||
// 'material_name': '',
|
||||
// 'work_time': '3.5',
|
||||
// 'device_url': 'HLJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'HLJ07',
|
||||
// 'device_name': '混料机7',
|
||||
// 'device_model': '1',
|
||||
// 'device_status': '1',
|
||||
// 'material_name': '',
|
||||
// 'work_time': '3.5',
|
||||
// 'device_url': 'HLJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'HLJ08',
|
||||
// 'device_name': '混料机8',
|
||||
// 'device_model': '1',
|
||||
// 'device_status': '1',
|
||||
// 'material_name': '',
|
||||
// 'work_time': '3.5',
|
||||
// 'device_url': 'HLJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'HLJ09',
|
||||
// 'device_name': '混料机9',
|
||||
// 'device_model': '1',
|
||||
// 'device_status': '1',
|
||||
// 'material_name': '',
|
||||
// 'work_time': '3.5',
|
||||
// 'device_url': 'HLJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'HLJ10',
|
||||
// 'device_name': '混料机10',
|
||||
// 'device_model': '1',
|
||||
// 'device_status': '1',
|
||||
// 'material_name': '',
|
||||
// 'work_time': '3.5',
|
||||
// 'device_url': 'HLJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'HLJ11',
|
||||
// 'device_name': '混料机11',
|
||||
// 'device_model': '1',
|
||||
// 'device_status': '1',
|
||||
// 'material_name': '',
|
||||
// 'work_time': '3.5',
|
||||
// 'device_url': 'HLJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'HLJ12',
|
||||
// 'device_name': '混料机12',
|
||||
// 'device_model': '1',
|
||||
// 'device_status': '1',
|
||||
// 'material_name': '',
|
||||
// 'work_time': '3.5',
|
||||
// 'device_url': 'HLJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'MDJXS01',
|
||||
// 'device_name': '码垛机械手1',
|
||||
// 'device_model': '10',
|
||||
// 'device_status': '1',
|
||||
// 'material_name': '',
|
||||
// 'work_time': '3.5',
|
||||
// 'device_url': 'MDJXS'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'MDJXS02',
|
||||
// 'device_name': '码垛机械手2',
|
||||
// 'device_model': '10',
|
||||
// 'device_status': '1',
|
||||
// 'material_name': '',
|
||||
// 'work_time': '3.5',
|
||||
// 'device_url': 'MDJXS'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'MDJXS09',
|
||||
// 'device_name': '码垛机械手9',
|
||||
// 'device_model': '10',
|
||||
// 'device_status': '1',
|
||||
// 'material_name': '木质花纹2cm',
|
||||
// 'work_time': '3.5',
|
||||
// 'real_qty': 0,
|
||||
// 'device_url': 'MDJXS'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'RGV',
|
||||
// 'device_name': 'RGV',
|
||||
// 'device_model': '11',
|
||||
// 'device_status': '1',
|
||||
// 'device_status_name': '空车位无车,满车位有车',
|
||||
// 'material_name': '',
|
||||
// 'work_time': '3.5',
|
||||
// 'device_url': 'RGV'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'HLJ13',
|
||||
// 'device_name': '混料机13',
|
||||
// 'device_model': '2',
|
||||
// 'device_status': '1',
|
||||
// 'material_name': '',
|
||||
// 'work_time': '3.5',
|
||||
// 'device_url': 'HLJ_S'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'HLJ14',
|
||||
// 'device_name': '混料机14',
|
||||
// 'device_model': '2',
|
||||
// 'device_status': '1',
|
||||
// 'material_name': '',
|
||||
// 'work_time': '3.5',
|
||||
// 'device_url': 'HLJ_S'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'HLJ15',
|
||||
// 'device_name': '混料机15',
|
||||
// 'device_model': '2',
|
||||
// 'device_status': '1',
|
||||
// 'material_name': '',
|
||||
// 'work_time': '3.5',
|
||||
// 'device_url': 'HLJ_S'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'HLJ16',
|
||||
// 'device_name': '混料机16',
|
||||
// 'device_model': '2',
|
||||
// 'device_status': '1',
|
||||
// 'material_name': '',
|
||||
// 'work_time': '3.5',
|
||||
// 'device_url': 'HLJ_S'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'YZJ01',
|
||||
// 'device_name': '压制机1',
|
||||
// 'device_model': '3',
|
||||
// 'device_status': '1',
|
||||
// 'material_name': '木质花纹2cm',
|
||||
// 'work_time': '3.5',
|
||||
// 'real_qty': 0,
|
||||
// 'device_url': 'YZJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'YZJ02',
|
||||
// 'device_name': '压制机2',
|
||||
// 'device_model': '3',
|
||||
// 'device_status': '1',
|
||||
// 'material_name': '',
|
||||
// 'work_time': '3.5',
|
||||
// 'device_url': 'YZJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'YZJ03',
|
||||
// 'device_name': '压制机3',
|
||||
// 'device_model': '3',
|
||||
// 'device_status': '1',
|
||||
// 'material_name': '',
|
||||
// 'work_time': '3.5',
|
||||
// 'device_url': 'YZJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'YZJ04',
|
||||
// 'device_name': '压制机4',
|
||||
// 'device_model': '3',
|
||||
// 'device_status': '1',
|
||||
// 'material_name': '',
|
||||
// 'work_time': '3.5',
|
||||
// 'device_url': 'YZJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'YZJ05',
|
||||
// 'device_name': '压制机5',
|
||||
// 'device_model': '3',
|
||||
// 'device_status': '1',
|
||||
// 'material_name': '',
|
||||
// 'work_time': '3.5',
|
||||
// 'device_url': 'YZJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'YZJ06',
|
||||
// 'device_name': '压制机6',
|
||||
// 'device_model': '3',
|
||||
// 'device_status': '1',
|
||||
// 'material_name': '',
|
||||
// 'work_time': '3.5',
|
||||
// 'device_url': 'YZJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'YZJ07',
|
||||
// 'device_name': '压制机7',
|
||||
// 'device_model': '3',
|
||||
// 'device_status': '1',
|
||||
// 'material_name': '',
|
||||
// 'work_time': '3.5',
|
||||
// 'device_url': 'YZJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'YZJ08',
|
||||
// 'device_name': '压制机8',
|
||||
// 'device_model': '3',
|
||||
// 'device_status': '1',
|
||||
// 'material_name': '',
|
||||
// 'work_time': '3.5',
|
||||
// 'device_url': 'YZJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'YZJ09',
|
||||
// 'device_name': '压制机9',
|
||||
// 'device_model': '4',
|
||||
// 'device_status': '1',
|
||||
// 'material_name': '木质花纹2cm',
|
||||
// 'work_time': '3.5',
|
||||
// 'real_qty': 0,
|
||||
// 'device_url': 'YZJ_S'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'YZJ10',
|
||||
// 'device_name': '压制机10',
|
||||
// 'device_model': '4',
|
||||
// 'device_status': '1',
|
||||
// 'material_name': '',
|
||||
// 'work_time': '3.5',
|
||||
// 'device_url': 'YZJ_S'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'FJCDJXS',
|
||||
// 'device_name': '分拣拆垛机械手',
|
||||
// 'device_model': '5',
|
||||
// 'device_status': '1',
|
||||
// 'material_name': '',
|
||||
// 'work_time': '3.5',
|
||||
// 'device_url': 'FJJXS'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'FJMDJXS',
|
||||
// 'device_name': '分拣码垛机械手',
|
||||
// 'device_model': '5',
|
||||
// 'device_status': '1',
|
||||
// 'material_name': '',
|
||||
// 'work_time': '3.5',
|
||||
// 'device_url': 'FJJXS'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'BZX',
|
||||
// 'device_name': '包装线',
|
||||
// 'device_model': '6',
|
||||
// 'device_status': '1',
|
||||
// 'material_name': '',
|
||||
// 'work_time': '3.5',
|
||||
// 'device_url': 'BZX'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'CPX01',
|
||||
// 'device_name': '拆盘线01',
|
||||
// 'device_model': '6',
|
||||
// 'device_status': '1',
|
||||
// 'material_name': '',
|
||||
// 'work_time': '3.5',
|
||||
// 'device_url': 'CPX'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'CPX02',
|
||||
// 'device_name': '拆盘线02',
|
||||
// 'device_model': '6',
|
||||
// 'device_status': '1',
|
||||
// 'material_name': '',
|
||||
// 'work_time': '3.5',
|
||||
// 'device_url': 'CPX'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'KILN',
|
||||
// 'device_name': '窑设备',
|
||||
// 'device_model': '7',
|
||||
// 'device_status': '1',
|
||||
// 'material_name': '',
|
||||
// 'work_time': '3.5',
|
||||
// 'vehicle_qty': 15,
|
||||
// 'vehicle_max_qty': 20,
|
||||
// 'device_url': 'YAO',
|
||||
// 'device_status_name': 'aa',
|
||||
// 'vehicle_type': 'dd'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'DPJ',
|
||||
// 'device_name': '叠盘机',
|
||||
// 'device_model': '8',
|
||||
// 'device_status': '1',
|
||||
// 'material_name': '',
|
||||
// 'work_time': '3.5',
|
||||
// 'device_url': 'DPJ'
|
||||
// },
|
||||
// {
|
||||
// 'device_code': 'CPJ',
|
||||
// 'device_name': '拆盘机',
|
||||
// 'device_model': '9',
|
||||
// 'device_status': '1',
|
||||
// 'material_name': '',
|
||||
// 'work_time': '3.5',
|
||||
// 'device_url': 'CPJ'
|
||||
// }
|
||||
// ]
|
||||
// }
|
||||
// return res
|
||||
// }
|
||||
|
||||
// 车间情况
|
||||
export const workshopCondition = () => post('api/cockpit/workshopCondition', {})
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<t-header index='3'></t-header>
|
||||
<div class="content">
|
||||
<div class="item_tr clearfix">
|
||||
<div class="item_block fl" v-for="e in deviceDatas" :key="e.device_code">
|
||||
<div class="item_block fl" v-for="(e, i) in deviceDatas" :key="i">
|
||||
<div class="item_inner" @click.stop="getInfo(e)">
|
||||
<div class="item_img">
|
||||
<img v-if="e.device_url !== ''" :src="require('../assets/images/devmoni/' + e.device_url + '.jpg')" :alt="e.device_name">
|
||||
|
||||
Reference in New Issue
Block a user