| | |
| | | setInterval(function () { |
| | | getOther(); |
| | | setDate(); |
| | | initlinChart(); |
| | | initlineChart(); |
| | | initPieChart(); |
| | | }, 1000); |
| | | |
| | |
| | | http.get(baseUrl+"/monitor/other", {crnId: getUrlVal("crnId")}, function (res) { |
| | | if (res.code === 200){ |
| | | |
| | | // 左 |
| | | $('#xDistance').text(res.data.xDistance); |
| | | $('#yDistance').text(res.data.yDistance); |
| | | $('#xDuration').text(res.data.xDuration); |
| | | $('#yDuration').text(res.data.yDuration); |
| | | |
| | | // 中上 |
| | | crnChartOption.series[0].data[0].value = (Math.random()*100).toFixed(2) - 0; |
| | | crnChartOption.series[1].data[0].value = (Math.random()*7).toFixed(2) - 0; |
| | | crnChartOption.series[2].data[0].value = (Math.random()*2).toFixed(2) - 0; |
| | | crnChartOption.series[3].data[0].value = (Math.random()*2).toFixed(2) - 0; |
| | | crnChart.setOption(crnChartOption); |
| | | |
| | | $('#xSpeed').text(res.data.xSpeed); |
| | | $('#ySpeed').text(res.data.ySpeed); |
| | | |