Commit ffc7b97c by 李君

优化

1 parent 48ce43b9
...@@ -190,12 +190,14 @@ ...@@ -190,12 +190,14 @@
deviceChange(val){ deviceChange(val){
this.deviceList.forEach(item=>{ this.deviceList.forEach(item=>{
if(item.serialnum==val){ if(item.serialnum==val){
console.log(item)
this.deviceObj=={...item} this.deviceObj=={...item}
this.editChannelImg = new Image(); this.editChannelImg = new Image();
this.editChannelImg.src =this.deviceObj.picUrl this.editChannelImg.src =item.picUrl
this.editChannelImg.onload = () => { this.editChannelImg.onload = () => {
this.drawCirlceDevice(); this.drawCirlceDevice();
}; };
this.searchFun()
} }
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!