| | |
| | | this.initPieChart() |
| | | this.getOther() |
| | | this.getDate2() |
| | | // this.getInfo() |
| | | // this.getError() |
| | | this.getInfo2() |
| | | this.getError2() |
| | | this.getInfo() |
| | | this.getError() |
| | | // this.getInfo2() |
| | | // this.getError2() |
| | | this.getUrl() |
| | | this.controller() |
| | | },1000) |
| | |
| | | }, |
| | | infoModel(res) { |
| | | let that = this |
| | | console.log(res); |
| | | if (res.data && res.data !== "") { |
| | | if (that.infoType == 2 || that.infoType == 3) { |
| | | return; |
| | |
| | | // 日历 服务器 |
| | | getDate2() { |
| | | let that = this |
| | | if(that.commonUrl == 'undefined') { |
| | | return |
| | | } |
| | | uni.request({ |
| | | url: that.commonUrl + "/monitor/date", |
| | | method:"GET", |
| | |
| | | var res = result.data.data |
| | | that.calendar = res.year + "年" + res.month + "月" + res.day + "日 " + res.hour + ":" + res.minute + ":" + res.second + " " + res.week |
| | | that.currDate = res.year + "/" + res.month + "/" + res.day |
| | | }, |
| | | fail(res) { |
| | | console.log(res); |
| | | } |
| | | |
| | | }) |
| | | }, |
| | | |
| | |
| | | /*************** 折线图 *****************************************************************************************************/ |
| | | initlineChart() { |
| | | let that = this |
| | | if(that.commonUrl == 'undefined') { |
| | | return |
| | | } |
| | | uni.request({ |
| | | url: that.commonUrl + "/monitor/line/charts", |
| | | method:'GET', |
| | |
| | | /*************** 饼图 *****************************************************************************************************/ |
| | | initPieChart() { |
| | | let that = this |
| | | if(that.commonUrl == 'undefined') { |
| | | return |
| | | } |
| | | uni.request({ |
| | | url: that.commonUrl + "/monitor/loc/rep", |
| | | method:'GET', |
| | |
| | | }, |
| | | getOther() { |
| | | let that = this |
| | | if(that.commonUrl == 'undefined') { |
| | | return |
| | | } |
| | | uni.request({ |
| | | url: that.commonUrl + "/monitor/other", |
| | | data: { |