ybq_report_detail.html 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  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. }
  24. .table,
  25. .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. .container-cartogram .echartsBox {
  41. width: 100%;
  42. margin: 0 10px;
  43. height: 500px;
  44. text-align: center;
  45. line-height: 500px;
  46. font-size: 22px;
  47. color: #8a8a8a;
  48. position: relative;
  49. box-shadow: 0 0 40px #eee;
  50. padding: 10px;
  51. }
  52. .container-cartogram .echart {
  53. width: 100%;
  54. height: 100%;
  55. }
  56. .container-cartogram .hint {
  57. width: 100%;
  58. height: 100%;
  59. position: absolute;
  60. }
  61. .fl {
  62. float: left;
  63. }
  64. .fr {
  65. float: right;
  66. }
  67. .clearfix:after {
  68. content: "";
  69. display: block;
  70. clear: both;
  71. height: 0;
  72. visibility: hidden;
  73. }
  74. .clearfix {
  75. *zoom: 1;
  76. }
  77. .content {
  78. overflow-x: scroll;
  79. }
  80. .timeStage {
  81. display: none;
  82. }
  83. .downTitle {
  84. text-align: right;
  85. line-height: 27px;
  86. padding-left: 0;
  87. margin-bottom: 5px;
  88. }
  89. .downContent {
  90. padding-left: 0;
  91. margin-bottom: 5px;
  92. }
  93. /* */
  94. .userinfo .fa {
  95. font-size: 18px;
  96. color: #26b3ff;
  97. /* margin: 0px 5px; */
  98. }
  99. .userinfoTitle {
  100. margin-right: 30px;
  101. font-size: 16px;
  102. }
  103. .refresh button{
  104. float: right;
  105. }
  106. .row{
  107. margin-right: 0;
  108. margin-left: 0;
  109. }
  110. .killNumType{
  111. position: absolute;
  112. right: 30px;
  113. top: 16px;
  114. z-index: 999;
  115. }
  116. </style>
  117. </head>
  118. <body>
  119. <div class="content" id="content">
  120. <div class="page-header">
  121. <span class="headerPlace" onclick="goback()">
  122. <img src="{% static '/img/gobackIcon.png' %}" alt="">返回
  123. </span>
  124. </div>
  125. <div class="row userinfo">
  126. <div class="col-xs-11">
  127. <i class="fa fa-user-o" aria-hidden="true"></i>
  128. 设备ID:
  129. <span class="userinfoTitle">{{ equip_id }}</span>
  130. 设备名称:
  131. <span class="userinfoTitle" id="equip_name">{{ename}}</span>
  132. 位置:
  133. <span class="userinfoTitle" id="curr_area"></span>
  134. <input type="hidden" value="{{lat}}" id="lat">
  135. <input type="hidden" value="{{lng}}" id="lng">
  136. </div>
  137. <div class="col-xs-1 refresh">
  138. <button type="button" class="btn btn-sm btn-success" onclick="location.reload()">刷新</button>
  139. </div>
  140. </div>
  141. <div class="searchCover row">
  142. <div class="col-xs-12">
  143. 图表时间段查询:
  144. <input type="text" id="lineMonthSelectBox" placeholder="请选择时间段 " lay-key="1">
  145. <input type="hidden" value="" id="lineEchartBegin">
  146. <input type="hidden" value="" id="lineEchartEnd">
  147. <button type="button" onclick="lineEchart_sub_filter()" class="btn btn-sm btn-primary">筛选</button>
  148. </div>
  149. </div>
  150. <div class="container-wrap">
  151. <div class="row container-cartogram">
  152. <div class="col-xs-12 col-sm-6">
  153. <div class="echartsBox fl">
  154. <div class="hint"></div>
  155. <div id="line-chart" class="echart"></div>
  156. </div>
  157. </div>
  158. <div class="col-xs-12 col-sm-6">
  159. <div class="killNumType">
  160. 数据汇总:
  161. <select class="enter-select" name="type" id="type">
  162. <option value="2">按次</option>
  163. <option value="3">按日</option>
  164. <option value="4">按月</option>
  165. </select>
  166. </div>
  167. <div class="echartsBox fl">
  168. <div class="hint"></div>
  169. <div id="bar-chart" class="echart"></div>
  170. </div>
  171. </div>
  172. </div>
  173. <div>
  174. <input id="equip_id" type="hidden" type="text" value={{ equip_id }}>
  175. </div>
  176. </div>
  177. <div class="innerTable">
  178. <div class="searchCover row">
  179. <div class="col-xs-12">
  180. 数据时间段查询:
  181. <input type="text" id="tableSelectBox" placeholder="请选择时间段 " lay-key="2">
  182. <input type="hidden" value="" id="tableEchartBegin">
  183. <input type="hidden" value="" id="tableEchartEnd">
  184. <button type="button" onclick="tableEchart_sub_filter()" class="btn btn-sm btn-primary">筛选</button>
  185. <!-- <button type="button" onclick="operation()" class="btn btn-sm btn-success">导出</button> -->
  186. <!-- <button type="button" class="btn btn-success btn-sm" onclick="decideExport()">导出</button> -->
  187. </div>
  188. </div>
  189. <table id="datatable" class="table table-striped table-hover">
  190. <thead>
  191. <tr>
  192. <th>设备开关</th>
  193. <th>工作状态</th>
  194. <th>灯管状态</th>
  195. <th>雨控状态</th>
  196. <th>温控状态</th>
  197. <th>倾倒状态</th>
  198. <th>定时(h)</th>
  199. <th>电击次数</th>
  200. <th>温度(℃)</th>
  201. <th>湿度(%)</th>
  202. <th>充电电压(V)</th>
  203. <th>电池电压(V)</th>
  204. <th>信号强度</th>
  205. <th>设备版本</th>
  206. <th>上报时间</th>
  207. </tr>
  208. </thead>
  209. <tbody>
  210. </tbody>
  211. </table>
  212. <div class="fenpei-bottom">
  213. <input type="hidden" id="totalPage" value={{ nums }}>
  214. <div id="page" style="text-align: center;"></div>
  215. </div>
  216. </div>
  217. <!-- 导出提示框 -->
  218. <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  219. <div class="modal-dialog" role="document">
  220. <div class="modal-content">
  221. <div class="modal-header">
  222. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  223. <span aria-hidden="true">&times;</span>
  224. </button>
  225. <h4 class="modal-title" id="myModalLabel">导出信息</h4>
  226. </div>
  227. <div class="modal-body">
  228. <div class="row">
  229. <div class="col-xs-3 downTitle">文件名称:</div>
  230. <div class="col-xs-8 downContent" style=>
  231. <input type="text" id="filename" placeholder="请输入文件的名称" maxlength="15" class="col-xs-12">
  232. </div>
  233. <div class="col-xs-3 downTitle">下载类型:</div>
  234. <div class="col-xs-8 downContent">
  235. <select name="downtype" id="downtype" onchange="downtype(this)" class="col-xs-12">
  236. <option value="1">全部</option>
  237. <option value="2">时间段</option>
  238. </select>
  239. </div>
  240. <div class="col-xs-3 downTitle timeStage">时间段:</div>
  241. <div class="col-xs-8 downContent timeStage">
  242. <input type="text" id="downtimSelectBox" placeholder="请选择时间段 " lay-key="3" class="col-xs-12">
  243. <input type="hidden" id="downbegin" name="begin">
  244. <input type="hidden" id="downend" name="end">
  245. </div>
  246. </div>
  247. </div>
  248. <div class="modal-footer">
  249. <button type="button" class="btn btn-default btn-sm" data-dismiss="modal">取消</button>
  250. <button type="button" class="btn btn-primary btn-sm" onclick="operation()">下载</button>
  251. </div>
  252. </div>
  253. </div>
  254. </div>
  255. </div>
  256. <script src="{% static '/lib/js/jquery-2.1.4.min.js' %}"></script>
  257. <script src="{% static '/lib/bootstrap-3.3.7/js/bootstrap.js' %}"></script>
  258. <script src="{% static '/lib/layui/layui.all.js' %}"></script>
  259. <!-- 统计图 -->
  260. <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=TcRPmrsiZUqdUBWoELrUArRkCRC36KMx"></script>
  261. <script src="{% static '/lib/js/echarts.min.js' %}"></script>
  262. <script type="text/javascript">
  263. $.ajaxSetup({
  264. data: { csrfmiddlewaretoken: '{{ csrf_token }}' },
  265. });
  266. </script>
  267. <script src="{% static '/js/reportmanage/ybq_report_detail.js' %}?versions=0.5.0" type="text/javascript"></script>
  268. </body>
  269. </html>