allot.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. {% load staticfiles %}
  2. <!DOCTYPE html>
  3. <html lang="en">
  4. <head>
  5. <title>设备列表</title>
  6. <meta charset="UTF-8" />
  7. <link href="{% static '/lib/bootstrap-3.3.7/css/bootstrap.css' %}" rel="stylesheet">
  8. <link rel="stylesheet" href="{% static '/lib/font-awesome/4.5.0/css/font-awesome.css' %}">
  9. <link rel="stylesheet" href="{% static '/lib/css/ace.min.css' %}"/>
  10. <link rel="stylesheet" href="{% static '/lib/css/ace-skins.min.css' %}">
  11. <link rel="stylesheet" href="{% static '/lib/css/ace-rtl.min.css' %}">
  12. <link rel="stylesheet" href="{% static '/lib/layui/css/layui.css' %}">
  13. <style>
  14. .content{
  15. overflow-x: scroll;
  16. }
  17. body {
  18. overflow: hidden;
  19. background: #fff;
  20. }
  21. .selectedColor {
  22. background: #faffc2 !important;
  23. }
  24. .searchCover {
  25. margin: 20px 0;
  26. }
  27. .innerTable {
  28. padding: 0 1px 0 0;
  29. min-width: 750px;
  30. overflow-x: scroll;
  31. }
  32. .table,
  33. .table.table-striped>thead>tr>th {
  34. text-align: center;
  35. }
  36. table td {
  37. vertical-align: middle !important;
  38. }
  39. .nullData {
  40. width: 100%;
  41. height: 500px;
  42. background: #ddd;
  43. text-align: center;
  44. line-height: 500px;
  45. font-size: 20px;
  46. border: 1px solid #ddd;
  47. }
  48. .check,
  49. #checkAll {
  50. width: 18px;
  51. height: 19px;
  52. vertical-align: middle;
  53. margin-top: -6px;
  54. visibility: hidden;
  55. display: none;
  56. }
  57. .my_protocol input[type='checkbox']+span {
  58. cursor: pointer;
  59. width: 18px;
  60. height: 18px;
  61. background-color: red;
  62. display: inline-block;
  63. background: url(/static/img/tick.png) no-repeat center;
  64. background-position: -19px 0px;
  65. position: relative;
  66. top: 3px;
  67. border: 1px solid #bbb;
  68. }
  69. .my_protocol input[type='checkbox']:checked+span {
  70. background-position-x: 3px;
  71. background-position-y: 3px;
  72. }
  73. .btnBox {
  74. text-align: right;
  75. }
  76. .btnBox button {
  77. margin: 10px 10px 10px 0;
  78. }
  79. .searchCover input{
  80. width: 180px;
  81. }
  82. </style>
  83. </head>
  84. <body>
  85. <div class="content">
  86. <div class="searchCover">
  87. 创建时间:
  88. <input type="text" id="test10" placeholder="请选择时间段 ">
  89. <input type="hidden" id="begin" name="begin">
  90. <input type="hidden" id="end" name="end">
  91. 设备类型:
  92. <select class="enter-select" name="value" id="type">
  93. <option value="0">请选择</option>
  94. <!-- <option value="1">气象设备</option> -->
  95. <option value="2">杀虫灯</option>
  96. <option value="3">测报灯</option>
  97. <option value="4">性诱设备</option>
  98. <option value="5">环境监测</option>
  99. <option value="6">监控设备</option>
  100. <option value="7">孢子仪</option>
  101. <!-- <option value="4">农药残留</option>
  102. <option value="5">监控数据采集</option> -->
  103. </select>
  104. 设备ID:
  105. <input type="text" id="identity" value="" onkeypress="if (event.keyCode == 13) sub_filter();" />
  106. <button type="button" onclick="sub_filter()" class="btn btn-sm btn-primary">筛选</button>
  107. </div>
  108. <div class="innerTable">
  109. <form action="" method="post"> {% csrf_token %}
  110. <table class="table table-striped" id="table">
  111. <thead>
  112. <tr>
  113. <td>
  114. <!-- <input type="checkbox" onchange="checkAllFun($(this))" id="checkAll" name="title-table-checkbox" /> -->
  115. <div style="position:relative">
  116. <label class="my_protocol">
  117. <input type="checkbox" onchange="checkAllFun($(this))" id="checkAll" name="title-table-checkbox" />
  118. <span></span>
  119. </label>
  120. </div>
  121. </td>
  122. <td>设备ID</td>
  123. <td>设备名称</td>
  124. <td>设备类型</td>
  125. <td>设备添加时间</td>
  126. <td>设备用户</td>
  127. </tr>
  128. </thead>
  129. <tbody>
  130. </tbody>
  131. </table>
  132. <div class="btnBox">
  133. <input type="hidden" name="uname" id="uname" value={{ uname }}>
  134. <span class="color-background2 " style="color:#FF0015;">
  135. {{allot_note}}
  136. </span>
  137. <button type="submit" name="submit" id="allotBtn" value="fenpei" class="btn btn-primary btn-large">确定分配</button>
  138. </div>
  139. </form>
  140. <div class="fenpei-bottom">
  141. <input type="hidden" id="totalPage" value={{nums}}>
  142. <div id="page" style="text-align: center;"></div>
  143. </div>
  144. </div>
  145. <div style="line-height:50px;">
  146. <i class="star">*</i>注:以上所选设备分配给用户:{{ uname }}
  147. </div>
  148. </div>
  149. <script src="{% static '/lib/js/jquery-2.1.4.min.js' %}"></script>
  150. <script src="{% static '/lib/layui/layui.all.js' %}"></script>
  151. <script src="{% static '/lib/js/newdistpicker.js' %}" type="text/javascript" charset="utf-8"></script>
  152. <script src="{% static '/lib/js/main.js' %}" type="text/javascript" charset="utf-8"></script>
  153. <script type="text/javascript">
  154. $.ajaxSetup({
  155. data: { csrfmiddlewaretoken: '{{ csrf_token }}' },
  156. });
  157. </script>
  158. <script src="{% static '/js/equipallot/equipallotList.js' %}?versions=0.5.0" type="text/javascript"></script>
  159. </body>
  160. </html>