| | |
| | | that.baseUrl = '' |
| | | that.baseLedId = '' |
| | | } |
| | | this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePort + this.baseUrl |
| | | this.getUrl() |
| | | }, |
| | | onReady() { |
| | | // 获得初始数据 |
| | | setTimeout(() => { |
| | | setInterval(() => { |
| | | this.initlineChart(); |
| | | this.initPieChart(); |
| | | }, 0); |
| | | setTimeout(() => { |
| | | this.getServerData(); |
| | | this.getOther(); |
| | | this.getPakin(); |
| | | }, 1000); |
| | | setInterval(() => { |
| | | this.getDate(); |
| | | this.getPakin(); |
| | | this.getError(); |
| | | // this.getYYY(); |
| | | // this.getEEE(); |
| | | this.animation(); |
| | | this.getUrl(); |
| | | },1000) |
| | | }, |
| | | methods: { |
| | | getUrl() { |
| | | this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePort + this.baseUrl |
| | | }, |
| | | // 获取错误信息 |
| | | getYYY() { |
| | | let that = this |