var vms = Vue.component("amplify-sbqd", { template: `
`, props: { }, data() { return { show:false, //设备清单 deviceNum:0, onlineNum:0, warnNum:0, offlineNum:0, } }, mounted(){ }, methods: { openAmplify(){ this.show = true this.getDeviceInfo() }, closeAmplify(){ this.show = false }, closeAmplifyAll(e){ if(e.target.className == 'amplify-fixed'){ this.show = false } }, //设备清单 getDeviceInfo() { var projectId = JSON.parse(localStorage.getItem("data")).id if(projectId == 98 || projectId == 132) { this.deviceNum = 1, this.onlineNum = 1, this.warnNum = 0, this.offlineNum = 0 this.showDevice = true; this.selectData = [{text:'扬尘监测设备#1',id:1},] } else { this.deviceNum = 0, this.onlineNum = 0, this.warnNum = 0, this.offlineNum = 0 this.showDevice = false this.selectData = [{text:'暂无数据',id:1}] } }, }, watch:{ }, })