#
luxiaotao1123
2020-11-19 eb04b3b9ad98d68f9aff7fd30c6abe019efb91ac
src/main/webapp/views/monitor/js/monitor.js
@@ -9,7 +9,7 @@
setInterval(function () {
    getOther();
    setDate();
    initlinChart();
    initlineChart();
    initPieChart();
}, 1000);
@@ -53,11 +53,19 @@
    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);