| | |
| | | <!-- |
| | | * @Date: 2024-01-13 20:46:33 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-01-16 01:08:39 |
| | | * @LastEditTime: 2024-01-17 23:06:46 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/workshop/device.vue |
| | | --> |
| | | <template> |
| | |
| | | return this.info.cycleCount || 0 |
| | | }, |
| | | machineName () { |
| | | let machineName = '' |
| | | try { |
| | | let arr = [...this.deviceList,...this.plantDeviceList] |
| | | return arr.find(item => item.machineId=== this.id).machineName |
| | | } catch (error) { |
| | | return this.id |
| | | machineName = this.deviceList.find(item => item.machineId=== this.id).machineName |
| | | } catch (error) {console.error(error)} |
| | | try { |
| | | machineName = this.plantDeviceList.find(item => item.machineId=== this.id).machineName |
| | | } catch (error) {console.error(error)} |
| | | if (machineName) { |
| | | return machineName |
| | | } |
| | | |
| | | return '' |
| | | } |
| | | }, |
| | | methods: { |