gaosp
2024-02-07 784e6182d02076a508ba7c6086eeacdffadcd942
src/container/mapPreview/Map.vue
@@ -1,7 +1,7 @@
<!--
 * @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>
@@ -107,11 +107,11 @@
                }
                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
                            }
                            })
                        }) || []
                    })
                }
@@ -130,7 +130,7 @@
            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({