| | |
| | | <!-- |
| | | * @Date: 2024-01-05 23:47:53 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-02-03 00:01:58 |
| | | * @LastEditTime: 2024-02-05 17:11:25 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/mapPreview/Map.vue |
| | | --> |
| | | <template> |
| | |
| | | } |
| | | if(val) { |
| | | getRequest('machineList',{plantId: val}).then(res => { |
| | | this.plantDeviceList = res.list.map(item => { |
| | | return { |
| | | this.plantDeviceList = res.data.list.map(item => { |
| | | return Object.assign(item,{ |
| | | machineId: item.id, |
| | | machineName: item.machineName |
| | | } |
| | | }) |
| | | }) || [] |
| | | }) |
| | | } |
| | |
| | | if(this.move) return |
| | | let info = {} |
| | | if (v.id) { |
| | | info = this.plantDeviceList.find(item => item.id == v.id) |
| | | info = this.plantDeviceList.find(item => item.machineId == v.id) |
| | | } |
| | | window.localStorage.setItem('deviceInfo',JSON.stringify(info)) |
| | | this.$router.push({ |