dapingmu.html 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. <html style="height: 100%">
  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="https://fonts.googleapis.com/css?family=Roboto:400,700&subset=latin,cyrillic-ext" rel="stylesheet" type="text/css">
  11. <link href="https://fonts.googleapis.com/icon?family=Material+Icons" 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" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
  14. <!-- Waves Effect Css -->
  15. <link href="plugins/node-waves/waves.css" rel="stylesheet" />
  16. <!-- Animation Css -->
  17. <link href="plugins/animate-css/animate.css" rel="stylesheet" />
  18. <!-- Morris Chart Css-->
  19. <link href="plugins/morrisjs/morris.css" rel="stylesheet" />
  20. <!-- Custom Css -->
  21. <link href="css/style.css" rel="stylesheet">
  22. <!-- AdminBSB Themes. You can choose a theme from css/themes instead of get all themes -->
  23. <link href="css/themes/all-themes.css" rel="stylesheet" />
  24. <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
  25. <script src="https://cdn.bootcss.com/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
  26. <script src="https://cdn.bootcss.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
  27. <link rel="icon" href="https://static.jianshukeji.com/highcharts/images/favicon.ico">
  28. <meta name="viewport" content="width=device-width, initial-scale=1">
  29. <style>
  30. /* css 代码 */
  31. th, td{
  32. color:white;
  33. font-size:2em;
  34. }
  35. .big-letter{
  36. font-size: 2em;
  37. }
  38. .middle-font{
  39. font-size: 1.2em;
  40. }
  41. </style>
  42. <script src="https://img.hcharts.cn/highcharts/highcharts.js"></script>
  43. <script src="https://img.hcharts.cn/highcharts/modules/exporting.js"></script>
  44. <script src="https://img.hcharts.cn/highcharts-plugins/highcharts-zh_CN.js"></script>
  45. <script src="https://img.hcharts.cn/highcharts/themes/dark-unica.js"></script>
  46. <script language="JavaScript">
  47. function startTime()
  48. {
  49. var today=new Date();//定义日期对象
  50. var yyyy = today.getFullYear();//通过日期对象的getFullYear()方法返回年
  51. var MM = today.getMonth()+1;//通过日期对象的getMonth()方法返回年
  52. var dd = today.getDate();//通过日期对象的getDate()方法返回年
  53. var hh=today.getHours();//通过日期对象的getHours方法返回小时
  54. var mm=today.getMinutes();//通过日期对象的getMinutes方法返回分钟
  55. var ss=today.getSeconds();//通过日期对象的getSeconds方法返回秒
  56. // 如果分钟或小时的值小于10,则在其值前加0,比如如果时间是下午3点20分9秒的话,则显示15:20:09
  57. MM=checkTime(MM);
  58. dd=checkTime(dd);
  59. mm=checkTime(mm);
  60. ss=checkTime(ss);
  61. var day; //用于保存星期(getDay()方法得到星期编号)
  62. if(today.getDay()==0) day = "星期日 "
  63. if(today.getDay()==1) day = "星期一 "
  64. if(today.getDay()==2) day = "星期二 "
  65. if(today.getDay()==3) day = "星期三 "
  66. if(today.getDay()==4) day = "星期四 "
  67. if(today.getDay()==5) day = "星期五 "
  68. if(today.getDay()==6) day = "星期六 "
  69. document.getElementById('nowDateTimeSpan').innerHTML=yyyy+"-"+MM +"-"+ dd +" " + day+" " + hh+":"+mm+":"+ss;
  70. setTimeout('startTime()',1000);//每一秒中重新加载startTime()方法
  71. }
  72. function checkTime(i)
  73. {
  74. if (i<10){
  75. i="0" + i;
  76. }
  77. return i;
  78. }
  79. </script>
  80. </head>
  81. <body class="theme-black" style="background-color: #2d2d2d !important;" onload="startTime()">
  82. <nav class="navbar" style="background-color: red">
  83. <div class="container-fluid">
  84. <div class="navbar-header">
  85. <a class="navbar-brand" href="index.html">工厂产能监控系统</a>
  86. </div>
  87. <div style="color:#fff" class="text-center"><img src="images/logo.jpg" style="width: 10%;"> 深圳市度彼电子有限公司</div>
  88. <font color="#ffffff"><span id="nowDateTimeSpan"></span></font>
  89. </div>
  90. </nav>
  91. <div class="container" style="max-width:none; !important; padding-top:100px;">
  92. <div class="alert alert-warning" id="mpAlert" style="display:none">
  93. </div>
  94. <div class="text-white row middle-font">
  95. <div class="col-md-5">
  96. <div class="text-center big-letter">全厂产能统计</div>
  97. <table class="table table-bordered text-center" style="color: #ffffff">
  98. <thead>
  99. <tr>
  100. <th scope="col">时间</th>
  101. <th scope="col">良品数</th>
  102. <th scope="col">不良品数</th>
  103. <th scope="col">堆积数</th>
  104. <th scope="col">不良率</th>
  105. </tr>
  106. </thead>
  107. <tbody id="rank-one">
  108. </tbody>
  109. </table>
  110. </div>
  111. <div class="col-md-7 text-white ">
  112. <div class="text-center text-lg big-letter">本厂今日生产能手榜</div>
  113. <div class="row">
  114. <div class="col-6 text-center big-letter">红榜</div>
  115. <div class="col-6 text-center big-letter">黑榜</div>
  116. </div>
  117. <div class="row">
  118. <div class="col-md-3">
  119. <table class="table table-bordered text-center table-striped">
  120. <thead>
  121. <tr>
  122. <th>人员</th>
  123. <th>良品数</th>
  124. </tr>
  125. </thead>
  126. <tbody id="rank-two">
  127. </tbody>
  128. </table>
  129. </div>
  130. <div class="col-md-3">
  131. <table class="table table-bordered text-center table-striped">
  132. <thead>
  133. <tr>
  134. <th>人员</th>
  135. <th>不良率</th>
  136. </tr>
  137. </thead>
  138. <tbody id="rank-four">
  139. </tbody>
  140. </table>
  141. </div>
  142. <div class="col-md-3">
  143. <table class="table table-bordered text-center table-striped">
  144. <thead>
  145. <tr>
  146. <th>人员</th>
  147. <th>良品数</th>
  148. </tr>
  149. </thead>
  150. <tbody id="rank-three">
  151. </tbody>
  152. </table>
  153. </div>
  154. <div class="col-md-3">
  155. <table class="table table-bordered text-center table-striped">
  156. <thead>
  157. <tr>
  158. </tr>
  159. <tr>
  160. <th>人员</th>
  161. <th>不良率</th>
  162. </tr>
  163. </thead>
  164. <tbody id="rank-five">
  165. </tbody>
  166. </table>
  167. </div>
  168. </div>
  169. </div>
  170. </div>
  171. <div class="row" style-height="50">
  172. <div class="row col-md-12 ">
  173. <div id="graph-1" class="chartsize col-md-12" style-height="30"></div>
  174. </div>
  175. <div class="row col-md-12 ">
  176. <div id="graph-2" class="chartsize col-md-12" style-height="30"></div>
  177. </div>
  178. </div>
  179. </div>
  180. <!-- Modal -->
  181. <div id="modalContainer"></div>
  182. <!-- Common Js Files -->
  183. <script src="js/basic.js"></script>
  184. <script src="js/getparam.js"></script>
  185. <script src="js/resize.js"></script>
  186. <script src="js/common.js"></script>
  187. <!--- Unique -->
  188. <script src="js/dapingmu.js"></script>
  189. <script src="js/dapingmu-display.js"></script>
  190. </body>
  191. </html>