#
luxiaotao1123
2020-09-23 4c30a5d4e4d35b3d78355f0c2d8edf90b31a1b23
src/main/webapp/views/console.html
@@ -512,6 +512,9 @@
                        } else {
                            siteEl.html(sites[i].siteId);
                        }
                        if (i===8) {
                            carAnimate(i, Number(sites[i].nearbySta));
                        }
                    }
                } else if (res.code === 403){
                    parent.location.href = baseUrl+"/login";
@@ -534,8 +537,10 @@
                    for (var i = 0; i < crns.length; i++){
                        var crnEl = $("#crn-"+crns[i].crnId);
                        crnEl.attr("class", "machine " + crns[i].crnStatus);
                        // crnAnimate(crns[i].crnId, crns[i].offset);
                        crnEl.animate({left: (crns[i].bay * ($('.item').eq(0).width()+4)) +'px'}, 1000);
                        var unit = $('.item').eq(0).width()+4;
                        crnEl.animate({left: (crns[i].bay * unit + 50) +'px'}, 1000);
                        // crnEl.animate({left: (crns[i].bay * ($('.item').eq(0).width()+4)) +'px'}, 1000);
                    }
                } else if (res.code === 403){
                    parent.location.href = baseUrl+"/login";
@@ -690,6 +695,7 @@
            alert('不能为空!');
        } else {
            carAnimate(8, Number(value));
            // $("#site-" + 8).animate({top: (Number(value) + 122) +'px'}, 1000);
        }
    })