@@ -9,7 +9,7 @@
/ >
< / el-select >
< el-row >
< div id = "container" className = "container" style = "min-height: 100%" / >
< div id = "container" className = "container" style = "min-height: 100%" / >
< / el-row >
<!-- 点击设备显示信息 -- >
< el-dialog
@@ -41,10 +41,10 @@
< el-dialog :title = "$t('monitor.click.device_setup')" :visible.sync = "dialogFormVisible" width = "35%" >
< el-form :model = "form" size = "small" >
< el-form-item :label = "$t('monitor.click.equipment_number')" prop = "device_code" label -width = " 120px " >
< el-input v-model = "form.device_code" :disabled="true" / >
< el-input v-model = "form.device_code" :disabled="true" / >
< / el-form-item >
< el-form-item :label = "$t('monitor.click.bar_code')" label -width = " 120px " >
< el-input v-model = "form.hand_barcode" :disabled="false" / >
< el-input v-model = "form.hand_barcode" :disabled="false" / >
< / el-form-item >
< el-form-item :label = "$t('monitor.click.request_flag')" prop = "requireSucess" label -width = " 120px " >
< el-radio-group v-model = "form.requireSucess" >
@@ -62,7 +62,7 @@
< el-dialog :title = "$t('monitor.click.device_setup')" :visible.sync = "dialogFormVisible3" width = "35%" >
< el-form :model = "form" size = "small" >
< el-form-item :label = "$t('monitor.click.equipment_number')" prop = "device_code" label -width = " 80px " >
< el-input v-model = "form.device_code" :disabled="true" / >
< el-input v-model = "form.device_code" :disabled="true" / >
< / el-form-item >
< el-form-item :label = "$t('monitor.click.device_status')" label -width = " 80px " >
< el-radio-group v-model = "form.hasGoodStatus" >
@@ -72,7 +72,7 @@
< / el-radio-group >
< / el-form-item >
< el-form-item :label = "$t('monitor.click.material_code')" prop = "material_type" label -width = " 80px " >
< el-input v-model = "form.material_type" / >
< el-input v-model = "form.material_type" / >
< / el-form-item >
< / el-form >
< div slot = "footer" class = "dialog-footer" >
@@ -85,7 +85,7 @@
< el-dialog :title = "$t('monitor.click.device_setup')" :visible.sync = "dialogFormVisible4" width = "35%" >
< el-form :model = "form" size = "small" >
< el-form-item :label = "$t('monitor.click.equipment_number')" prop = "device_code" label -width = " 120px " >
< el-input v-model = "form.device_code" :disabled="true" / >
< el-input v-model = "form.device_code" :disabled="true" / >
< / el-form-item >
< el-form-item :label = "$t('monitor.click.disabled_manipulator')" prop = "is_disable" label -width = " 120px " >
< el-radio-group v-model = "form.is_disable" >
@@ -109,7 +109,7 @@
< el-dialog :title = "$t('monitor.click.device_setup')" :visible.sync = "dialogFormVisible5" width = "35%" >
< el-form :model = "form" size = "small" >
< el-form-item :label = "$t('monitor.click.equipment_number')" prop = "device_code" label -width = " 120px " >
< el-input v-model = "form.device_code" :disabled="true" / >
< el-input v-model = "form.device_code" :disabled="true" / >
< / el-form-item >
< el-form-item :label = "$t('monitor.click.request_flag')" prop = "requireSucess" label -width = " 120px " >
< el-radio-group v-model = "form.requireSucess" >
@@ -127,10 +127,10 @@
< el-dialog :title = "$t('monitor.click.device_setup')" :visible.sync = "dialogFormVisible7" width = "35%" >
< el-form :model = "form" size = "small" >
< el-form-item :label = "$t('monitor.click.equipment_number')" prop = "device_code" label -width = " 120px " >
< el-input v-model = "form.device_code" :disabled="true" / >
< el-input v-model = "form.device_code" :disabled="true" / >
< / el-form-item >
< el-form-item :label = "$t('monitor.click.bar_code')" label -width = " 120px " >
< el-input v-model = "form.hand_barcode" :disabled="false" / >
< el-input v-model = "form.hand_barcode" :disabled="false" / >
< / el-form-item >
< el-form-item :label = "$t('monitor.click.request_flag')" prop = "requireSucess" label -width = " 120px " >
< el-radio-group v-model = "form.requireSucess" >
@@ -148,7 +148,7 @@
< el-dialog :title = "$t('monitor.click.device_setup')" :visible.sync = "dialogFormVisible6" width = "35%" >
< el-form :model = "form" size = "small" >
< el-form-item :label = "$t('monitor.click.equipment_number')" prop = "device_code" label -width = " 120px " >
< el-input v-model = "form.device_code" :disabled="true" / >
< el-input v-model = "form.device_code" :disabled="true" / >
< / el-form-item >
< el-form-item label = "申请指令标记" prop = "requireSucess" label -width = " 120px " >
< el-radio-group v-model = "form.requireSucess" >
@@ -173,11 +173,11 @@
< el-dialog :title = "$t('monitor.click.device_setup')" :visible.sync = "dialogFormVisible1" width = "35%" >
< el-form :model = "form" size = "small" >
< el-form-item :label = "$t('monitor.click.equipment_number')" prop = "device_code" label -width = " 80px " >
< el-input v-model = "form.device_code" :disabled="true" / >
< el-input v-model = "form.device_code" :disabled="true" / >
< / el-form-item >
< el-form-item :label = "$t('monitor.click.bar_code')" prop = "device_code" label -width = " 80px " >
< el-input v-model = "form.barcode" :disabled="false" / >
< el-input v-model = "form.barcode" :disabled="false" / >
< / el-form-item >
< / el-form >
< div slot = "footer" class = "dialog-footer" >
@@ -190,7 +190,7 @@
< el-dialog :title = "$t('monitor.click.device_setup')" :visible.sync = "dialogFormVisible8" width = "35%" >
< el-form :model = "form" size = "small" >
< el-form-item :label = "$t('monitor.click.equipment_number')" prop = "device_code" label -width = " 120px " >
< el-input v-model = "form.device_code" :disabled="true" / >
< el-input v-model = "form.device_code" :disabled="true" / >
< / el-form-item >
< el-form-item :label = "$t('monitor.click.job_command')" prop = "toCommand" label -width = " 120px " >
< el-radio-group v-model = "form.toCommand" >
@@ -200,13 +200,13 @@
< / el-radio-group >
< / el-form-item >
< el-form-item :label = "$t('monitor.click.keep_out_of_storage')" prop = "prohibitInWarehouse" label -width = " 120px " >
< el-switch v-model = "form.prohibitInWarehouse" / >
< el-switch v-model = "form.prohibitInWarehouse" / >
< / el-form-item >
< el-form-item :label = "$t('monitor.click.no_release')" prop = "prohibitOutWarehouse" label -width = " 120px " >
< el-switch v-model = "form.prohibitOutWarehouse" / >
< el-switch v-model = "form.prohibitOutWarehouse" / >
< / el-form-item >
< el-form-item :label = "$t('monitor.click.stop_task')" prop = "stopReceiveTask" label -width = " 120px " >
< el-switch v-model = "form.stopReceiveTask" / >
< el-switch v-model = "form.stopReceiveTask" / >
< / el-form-item >
< el-form-item :label = "$t('monitor.click.requireSucess')" prop = "applySucess" label -width = " 120px " >
< el-radio-group v-model = "form.requireSucess" >
@@ -223,13 +223,13 @@
< el-dialog :title = "$t('monitor.click.device_setup')" :visible.sync = "dialogFormVisible10" width = "35%" >
< el-form :model = "form" size = "small" >
< el-form-item :label = "$t('monitor.click.equipment_number')" prop = "device_code" label -width = " 120px " >
< el-input v-model = "form.device_code" :disabled="true" / >
< el-input v-model = "form.device_code" :disabled="true" / >
< / el-form-item >
< el-form-item :label = "$t('monitor.click.bar_code')" label -width = " 120px " >
< el-input v-model = "form.hand_barcode" :disabled="false" / >
< el-input v-model = "form.hand_barcode" :disabled="false" / >
< / el-form-item >
< el-form-item :label = "$t('monitor.click.material_code')" label -width = " 120px " >
< el-input v-model = "form.hand_material_barcode" :disabled="false" / >
< el-input v-model = "form.hand_material_barcode" :disabled="false" / >
< / el-form-item >
< el-form-item :label = "$t('monitor.click.request_flag')" prop = "requireSucess" label -width = " 120px " >
< el-radio-group v-model = "form.requireSucess" >
@@ -250,13 +250,13 @@
import crudStage from '@/api/logicflow/stage'
import bgMonitor from '@/assets/images/bg_monitor.jpg'
import deviceCrud from '@/api/acs/device/device'
import { getDeviceByCodes } from '@/api/acs/device/deviceStageMonitor'
import { getDeviceByCodes } from '@/api/acs/device/deviceStageMonitor'
import '@logicflow/core/dist/style/index.css'
import '@logicflow/extension/lib/style/index.css'
import { LogicFlow } from '@logicflow/core'
import { registerCustomElement } from '@/views/system/logicflow/editor/components/node'
import { LogicFlow } from '@logicflow/core'
import { registerCustomElement } from '@/views/system/logicflow/editor/components/node'
import i18n from '@/i18n'
import { selectStageList } from '@/api/acs/stage/stage'
import { selectStageList } from '@/api/acs/stage/stage'
let data = { }
let lf = ''
@@ -351,10 +351,10 @@ export default {
} )
lf . setTheme (
{
baseEdge : { strokeWidth : 1 } ,
baseNode : { strokeWidth : 1 } ,
nodeText : { overflowMode : 'autoWrap' , lineHeight : 1.5 } ,
edgeText : { overflowMode : 'autoWrap' , lineHeight : 1.5 }
baseEdge : { strokeWidth : 1 } ,
baseNode : { strokeWidth : 1 } ,
nodeText : { overflowMode : 'autoWrap' , lineHeight : 1.5 } ,
edgeText : { overflowMode : 'autoWrap' , lineHeight : 1.5 }
}
)
// 注册自定义元素
@@ -386,6 +386,7 @@ export default {
// 开始渲染
lf . render ( data )
this . initStageData ( )
this . changeStage ( this . stage _code )
} ,
getStages ( ) {
selectStageList ( ) . then ( data => {
@@ -515,9 +516,9 @@ export default {
tempDeviceName = item . data . in _device _name
}
this . arr = [
{ name : i18n . t ( 'monitor.click.equipment_number' ) , value : item . device _code } ,
{ name : i18n . t ( 'monitor.click.equipment_number' ) , value : item . device _code } ,
// { name: tempDeviceName, value: item.device_name }
{ name : i18n . t ( 'monitor.click.device_name' ) , value : tempDeviceName }
{ name : i18n . t ( 'monitor.click.device_name' ) , value : tempDeviceName }
// { name: i18n.t('monitor.click.device_name'), value: item.device_name }
]
const data = item . data
@@ -526,215 +527,215 @@ export default {
continue
}
if ( val === 'message' && data . isError === true ) {
const obj = { name : i18n . t ( 'monitor.click.device_information' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.device_information' ) , value : data [ val ] }
this . arr . push ( obj )
}
if ( val === 'message' && data . isError === 'false' ) {
const obj = { name : i18n . t ( 'monitor.click.exception_message' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.exception_message' ) , value : data [ val ] }
this . arr . push ( obj )
}
if ( val === 'move' ) {
const obj = { name : i18n . t ( 'monitor.click.photoelectric_signal' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.photoelectric_signal' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'mode' ) {
const obj = { name : i18n . t ( 'monitor.click.mode' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.mode' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'error' ) {
const obj = { name : i18n . t ( 'monitor.click.alarm' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.alarm' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'ip' ) {
const obj = { name : 'IP' , value : data [ val ] }
const obj = { name : 'IP' , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'number' ) {
const obj = { name : i18n . t ( 'monitor.click.pallet_quantity' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.pallet_quantity' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'inst_message' ) {
const obj = { name : i18n . t ( 'monitor.click.instruction_information' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.instruction_information' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'message' ) {
const obj = { name : i18n . t ( 'monitor.click.note_information' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.note_information' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'inst_message' ) {
const obj = { name : i18n . t ( 'monitor.click.current_instruction_message' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.current_instruction_message' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'last_inst_message' ) {
const obj = { name : i18n . t ( 'monitor.click.last_instruction_message' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.last_instruction_message' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'container_type' ) {
const obj = { name : '托盘类型' , value : data [ val ] }
const obj = { name : '托盘类型' , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'barcode' ) {
const obj = { name : i18n . t ( 'monitor.click.barcode' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.barcode' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'barcode_length' ) {
const obj = { name : i18n . t ( 'monitor.click.barcode_length' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.barcode_length' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'last_container' ) {
const obj = { name : i18n . t ( 'monitor.click.last_container' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.last_container' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'instruction_code' ) {
const obj = { name : i18n . t ( 'monitor.click.current_instruction_message' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.current_instruction_message' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'task_code' ) {
const obj = { name : i18n . t ( 'monitor.click.task_number' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.task_number' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'last_instruction_code' ) {
const obj = { name : i18n . t ( 'monitor.click.last_instruction_message' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.last_instruction_message' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'action' ) {
const obj = { name : i18n . t ( 'monitor.click.action_signal' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.action_signal' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'io_action' ) {
const obj = { name : i18n . t ( 'monitor.click.clearance_signal' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.clearance_signal' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'material' ) {
const obj = { name : i18n . t ( 'monitor.click.materiel' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.materiel' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'batch' ) {
const obj = { name : i18n . t ( 'monitor.click.lot' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.lot' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'requestSucess' ) {
const obj = { name : i18n . t ( 'monitor.click.request_task' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.request_task' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'applySucess' ) {
const obj = { name : i18n . t ( 'monitor.click.request_order' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.request_order' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'requireApplyLabelingSuccess' ) {
const obj = { name : i18n . t ( 'monitor.click.apply_labeling' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.apply_labeling' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'requireApplyLaStrangulationSuccess' ) {
const obj = { name : i18n . t ( 'monitor.click.apply_for_bundling' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.apply_for_bundling' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'status' ) {
const obj = { name : i18n . t ( 'monitor.click.device_status' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.device_status' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'weight' ) {
const obj = { name : i18n . t ( 'monitor.click.weight' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.weight' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'move_1' ) {
const obj = { name : i18n . t ( 'monitor.click.front_station_photoelectric_signal' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.front_station_photoelectric_signal' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'open' ) {
const obj = { name : i18n . t ( 'monitor.click.open' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.open' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'close' ) {
const obj = { name : i18n . t ( 'monitor.click.close' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.close' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'phase' ) {
const obj = { name : i18n . t ( 'monitor.click.AGV_phase' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.AGV_phase' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'phase_name' ) {
const obj = { name : i18n . t ( 'monitor.click.description_of_the_AGV_phase' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.description_of_the_AGV_phase' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'option' ) {
const obj = { name : i18n . t ( 'monitor.click.AGV_action' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.AGV_action' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'agv_power' ) {
const obj = { name : i18n . t ( 'monitor.click.AGV_power' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.AGV_power' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'move_2' ) {
const obj = { name : i18n . t ( 'monitor.click.station_photoelectric_signal' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.station_photoelectric_signal' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'action_1' ) {
const obj = { name : i18n . t ( 'monitor.click.front_station_action_signal' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.front_station_action_signal' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'action_2' ) {
const obj = { name : i18n . t ( 'monitor.click.back_station_action_signal' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.back_station_action_signal' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'walk_y' ) {
const obj = { name : i18n . t ( 'monitor.click.walk_y' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.walk_y' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'task1' ) {
const obj = { name : i18n . t ( 'monitor.click.previous_station_task' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.previous_station_task' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'task2' ) {
const obj = { name : i18n . t ( 'monitor.click.back_station_task' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.back_station_task' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'task' ) {
const obj = { name : i18n . t ( 'monitor.click.task_number' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.task_number' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'is_disable' ) {
const obj = { name : i18n . t ( 'monitor.click.disable' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.disable' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'temperature' ) {
const obj = { name : i18n . t ( 'monitor.click.current_temperature' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.current_temperature' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'finish' ) {
const obj = { name : i18n . t ( 'monitor.click.oven_finish' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.oven_finish' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'countdown_house' ) {
const obj = { name : i18n . t ( 'monitor.click.house' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.house' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'countdown_min' ) {
const obj = { name : i18n . t ( 'monitor.click.minutes' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.minutes' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'countdown_sec' ) {
const obj = { name : i18n . t ( 'monitor.click.seconds' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.seconds' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'door' ) {
const obj = { name : i18n . t ( 'monitor.click.gate_state' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.gate_state' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'notCreateTaskMessage' ) {
const obj = { name : i18n . t ( 'monitor.click.task_creation_failure' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.task_creation_failure' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'notCreateInstMessage' ) {
const obj = { name : i18n . t ( 'monitor.click.failed_to_create_instruction' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.failed_to_create_instruction' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'feedMessage' ) {
const obj = { name : i18n . t ( 'monitor.click.no_electrical_signal_feedback_cause' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.no_electrical_signal_feedback_cause' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'requireSucess' ) {
const obj = { name : i18n . t ( 'monitor.click.request_success_flag' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.request_success_flag' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'applySucess' ) {
const obj = { name : 'applySucess' , value : data [ val ] }
const obj = { name : 'applySucess' , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'out_finish' ) {
const obj = { name : i18n . t ( 'monitor.click.delivery_completed' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.delivery_completed' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'inventory_qty' ) {
const obj = { name : i18n . t ( 'monitor.click.inventory_quantity' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.inventory_quantity' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'hand_barcode' ) {
const obj = { name : 'hand_barcode' , value : data [ val ] }
const obj = { name : 'hand_barcode' , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'x' ) {
const obj = { name : 'X' , value : data [ val ] }
const obj = { name : 'X' , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'y' ) {
const obj = { name : 'Y' , value : data [ val ] }
const obj = { name : 'Y' , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'angle' ) {
const obj = { name : i18n . t ( 'monitor.click.angle' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.angle' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'electricity' ) {
const obj = { name : i18n . t ( 'monitor.click.electric_quantity' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.electric_quantity' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'status_name' ) {
const obj = { name : i18n . t ( 'monitor.click.status' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.status' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'fault' ) {
const obj = { name : i18n . t ( 'monitor.click.abnormal' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.abnormal' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'map_id' ) {
const obj = { name : i18n . t ( 'monitor.click.floor' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.floor' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'power' ) {
const obj = { name : i18n . t ( 'monitor.click.electric_quantity' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.electric_quantity' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'pallet' ) {
const obj = { name : i18n . t ( 'monitor.click.tray' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.tray' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'load' ) {
const obj = { name : i18n . t ( 'monitor.click.loading_or_not' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.loading_or_not' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'alarm' ) {
const obj = { name : i18n . t ( 'monitor.click.alarm' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.alarm' ) , value : data [ val ] }
this . arr . push ( obj )
} else if ( val === 'task_id' ) {
const obj = { name : i18n . t ( 'monitor.click.task_number' ) , value : data [ val ] }
const obj = { name : i18n . t ( 'monitor.click.task_number' ) , value : data [ val ] }
this . arr . push ( obj )
}
}
@@ -743,7 +744,7 @@ export default {
} ,
initStatus ( ) { // 初始化所有节点的设备信息, 通过节点id对应设备编号
let resion = { }
resion = lf . getGraphData ( ) . nodes . map ( item => ( { id : item . id , device _code : item . properties . device } ) )
resion = lf . getGraphData ( ) . nodes . map ( item => ( { id : item . id , device _code : item . properties . device } ) )
getDeviceByCodes ( resion ) . then ( res => {
console . log ( res )
this . allDeviceMsg = res // 拿到所有节点的设备数据
@@ -769,7 +770,7 @@ export default {
}
}
// 设置动态实时显示设备信息
const { nodes } = lf . getSelectElements ( ) // 获取选中的节点
const { nodes } = lf . getSelectElements ( ) // 获取选中的节点
// console.log(nodes)
if ( nodes . length === 1 ) { // 因为是定时器,没有选中则不用实时更新显示数据
this . moveShow ( nodes [ 0 ] ) // 监控模式下不可能托选,因此就只有一个数据
@@ -778,7 +779,7 @@ export default {
} ,
dialogSave ( ) {
deviceCrud . changeDeviceStatus ( this . form ) . then ( res => {
this . $notify ( { title : '操作成功' , message : '' , type : 'success' } )
this . $notify ( { title : '操作成功' , message : '' , type : 'success' } )
this . dialogFormVisible = false
this . dialogFormVisible3 = false
this . dialogFormVisible4 = false