| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | commonUrl: '', |
| | | series: [], |
| | | homeViewShow: true, |
| | | infoViewShow: false , |
| | |
| | | that.baseLedId = BaseLedId |
| | | that.basePort = BasePort |
| | | that.baseCrnId = BaseCrnId |
| | | // this.getUrl() |
| | | }, |
| | | onLoad() { |
| | | this.getServerData() |
| | | this.initlineChart() |
| | | this.initPieChart() |
| | | this.getOther() |
| | | |
| | | this.getDate2() |
| | | this.getUrl() |
| | | this.getServerData() |
| | | // this.initlineChart() |
| | | // this.initPieChart() |
| | | this.getOther() |
| | | setTimeout(()=>{ |
| | | this.initlineChart() |
| | | this.getServerData() |
| | | this.initPieChart() |
| | | this.getOther() |
| | | },1000) |
| | | }, |
| | | onLoad() { |
| | | |
| | | setInterval(()=>{ |
| | | this.getDate2() |
| | | this.getUrl() |
| | | this.getInfo() |
| | | this.getError() |
| | | // this.getInfo2() |
| | | // this.getError2() |
| | | this.controller() |
| | | },1000) |
| | | |
| | | setInterval(()=>{ |
| | | this.getServerData() |
| | | this.initlineChart() |
| | | this.initPieChart() |
| | | this.getOther() |
| | | this.getDate2() |
| | | },600000) |
| | | |
| | | |
| | | |
| | | }, |
| | | methods: { |
| | | timeOuts() { |
| | |
| | | var m = date.getMonth() + 1 |
| | | var d = date.getDate() |
| | | var newDate = m + '-' + d |
| | | console.log(newDate); |
| | | return newDate |
| | | }, |
| | | /*************** 折线图 *****************************************************************************************************/ |
| | |
| | | uni.request({ |
| | | url: that.commonUrl + "/monitor/other", |
| | | data: { |
| | | crnId: that.baseCrnId, |
| | | crnId: that.baseCrnId, |
| | | ledId: that.baseLedId, |
| | | }, |
| | | success(result) { |