|  |  |  | 
|---|
|  |  |  | <template> | 
|---|
|  |  |  | <el-row> | 
|---|
|  |  |  | <el-row> | 
|---|
|  |  |  | <el-col :span="3"> | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <device-stacker v-for="stacker in Stackers" :key="stacker.deviceName" :Stacker="stacker"></device-stacker> | 
|---|
|  |  |  | </el-col> | 
|---|
|  |  |  | <el-col :span="21"> | 
|---|
|  |  |  | 
|---|
|  |  |  | onMounted(() => { | 
|---|
|  |  |  | eventBus.on('locationData', eventData => { | 
|---|
|  |  |  | console.log(eventData) | 
|---|
|  |  |  | if (eventData.deviceName === "陈化入库输送线"||eventData.deviceName === "陈化入库输送线") { | 
|---|
|  |  |  | if (eventData.deviceName === "陈化入库输送线" || eventData.deviceName === "陈化入库输送线") { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (devices.length <= 0) { | 
|---|
|  |  |  | devices.push({ deviceName: eventData.deviceName, data: eventData.data, childDeviceCode: eventData.childDeviceCode }); | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | eventBus.on('stackerData', eventData => { | 
|---|
|  |  |  | if (eventData.deviceName == "陈化1号堆垛机"||eventData.deviceName == "陈化2号堆垛机") { | 
|---|
|  |  |  | if (eventData.deviceName.indexOf("陈化") != -1) { | 
|---|
|  |  |  | if (Stackers.length == 0) { | 
|---|
|  |  |  | Stackers.push({ deviceName: eventData.deviceName, data: eventData.data }); | 
|---|
|  |  |  | } | 
|---|