| | |
| | | <script> |
| | | import EqumentDetaiModel from './EqumentDetaiModel' |
| | | import {getFileAccessHttpUrl} from '@/api/manage'; |
| | | import { |
| | | getAction |
| | | } from '@/api/manage' |
| | | |
| | | export default { |
| | | name: 'EquipmentLayout', |
| | |
| | | } |
| | | return getFileAccessHttpUrl(img) |
| | | }, |
| | | |
| | | getStatusImgUrl(imgStaus){ |
| | | if(imgStaus == 1){ |
| | | return require("../../../../../assets/yellow.png"); |
| | |
| | | return require("../../../../../assets/gray.png"); |
| | | } |
| | | }, |
| | | getBackgroundUrl(imgurl){ |
| | | return require("../../../../../assets/"+imgurl+".gif"); |
| | | }, |
| | | |
| | | openDetail(item) { |
| | | if(item.oporation == 0){ |
| | | // this.$message.warn("设备处于关机状态!"); |
| | | this.$notification.warning({ |
| | | message:'消息', |
| | | description:"设备处于关机状态!" |
| | |
| | | console.log(item); |
| | | this.$refs.equmentDetaiModel.initData(item.id); |
| | | this.$refs.equmentDetaiModel.timerModel(item.id); |
| | | // this.equipMessageTimer = setInterval(() => { |
| | | // setTimeout( this.$refs.equmentDetaiModel.initData(item.equipmentId),0) |
| | | // },1000*10) |
| | | } |
| | | }, |
| | | beforeDestroy(){ |
| | | // clearInterval(this.equipMessageTimer); |
| | | // this.equipMessageTimer = null |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |