#
vincent
2020-06-02 cefff061f4508fc2942c5a8fe199e13b15454c9f
#
1个文件已修改
64 ■■■■■ 已修改文件
src/main/webapp/views/console.html 64 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/console.html
@@ -399,10 +399,6 @@
            <span class="row-no">1#</span>
        </div>
    </div>
    <!-- 右输送线 -->
    <!--<input id="val" type="text">-->
    <!--<button id="animate">animate</button>-->
</main>
</body>
<script>
@@ -423,15 +419,47 @@
    // 系统运行开关
    function systemSwitch() {
        if (systemRunning){
            $('#system-icon').attr("class", "system-icon-close");
            $('#system-run-desc').html("系统已停止!");
            systemRunning = false;
        } else {
            $('#system-icon').attr("class", "system-icon-open");
            $('#system-run-desc').html("系统运行中...");
            systemRunning = true;
        }
            var confirm = layer.confirm('确定关闭 WCS 系统?!', {
                btn: ['确定','取消']
            }, function(){
                layer.close(confirm);
                var index = null;
                index = layer.load(1, {
                    shade: [0.1,'#fff']
                });
                setTimeout(function () {
                    if (systemRunning){
                        $('#system-icon').attr("class", "system-icon-close");
                        $('#system-run-desc').html("系统已停止!");
                        systemRunning = false;
                    } else {
                        $('#system-icon').attr("class", "system-icon-open");
                        $('#system-run-desc').html("系统运行中...");
                        systemRunning = true;
                    }
                    layer.close(index);
                }, 2000);
            }, function(){
            });
        } else {
            var index = null;
            index = layer.load(1, {
                shade: [0.1,'#fff']
            });
            setTimeout(function () {
                if (systemRunning){
                    $('#system-icon').attr("class", "system-icon-close");
                    $('#system-run-desc').html("系统已停止!");
                    systemRunning = false;
                } else {
                    $('#system-icon').attr("class", "system-icon-open");
                    $('#system-run-desc').html("系统运行中...");
                    systemRunning = true;
                }
                layer.close(index);
            }, 2000);
        }
    }
    // 输送设备实时数据获取
@@ -509,18 +537,6 @@
                break
        }
    }
    $('.item').on('click', function () {
        layer.open({
            type: 1,
            shadeClose: true, //点击遮罩关闭层
            content: 'text'
        });
    });
    $('#animate').click(function () {
        crnAnimate(1, $('#val').val());
    });
</script>
</html>