| | |
| | | } |
| | | }, |
| | | setBattDiscInfo: function setBattDiscInfo(res) { |
| | | // console.log(res); |
| | | console.log(res); |
| | | // 对数据进行处理 |
| | | this.tbls.discharge.data = res.data; |
| | | // 统计个数 |
| | |
| | | }, 4000); |
| | | }, |
| | | readBattCharInfo: function readBattCharInfo() { |
| | | // 读取放电信息 |
| | | // 读取充电信息 |
| | | if (typeof DeviceService != 'undefined') { |
| | | DeviceService.readBattDiscInfo(); |
| | | DeviceService.readBattCharInfo(); |
| | | } else { |
| | | this.setBattCharInfo({ |
| | | code: 1, |
| | |
| | | } |
| | | }, |
| | | setBattCharInfo: function setBattCharInfo(res) { |
| | | // console.log(res); |
| | | console.log(res); |
| | | // 对数据进行处理 |
| | | this.tbls.charge.data = res.data; |
| | | // 统计个数 |
| | |
| | | } |
| | | }, |
| | | setBattDiscInfo: function setBattDiscInfo(res) { |
| | | // console.log(res); |
| | | console.log(res); |
| | | // 对数据进行处理 |
| | | this.tbls.discharge.data = res.data; |
| | | // 统计个数 |
| | |
| | | }, 4000); |
| | | }, |
| | | readBattCharInfo: function readBattCharInfo() { |
| | | // 读取放电信息 |
| | | // 读取充电信息 |
| | | if (typeof DeviceService != 'undefined') { |
| | | DeviceService.readBattDiscInfo(); |
| | | DeviceService.readBattCharInfo(); |
| | | } else { |
| | | this.setBattCharInfo({ |
| | | code: 1, |
| | |
| | | } |
| | | }, |
| | | setBattCharInfo: function setBattCharInfo(res) { |
| | | // console.log(res); |
| | | console.log(res); |
| | | // 对数据进行处理 |
| | | this.tbls.charge.data = res.data; |
| | | // 统计个数 |