| | |
| | | }); |
| | | }); |
| | | }, |
| | | stetDetails(d, imgdata) { |
| | | stetDetails(c, imgdata) { |
| | | this.name = "无数据" && this.a.deviceName; |
| | | //设备状态 |
| | | // [grey,green,red][ |
| | | // onlineStatus = 0, |
| | | // onlineStatus = 1, |
| | | // state!= "", |
| | | // jtype != 2 |
| | | // ] |
| | | var states, |
| | | d = this.a.dtype; |
| | | if (d == 0) { |
| | |
| | | } else if (d == 2) { |
| | | states = "预警"; |
| | | } |
| | | |
| | | // if (s != "") { |
| | | // states = "故障"; |
| | | // } else { |
| | | // if (j != 1) { |
| | | // if (o == 1) { |
| | | // states = "正常"; |
| | | // } else { |
| | | // states = "掉线"; |
| | | // } |
| | | // } else { |
| | | // states = "预警"; |
| | | // } |
| | | // } |
| | | // console.log(o, 1000); |
| | | // console.log(s, 1000); |
| | | // console.log(j, 1000); |
| | | |
| | | // console.log(states, 1000); |
| | | this.state = states; |
| | | |
| | | this.evaluate = "空气质量"; |
| | |
| | | installation: this.a.stime, // 安装时间 |
| | | heartbeat: this.a.heartbeat, // 心跳时间 |
| | | }; |
| | | this.form = d; |
| | | this.form = c; |
| | | }, |
| | | getdataG() { |
| | | var dataG = { |
| | |
| | | this.startEcharts01(); |
| | | }, |
| | | getMap() { |
| | | window.frames[0].init("DetailMap", { |
| | | window.frames[1].init("DetailMap", { |
| | | x: this.a.jd, |
| | | y: this.a.wd, |
| | | }); |
| | |
| | | // this.doEvents(); |
| | | // var timel = setTimeout(() => { |
| | | this.$refs.detailMap.onload = () => { |
| | | // window.frames[0].init("DetailMap", { |
| | | // window.frames[1].init("DetailMap", { |
| | | // x: this.a.jd, |
| | | // y: this.a.wd, |
| | | // }); |
| | | if (window.frames[0].init) { |
| | | if (window.frames[1].init) { |
| | | this.getMap(); |
| | | } else { |
| | | // this.re(); |
| | | console.log(`没有找到到window.frames[0].init`); |
| | | console.log(`没有找到到window.frames[1].init`); |
| | | } |
| | | }; |
| | | }, |
| | |
| | | }; |
| | | </script> |
| | | <style lang="scss" > |
| | | video::-webkit-media-controls-timeline { |
| | | display: none; |
| | | } |
| | | #Lour { |
| | | width: 100%; |
| | | font-size: 14px; |