| | |
| | | // ------------------------------------------------------------------------------------------------ |
| | | |
| | | // 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" + |