dapingmu.html 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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-frontend.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-md-6">
  115. <table class="table table-bordered text-center table-striped">
  116. <thead>
  117. <tr>
  118. <th scope="col" colspan="4">红榜</th>
  119. </tr>
  120. <tr>
  121. <th>人员</th>
  122. <th>良品数</th>
  123. <th>人员</th>
  124. <th>不良率</th>
  125. </tr>
  126. </thead>
  127. <tbody id="rank-two">
  128. </tbody>
  129. </table>
  130. </div>
  131. <div class="col-md-6">
  132. <table class="table table-bordered text-center table-striped">
  133. <thead>
  134. <tr>
  135. <th scope="col" colspan="4">黑榜</th>
  136. </tr>
  137. <tr>
  138. <th>人员</th>
  139. <th>良品数</th>
  140. <th>人员</th>
  141. <th>不良率</th>
  142. </tr>
  143. </thead>
  144. <tbody id="rank-three">
  145. </tbody>
  146. </table>
  147. </div>
  148. </div>
  149. </div>
  150. </div>
  151. <div class="row" style-height="50">
  152. <div class="row col-md-12 ">
  153. <div id="graph-1" class="chartsize col-md-12" style-height="30"></div>
  154. </div>
  155. <div class="row col-md-12 ">
  156. <div id="graph-2" class="chartsize col-md-12" style-height="30"></div>
  157. </div>
  158. </div>
  159. </div>
  160. <!-- Modal -->
  161. <div id="modalContainer"></div>
  162. <!-- Common Js Files -->
  163. <script src="js/basic.js"></script>
  164. <script src="js/getparam.js"></script>
  165. <script src="js/resize.js"></script>
  166. <script src="js/common.js"></script>
  167. <!--- Unique -->
  168. <script src="js/dapingmu.js"></script>
  169. <script src="js/dapingmu-display.js"></script>
  170. </body>
  171. </html>