ZY
2024-07-30 ae4881537a58d1e6200e5e34865ae0741b4f51a4
src/main/webapp/views/console.html
@@ -568,7 +568,7 @@
                            siteEl.html(sites[i].siteId);
                        }
                        if (sites[i].siteId === '1' || sites[i].siteId === '2') {
                        if (sites[i].siteId === '1' || sites[i].siteId === '2' || sites[i].siteId === '3') {
                            carAnimate(Number(sites[i].siteId), Number(sites[i].nearbySta));
                        }
@@ -608,7 +608,7 @@
                            case 1:
                            case 2:
                            case 3:
                                unit = 35;
                                unit = 18;
                                offSet = 500;
                                break;
                            case 5:
@@ -648,7 +648,7 @@
                if (res.code === 200) {
                    var barcodes = res.data;
                    for (var i = 0; i < barcodes.length; i++) {
                        $("#code-decoder-data-" + barcodes[i].barcodeId).html(barcodes[i].codeValue);
                        $("#barcode-"+barcodes[i].barcodeId).html(barcodes[i].codeValue ? barcodes[i].codeValue : "--");
                    }
                } else if (res.code === 403) {
                    parent.location.href = baseUrl + "/login";
@@ -698,14 +698,14 @@
                $("#crn-3").animate({left: leftVal + 'px'}, 1000);
                crn3Position = leftVal;
                break;
            case 4:
                $("#crn-4").animate({left: leftVal + 'px'}, 1000);
                crn4Position = leftVal;
                break;
            case 5:
                $("#crn-5").animate({left: leftVal + 'px'}, 1000);
                crn5Position = leftVal;
                break;
            // case 4:
            //     $("#crn-4").animate({left: leftVal + 'px'}, 1000);
            //     crn4Position = leftVal;
            //     break;
            // case 5:
            //     $("#crn-5").animate({left: leftVal + 'px'}, 1000);
            //     crn5Position = leftVal;
            //     break;
            default:
                break
        }
@@ -715,7 +715,7 @@
    function carAnimate(id, target) {
        // debugger
        var targetTop = 0;
        if (id === 1 || id === '1' || id === '2' || id === 2) {
        if (id === 1 || id === '1' || id === '2' || id === 2 || id === '3' || id === 3) {
            switch (target) {
                case 1:
                    targetTop += 792;