#
vincent
2020-06-02 890c164aaf39c9ca28de044d8ac55bd4fe8cbc3e
#
2个文件已修改
22 ■■■■■ 已修改文件
src/main/java/com/zy/client/controller/SiteController.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/pipeline.html 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/client/controller/SiteController.java
@@ -23,7 +23,7 @@
    @ManagerAuth(memo = "输送设备plc异常信息表")
    public R crnLatestData(){
        List<PlcErrorTable> list = new ArrayList<>();
        for (int i = 0; i<new Random().nextInt(30); i++){
        for (int i = 0; i<new Random().nextInt(13); i++){
            PlcErrorTable table = new PlcErrorTable();
            table.setNo(String.valueOf(i));
            table.setError("异常信息");
src/main/webapp/views/pipeline.html
@@ -466,14 +466,20 @@
    // ------------------------------------------------------------------------------------------------
    // 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;
    function initPlcErrorTable(row) {
        var line;
        if (row === undefined){
            var one = $('#plc-error-table thead').height();
            var total = $('.plc-log-body').height();
            var count = total / one;
            count = parseInt(count) - 1;
            plcErrorTableFieldCount = count;
            line = count;
        } else {
            line = row;
        }
        var html = "";
        for (var i = 0; i < count-1; i ++){
        for (var i = 0; i < line; i ++){
            html += " <tr>\n" +
                "       <td></td>\n" +
                "       <td></td>\n" +