#
vincent
2020-06-02 1726998f8afa838f782f340bb3a2a30773f2b0cc
#
2个文件已修改
50 ■■■■■ 已修改文件
src/main/webapp/static/css/pipeline.css 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/pipeline.html 47 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/css/pipeline.css
@@ -71,6 +71,9 @@
    background-color: #CCE8EB;
    width: 100px;
}
#plc-error-table td {
    color: red;
}
#plc-error-table tr:nth-child(odd) {
    background: #fff;
}
src/main/webapp/views/pipeline.html
@@ -417,30 +417,19 @@
    // 初始化
    var plcErrorTableFieldCount = 0;
    var outputDom = document.getElementById("output");
    $(document).ready(function() {
        initPlcErrorTable();
        getPlcError();
    });
    // 实时访问
    setInterval(function () {
        getPlcError();
    }, 1000);
    setInterval(function () {
        output("\n" +new Date().toLocaleString() + "【2020-5-29 13:14:22】扫描plcA 目标站--27328372372832763643234323432342");
    },500);
    // 空白表格渲染
    $(document).ready(function() {
        var one = $('#plc-error-table thead').height();
        var total = $('.plc-log-body').height();
        var count = total / one;
        count = parseInt(count);
        plcErrorTableFieldCount = count - 1;
        var html = "";
        for (var i = 0; i < count-1; i ++){
            html += " <tr>\n" +
                "       <td></td>\n" +
                "       <td></td>\n" +
                "       <td></td>\n" +
                "     </tr>\n";
        }
        $('#plc-error-table tbody').after(html);
        getPlcError();
    });
    // plc异常信息表获取
    function getPlcError() {
@@ -473,10 +462,26 @@
        outputDom.value += content;
        outputDom.scrollTop = outputDom.scrollHeight;
    }
    setInterval(function () {
        output("\n" +new Date().toLocaleString() + "【2020-5-29 13:14:22】扫描plcA 目标站--27328372372832763643234323432342");
    },500);
    // ------------------------------------------------------------------------------------------------
    // plc异常空白表格渲染
    function initPlcErrorTable() {
        var one = $('#plc-error-table thead').height();
        var total = $('.plc-log-body').height();
        var count = total / one;
        count = parseInt(count);
        plcErrorTableFieldCount = count - 1;
        var html = "";
        for (var i = 0; i < count-1; i ++){
            html += " <tr>\n" +
                "       <td></td>\n" +
                "       <td></td>\n" +
                "       <td></td>\n" +
                "     </tr>\n";
        }
        $('#plc-error-table tbody').after(html);
    }
</script>
</html>