#
luxiaotao1123
2020-11-19 9fb00ee422c7e1b6bf3712d1fe192af9cdba5975
src/main/webapp/views/monitor/js/monitor.js
@@ -60,17 +60,16 @@
            $('#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;
            crnChartOption.series[0].data[0].value = res.data.xSpeed - 0; // 走行
            crnChartOption.series[1].data[0].value = res.data.ySpeed - 0; // 升降
            crnChartOption.series[2].data[0].value = res.data.zSpeed - 0; // 叉牙
            crnChartOption.series[3].data[0].value = res.data.forkPos - 0; // 货叉位置
            // 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);
            // 计数动画
            $('.counter').countUp();
        } else if (res.code === 403){
            parent.location.href = baseUrl+"/login";
        }  else {