equip_alarm.html 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. {% load staticfiles %}
  2. <!DOCTYPE html>
  3. <html lang="en">
  4. <head>
  5. <meta charset="UTF-8" />
  6. <link href="{% static '/lib/bootstrap-3.3.7/css/bootstrap.css' %}" rel="stylesheet">
  7. <link rel="stylesheet" href="{% static '/lib/font-awesome/4.5.0/css/font-awesome.css' %}">
  8. <link rel="stylesheet" href="{% static '/lib/css/ace.min.css' %}"/>
  9. <link rel="stylesheet" href="{% static '/lib/css/ace-skins.min.css' %}">
  10. <link rel="stylesheet" href="{% static '/lib/css/ace-rtl.min.css' %}">
  11. <link rel="stylesheet" href="{% static '/lib/layui/css/layui.css' %}">
  12. <style type="text/css">
  13. body {
  14. overflow: hidden;
  15. background: #fff;
  16. }
  17. .searchCover {
  18. margin: 20px 0;
  19. }
  20. .innerTable {
  21. padding: 0 1px 0 0;
  22. min-width: 750px;
  23. overflow-x: scroll;
  24. }
  25. .table,.table.table-striped>thead>tr>th {
  26. text-align: center;
  27. }
  28. table td {
  29. vertical-align: middle !important;
  30. }
  31. .nullData {
  32. width: 100%;
  33. height: 500px;
  34. background: #ddd;
  35. text-align: center;
  36. line-height: 500px;
  37. font-size: 20px;
  38. border: 1px solid #ddd;
  39. }
  40. .content{
  41. overflow-x: scroll;
  42. }
  43. .searchCover input{
  44. width: 180px;
  45. }
  46. #offLineNums {
  47. border: 0;
  48. padding: 8px;
  49. color: #fff;
  50. background-color: #ec4545;
  51. }
  52. #ligatureNums {
  53. border: 0;
  54. padding: 8px;
  55. color: #fff;
  56. background-color: #428BCA;
  57. }
  58. .disLine {
  59. display: none;
  60. }
  61. </style>
  62. <body>
  63. <div class="content">
  64. <div class="searchCover">
  65. 设备ID:
  66. <input type="text" id="eid" placeholder="请输入设备ID" value="" onkeypress="if (event.keyCode == 13) sub_filter();" />
  67. 类型:
  68. <select name="" id="f_type" style="width:180px">
  69. <option value="">全部</option>
  70. <option value="offline">offline</option>
  71. <option value="rtu">rtu</option>
  72. <option value="down_motor">down_motor</option>
  73. <option value="up_motor">up_motor</option>
  74. <option value="turn_motor">turn_motor</option>
  75. </select>
  76. <button type="button" id="" onclick="sub_filter()" class="btn btn-sm btn-primary">筛选</button>
  77. <!-- <button id="offLineNums" onclick="ceshi('offline')">离线次数查看</button>
  78. <button id="ligatureNums" onclick="ceshi('relink')">重连次数查看</button> -->
  79. <!-- 离线次数重连次数筛选 -->
  80. <select name="" id="examine" onchange="ceshi()" style="width:180px">
  81. <option value="">请选择</option>
  82. <option value="offline">离线次数查看</option>
  83. <option value="relink">重连次数查看</option>
  84. <option value="cbdoffline">测报灯离线次数查看</option>
  85. <option value="cbdrelink">测报灯重连次数查看</option>
  86. <option value="qxzoffline">气象站离线次数查看</option>
  87. <option value="qxzrelink">气象站重连次数查看</option>
  88. <option value="scdoffline">杀虫灯离线次数查看</option>
  89. <option value="xyoffline">性诱离线次数查看</option>
  90. </select>
  91. </div>
  92. <!-- 离线次数查看按钮 -->
  93. <!-- <button id="offLineNums">离线次数查看</button> -->
  94. <div class="innerTable">
  95. <table id="datatable" class="table table-striped table-hover">
  96. <thead>
  97. <tr>
  98. <td style="width:300px">设备ID</td>
  99. <td>预警描述</td>
  100. <td style="width:300px">预警时间</td>
  101. </tr>
  102. </thead>
  103. <tbody>
  104. </tbody>
  105. </table>
  106. <!-- 离线 -->
  107. <table id="datatableA" class="table table-striped table-hover disLine">
  108. <thead>
  109. <tr>
  110. <td style="width:300px">设备ID</td>
  111. <td>设备类型</td>
  112. <td style="width:300px">离线次数</td>
  113. </tr>
  114. </thead>
  115. <tbody>
  116. </tbody>
  117. </table>
  118. <!-- 离线-->
  119. <!-- 重连 -->
  120. <table id="datatableB" class="table table-striped table-hover disLine">
  121. <thead>
  122. <tr>
  123. <td style="width:300px">设备ID</td>
  124. <td>设备类型</td>
  125. <td style="width:300px">重连次数</td>
  126. </tr>
  127. </thead>
  128. <tbody>
  129. </tbody>
  130. </table>
  131. <!-- 重连-->
  132. <div class="fenpei-bottom">
  133. <input type="hidden" id="totalPage" value={{ nums }}>
  134. <div id="page" style="text-align: center;"></div>
  135. </div>
  136. </div>
  137. </div>
  138. <script src="{% static '/lib/js/jquery-2.1.4.min.js' %}"></script>
  139. <script src="{% static '/lib/layui/layui.all.js' %}"></script>
  140. <script src="{% static '/js/common.js' %}"></script>
  141. <script type="text/javascript">
  142. $.ajaxSetup({
  143. data: { csrfmiddlewaretoken: '{{ csrf_token }}' },
  144. });
  145. </script>
  146. <script src="{% static '/js/usermanage/equip_alarm.js' %}?versions=0.5.4"></script>
  147. </body>
  148. </html>