src/main/java/com/zy/client/controller/SiteController.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/webapp/views/pipeline.html | ●●●●● 补丁 | 查看 | 原始文档 | 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() { 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); plcErrorTableFieldCount = count - 1; 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" +