cbdBatchOperate.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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. <link rel="stylesheet" href="{% static '/lib/css/jquery-ui.css' %}" />
  13. <link rel="stylesheet" href="{% static '/css/loading.css' %}?versions=0.5.0" />
  14. <link rel="stylesheet" href="{% static '/css/equipmanage_cbd.css' %}" />
  15. <style>
  16. .content {
  17. overflow-x: scroll;
  18. }
  19. .searchCover {
  20. margin: 20px 0;
  21. }
  22. .innerTable {
  23. padding: 0 1px 0 0;
  24. min-width: 750px;
  25. }
  26. /* .table,
  27. .table.table-striped>thead>tr>th {
  28. text-align: center;
  29. }
  30. table td {
  31. vertical-align: middle !important;
  32. }
  33. .nullData {
  34. width: 100%;
  35. height: 500px;
  36. background: #ddd;
  37. text-align: center;
  38. line-height: 500px;
  39. font-size: 20px;
  40. border: 1px solid #ddd;
  41. }*/
  42. .inlineBlock {
  43. display: inline-block;
  44. }
  45. .layui-input {
  46. height: 30px;
  47. }
  48. table {
  49. /* width: 100% !important; */
  50. }
  51. .blue {
  52. color: blue;
  53. }
  54. </style>
  55. <body>
  56. <div class="content">
  57. <div id=""></div>
  58. <div id="" style="height: 740px;">
  59. <div class="searchCover">
  60. 设备版本:
  61. <select name="" onchange="dverSelect(this,'edver')" id="edver" style="width:120px">
  62. <option value="">所有版本</option>
  63. <option value="1">版本1</option>
  64. <option value="2">版本2</option>
  65. <option value="3">版本3</option>
  66. <option value="4">版本4</option>
  67. <option value="5">版本5</option>
  68. </select>
  69. 在线状态:
  70. <select name="" onchange="dverSelect(this,'is_online')" id="onoffSelect" style="width:120px">
  71. <option value="">全部</option>
  72. <option value="1">在线</option>
  73. <option value="0">离线</option>
  74. </select>
  75. 用户:
  76. <div class="layui-form inlineBlock">
  77. <div class="layui-input-inline">
  78. <select name="interest" id="userSelect" lay-filter="userSelect" lay-search>
  79. <option value="">请选择</option>
  80. {% for user in user_list %}
  81. <option value="{{user.username}}">{{user.username}}</option>
  82. {% endfor %}
  83. </select>
  84. </div>
  85. </div>
  86. <button type="button" onclick="handHandle(1)" class="btn btn-sm btn-primary">升级</button>
  87. <button type="button" onclick="handHandle(2)" class="btn btn-sm btn-primary">重启</button>
  88. <button type="button" onclick="handHandle(3)" class="btn btn-sm btn-primary">刷新</button>
  89. <button type="button" onclick="upgradeRelease()" class="btn btn-sm btn-primary">可升级版本</button>
  90. </div>
  91. <div class="innerTable">
  92. <table class="layui-hide" id="datatable" lay-filter="datatable"></table>
  93. <div class="fenpei-bottom">
  94. <input type="hidden" id="totalPage" value={{ nums }}>
  95. <div id="page" style="text-align: center;"></div>
  96. </div>
  97. </div>
  98. </div>
  99. </div>
  100. <!-- loading -->
  101. <div id="loadingParent">
  102. <div id="loadCenter">
  103. <div class="skype-loader">
  104. <div class="dot">
  105. <div class="first"></div>
  106. </div>
  107. <div class="dot"></div>
  108. <div class="dot"></div>
  109. <div class="dot"></div>
  110. </div>
  111. Logging in...
  112. </div>
  113. </div>
  114. <!-- 可升级操作 -->
  115. <div id="handleBtns" style="display:none">
  116. <div style="padding: 20px; background-color: #F2F2F2;" id="">
  117. <div class="layui-row layui-col-space15">
  118. <div class="layui-col-md12">
  119. <div class="layui-card">
  120. <div class="layui-card-body">
  121. <table id="datatableA" class="table table-striped table-hover">
  122. <thead>
  123. <tr>
  124. <th>序列号</th>
  125. <th>当前版本号</th>
  126. <th>修改</th>
  127. <th>操作</th>
  128. </tr>
  129. </thead>
  130. <tbody>
  131. </tbody>
  132. </table>
  133. </div>
  134. </div>
  135. </div>
  136. </div>
  137. </div>
  138. </div>
  139. <script src="{% static '/lib/js/jquery-2.1.4.min.js' %}"></script>
  140. <script src="{% static '/lib/layui/layui.all.js' %}"></script>
  141. <script src="{% static '/js/common.js' %}?versions=0.5.0"></script>
  142. <script>
  143. $.ajaxSetup({
  144. data: { csrfmiddlewaretoken: '{{ csrf_token }}' },
  145. });
  146. scrollBar();
  147. </script>
  148. <script src="{% static '/js/equipmanage/cbdBatchOperate.js' %}?versions=0.5.0"></script>
  149. </body>
  150. </html>