| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168 |
- {% load staticfiles %}
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8" />
- <link href="{% static '/lib/bootstrap-3.3.7/css/bootstrap.css' %}" rel="stylesheet">
- <link rel="stylesheet" href="{% static '/lib/font-awesome/4.5.0/css/font-awesome.css' %}">
- <link rel="stylesheet" href="{% static '/lib/css/ace.min.css' %}"/>
- <link rel="stylesheet" href="{% static '/lib/css/ace-skins.min.css' %}">
- <link rel="stylesheet" href="{% static '/lib/css/ace-rtl.min.css' %}">
- <link rel="stylesheet" href="{% static '/lib/layui/css/layui.css' %}">
- <style type="text/css">
- body {
- overflow: hidden;
- background: #fff;
- }
- .searchCover {
- margin: 20px 0;
- }
- .innerTable {
- padding: 0 1px 0 0;
- min-width: 750px;
- overflow-x: scroll;
- }
- .table,.table.table-striped>thead>tr>th {
- text-align: center;
- }
- table td {
- vertical-align: middle !important;
- }
- .nullData {
- width: 100%;
- height: 500px;
- background: #ddd;
- text-align: center;
- line-height: 500px;
- font-size: 20px;
- border: 1px solid #ddd;
- }
- .content{
- overflow-x: scroll;
- }
- .searchCover input{
- width: 180px;
- }
- #offLineNums {
- border: 0;
- padding: 8px;
- color: #fff;
- background-color: #ec4545;
- }
- #ligatureNums {
- border: 0;
- padding: 8px;
- color: #fff;
- background-color: #428BCA;
- }
- .disLine {
- display: none;
- }
- </style>
- <body>
- <div class="content">
- <div class="searchCover">
- 设备ID:
- <input type="text" id="eid" placeholder="请输入设备ID" value="" onkeypress="if (event.keyCode == 13) sub_filter();" />
- 类型:
- <select name="" id="f_type" style="width:180px">
- <option value="">全部</option>
- <option value="offline">offline</option>
- <option value="rtu">rtu</option>
- <option value="down_motor">down_motor</option>
- <option value="up_motor">up_motor</option>
- <option value="turn_motor">turn_motor</option>
- </select>
- <button type="button" id="" onclick="sub_filter()" class="btn btn-sm btn-primary">筛选</button>
- <!-- <button id="offLineNums" onclick="ceshi('offline')">离线次数查看</button>
- <button id="ligatureNums" onclick="ceshi('relink')">重连次数查看</button> -->
- <!-- 离线次数重连次数筛选 -->
- <select name="" id="examine" onchange="ceshi()" style="width:180px">
- <option value="">请选择</option>
- <option value="offline">离线次数查看</option>
- <option value="relink">重连次数查看</option>
- <option value="cbdoffline">测报灯离线次数查看</option>
- <option value="cbdrelink">测报灯重连次数查看</option>
- <option value="qxzoffline">气象站离线次数查看</option>
- <option value="qxzrelink">气象站重连次数查看</option>
- <option value="scdoffline">杀虫灯离线次数查看</option>
- <option value="xyoffline">性诱离线次数查看</option>
- </select>
- </div>
- <!-- 离线次数查看按钮 -->
- <!-- <button id="offLineNums">离线次数查看</button> -->
- <div class="innerTable">
- <table id="datatable" class="table table-striped table-hover">
- <thead>
- <tr>
- <td style="width:300px">设备ID</td>
- <td>预警描述</td>
- <td style="width:300px">预警时间</td>
- </tr>
- </thead>
- <tbody>
-
- </tbody>
- </table>
- <!-- 离线 -->
- <table id="datatableA" class="table table-striped table-hover disLine">
- <thead>
- <tr>
- <td style="width:300px">设备ID</td>
- <td>设备类型</td>
- <td style="width:300px">离线次数</td>
- </tr>
- </thead>
- <tbody>
-
- </tbody>
- </table>
- <!-- 离线-->
- <!-- 重连 -->
- <table id="datatableB" class="table table-striped table-hover disLine">
- <thead>
- <tr>
- <td style="width:300px">设备ID</td>
- <td>设备类型</td>
- <td style="width:300px">重连次数</td>
- </tr>
- </thead>
- <tbody>
-
- </tbody>
- </table>
- <!-- 重连-->
- <div class="fenpei-bottom">
- <input type="hidden" id="totalPage" value={{ nums }}>
- <div id="page" style="text-align: center;"></div>
- </div>
- </div>
-
- </div>
- <script src="{% static '/lib/js/jquery-2.1.4.min.js' %}"></script>
- <script src="{% static '/lib/layui/layui.all.js' %}"></script>
- <script src="{% static '/js/common.js' %}"></script>
- <script type="text/javascript">
- $.ajaxSetup({
- data: { csrfmiddlewaretoken: '{{ csrf_token }}' },
- });
- </script>
- <script src="{% static '/js/usermanage/equip_alarm.js' %}?versions=0.5.4"></script>
- </body>
- </html>
|