#
luxiaotao1123
2022-09-20 a14d14287e3502a46e2894770b5d2d9df6dd8e1f
src/main/webapp/views/pipeline.html
@@ -215,16 +215,19 @@
        if (ioModeData != null && ioModeData.length > 1) {
            ioModeData.forEach(function(e) {
                if (e.floor === Number(floor)) {
                    if (e.modeVal === 3 || e.modeVal === 4) {
                        layer.confirm('确定切换为入库模式吗?',function () {
                    console.log()
                    layer.confirm('确定切换充电状态吗?',function () {
                            $.ajax({
                                url: baseUrl+ "/site/io/mode/action/site",
                                headers: {'token': localStorage.getItem('token')},
                                data: {floor: e.floor},
                            data: {
                                floor: e.floor,
                                charge: !e.modeVal
                            },
                                method: 'POST',
                                success: function (res) {
                                    if (res.code === 200){
                                        layer.msg("暂时不能切换!", {icon: 1})
                                    layer.msg(res.msg, {icon: 1})
                                    } else if (res.code === 403){
                                        window.location.href = baseUrl+"/login";
                                    }  else {
@@ -234,7 +237,6 @@
                            });
                            layer.closeAll();
                        })
                    }
                }
            });
        }