lazhang.html 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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.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="get_stop_scheudle1()" class="btn btn-warning"> 下班 </div>
  93. </div>
  94. </nav>
  95. <div class="container" style="max-width:none; !important; padding-top:100px;">
  96. <div class="alert alert-warning" id="mpAlert" style="display:none">
  97. </div>
  98. <div class="text-white row middle-font">
  99. <div class="col-md-5">
  100. <div class="text-center big-letter">本拉产能统计</div>
  101. <table class="table table-bordered text-center" style="color: #ffffff">
  102. <thead>
  103. <tr>
  104. <th scope="col">时间</th>
  105. <th scope="col">良品数</th>
  106. <th scope="col">不良品数</th>
  107. <th scope="col">堆积数</th>
  108. <th scope="col">不良率</th>
  109. </tr>
  110. </thead>
  111. <tbody id="rank-one">
  112. </tbody>
  113. </table>
  114. </div>
  115. <div class="col-md-7 text-white">
  116. <div class="text-center text-lg big-letter">本厂今日生产能手榜</div>
  117. <div class="row">
  118. <div class="col-md-6">
  119. <table class="table table-bordered text-center table-striped">
  120. <thead>
  121. <tr>
  122. <th scope="col" colspan="4">红榜</th>
  123. </tr>
  124. <tr>
  125. <th>人员</th>
  126. <th>良品数</th>
  127. <th>人员</th>
  128. <th>不良率</th>
  129. </tr>
  130. </thead>
  131. <tbody id="rank-two">
  132. </tbody>
  133. </table>
  134. </div>
  135. <div class="col-md-6">
  136. <table class="table table-bordered text-center table-striped">
  137. <thead>
  138. <tr>
  139. <th scope="col" colspan="4">黑榜</th>
  140. </tr>
  141. <tr>
  142. <th>人员</th>
  143. <th>良品数</th>
  144. <th>人员</th>
  145. <th>不良率</th>
  146. </tr>
  147. </thead>
  148. <tbody id="rank-three">
  149. </tbody>
  150. </table>
  151. </div>
  152. </div>
  153. </div>
  154. </div>
  155. <div class="row" style-height="50">
  156. <div class="row col-md-12 ">
  157. <div id="graph-1" class="chartsize col-md-12" style-height="30"></div>
  158. </div>
  159. <div class="row col-md-12 ">
  160. <div id="graph-2" class="chartsize col-md-12" style-height="30"></div>
  161. </div>
  162. </div>
  163. </div>
  164. <!-- Modal -->
  165. <div id="modalContainer"></div>
  166. <!-- Common Js Files -->
  167. <script src="js/basic.js"></script>
  168. <script src="js/getparam.js"></script>
  169. <script src="js/resize.js"></script>
  170. <script src="js/common.js"></script>
  171. <!--- Unique -->
  172. <script src="js/lazhang-data.js"></script>
  173. <script src="js/lazhang-display.js"></script>
  174. </body>
  175. </html>