lazhang.html 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. <html>
  2. <head>
  3. <meta charset="UTF-8">
  4. <meta http-equiv="X-UA-Compatible" content="IE=Edge">
  5. <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  6. <title>流水线管理页</title>
  7. <!-- Favicon-->
  8. <link rel="icon" href="favicon.ico" type="image/x-icon">
  9. <!-- Google Fonts -->
  10. <link href="css/cyllic.css" rel="stylesheet" type="text/css">
  11. <link href="css/mateial.css" rel="stylesheet" type="text/css">
  12. <!-- Bootstrap Core Css -->
  13. <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.0.0/css/bootstrap.min.css"
  14. integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
  15. <!-- Waves Effect Css -->
  16. <link href="plugins/node-waves/waves.css" rel="stylesheet"/>
  17. <!-- Animation Css -->
  18. <link href="plugins/animate-css/animate.css" rel="stylesheet"/>
  19. <!-- Morris Chart Css-->
  20. <link href="plugins/morrisjs/morris.css" rel="stylesheet"/>
  21. <!-- Custom Css -->
  22. <link href="css/style-frontend.css" rel="stylesheet">
  23. <!-- AdminBSB Themes. You can choose a theme from css/themes instead of get all themes -->
  24. <link href="css/themes/all-themes.css" rel="stylesheet"/>
  25. <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
  26. <script src="https://cdn.bootcss.com/popper.js/1.12.9/umd/popper.min.js"
  27. integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
  28. crossorigin="anonymous"></script>
  29. <script src="https://cdn.bootcss.com/bootstrap/4.0.0/js/bootstrap.min.js"
  30. integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
  31. crossorigin="anonymous"></script>
  32. <link rel="icon" href="https://static.jianshukeji.com/highcharts/images/favicon.ico">
  33. <meta name="viewport" content="width=device-width, initial-scale=1">
  34. <style>
  35. /* css 代码 */
  36. th, td{
  37. color:#fff;
  38. font-size:2em;
  39. }
  40. .big-letter{
  41. font-size: 2em;
  42. }
  43. .middle-font{
  44. font-size: 1.2em;
  45. }
  46. </style>
  47. <script src="https://img.hcharts.cn/highcharts/highcharts.js"></script>
  48. <script src="https://img.hcharts.cn/highcharts/modules/exporting.js"></script>
  49. <script src="https://img.hcharts.cn/highcharts-plugins/highcharts-zh_CN.js"></script>
  50. <script src="https://img.hcharts.cn/highcharts/themes/dark-unica.js"></script>
  51. <script language="JavaScript">
  52. function startTime() {
  53. var today = new Date();//定义日期对象
  54. var yyyy = today.getFullYear();//通过日期对象的getFullYear()方法返回年
  55. var MM = today.getMonth() + 1;//通过日期对象的getMonth()方法返回年
  56. var dd = today.getDate();//通过日期对象的getDate()方法返回年
  57. var hh = today.getHours();//通过日期对象的getHours方法返回小时
  58. var mm = today.getMinutes();//通过日期对象的getMinutes方法返回分钟
  59. var ss = today.getSeconds();//通过日期对象的getSeconds方法返回秒
  60. // 如果分钟或小时的值小于10,则在其值前加0,比如如果时间是下午3点20分9秒的话,则显示15:20:09
  61. MM = checkTime(MM);
  62. dd = checkTime(dd);
  63. mm = checkTime(mm);
  64. ss = checkTime(ss);
  65. var day; //用于保存星期(getDay()方法得到星期编号)
  66. if (today.getDay() == 0) day = "星期日 "
  67. if (today.getDay() == 1) day = "星期一 "
  68. if (today.getDay() == 2) day = "星期二 "
  69. if (today.getDay() == 3) day = "星期三 "
  70. if (today.getDay() == 4) day = "星期四 "
  71. if (today.getDay() == 5) day = "星期五 "
  72. if (today.getDay() == 6) day = "星期六 "
  73. document.getElementById('nowDateTimeSpan').innerHTML = yyyy + "-" + MM + "-" + dd + " " + hh + ":" + mm + ":" + ss + " " + day;
  74. setTimeout('startTime()', 1000);//每一秒中重新加载startTime()方法
  75. }
  76. function checkTime(i) {
  77. if (i < 10) {
  78. i = "0" + i;
  79. }
  80. return i;
  81. }
  82. </script>
  83. </head>
  84. <body class="theme-black" style="background-color: #2d2d2d !important;overflow: hidden" onload="startTime()">
  85. <nav class="navbar" style="background-color: red">
  86. <div class="container-fluid">
  87. <div class="navbar-header">
  88. <a class="navbar-brand" href="#" onclick="location.href='denglu.html'" >工厂产能监控系统</a>
  89. </div>
  90. <div style="color:#fff" class="text-center" id="test1"> 深圳市度彼电子有限公司——激光厂产线1</div>
  91. <font color="#ffffff"><span id="nowDateTimeSpan"></span></font>
  92. <div onclick="show_clear_panel()" class="btn btn-warning"> 清除数据 </div>
  93. <div onclick="get_stop_scheudle1()" class="btn btn-warning"> 下班 </div>
  94. </div>
  95. </nav>
  96. <div class="container" style="max-width:none; !important; padding-top:100px;">
  97. <div class="alert alert-warning" id="mpAlert" style="display:none">
  98. </div>
  99. <!-- Modal -->
  100. <div class="modal fade" id="clearModal" tabindex="-1" role="dialog" aria-labelledby="clearModalLabel" aria-hidden="true">
  101. <div class="modal-dialog modal-dialog-centered" role="document">
  102. <div class="modal-content">
  103. <div class="modal-header">
  104. <h5 class="modal-title" id="clearModalLabel">清空手持机</h5>
  105. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  106. <span aria-hidden="true">&times;</span>
  107. </button>
  108. </div>
  109. <div class="modal-body">
  110. 请输入清除的手持机ID(编码):
  111. <input size="10" type="text" id="handInput">
  112. <div class="progress" style="display: none;" id="clearProgress">
  113. <div class="progress-bar progress-bar-striped progress-bar-animated" role="progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100" style="width: 75%"></div>
  114. </div>
  115. </div>
  116. <div class="modal-footer">
  117. <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
  118. <button type="button" class="btn btn-primary" data-dismiss="modal" onclick="clear_one_data()">确认清除</button>
  119. </div>
  120. </div>
  121. </div>
  122. </div>
  123. <div class="text-white row middle-font">
  124. <div class="col-md-5">
  125. <div class="text-center big-letter">本拉产能统计</div>
  126. <table class="table table-bordered text-center" style="color: #ffffff">
  127. <thead>
  128. <tr>
  129. <th scope="col">时间</th>
  130. <th scope="col">良品数</th>
  131. <th scope="col">不良品数</th>
  132. <th scope="col">堆积数</th>
  133. <th scope="col">不良率</th>
  134. </tr>
  135. </thead>
  136. <tbody id="rank-one">
  137. </tbody>
  138. </table>
  139. </div>
  140. <div class="col-md-7 text-white">
  141. <div class="text-center text-lg big-letter">本厂今日生产能手榜</div>
  142. <div class="row">
  143. <div class="col-md-6">
  144. <table class="table table-bordered text-center table-striped">
  145. <thead>
  146. <tr>
  147. <th scope="col" colspan="4">红榜</th>
  148. </tr>
  149. <tr>
  150. <th>人员</th>
  151. <th>良品数</th>
  152. <th>人员</th>
  153. <th>不良率</th>
  154. </tr>
  155. </thead>
  156. <tbody id="rank-two">
  157. </tbody>
  158. </table>
  159. </div>
  160. <div class="col-md-6">
  161. <table class="table table-bordered text-center table-striped">
  162. <thead>
  163. <tr>
  164. <th scope="col" colspan="4">黑榜</th>
  165. </tr>
  166. <tr>
  167. <th>人员</th>
  168. <th>良品数</th>
  169. <th>人员</th>
  170. <th>不良率</th>
  171. </tr>
  172. </thead>
  173. <tbody id="rank-three">
  174. </tbody>
  175. </table>
  176. </div>
  177. </div>
  178. </div>
  179. </div>
  180. <div class="row" style-height="50">
  181. <div class="row col-md-12 ">
  182. <div id="graph-1" class="chartsize col-md-12" style-height="30"></div>
  183. </div>
  184. <div class="row col-md-12 ">
  185. <div id="graph-2" class="chartsize col-md-12" style-height="30"></div>
  186. </div>
  187. </div>
  188. </div>
  189. <!-- Modal -->
  190. <div id="modalContainer"></div>
  191. <!-- Common Js Files -->
  192. <script src="js/basic.js"></script>
  193. <script src="js/getparam.js"></script>
  194. <script src="js/resize.js"></script>
  195. <script src="js/common.js"></script>
  196. <!--- Unique -->
  197. <script src="js/lazhang-data.js"></script>
  198. <script src="js/lazhang-display.js"></script>
  199. </body>
  200. </html>