lazhang.html 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. <html xmlns:v-on="http://www.w3.org/1999/xhtml" xmlns:v-bind="http://www.w3.org/1999/xhtml">
  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="css/third/bootstrap.min.css"
  14. >
  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="css/third/jq.3.2.1.min.js"></script>
  26. <script src="css/third/popper.1.12.9.js"></script>
  27. <script src="css/third/boot.min.js"></script>
  28. <script src="js/vue.js"></script>
  29. <meta name="viewport" content="width=device-width, initial-scale=1">
  30. <style>
  31. /* css 代码 */
  32. th, td{
  33. color:#fff;
  34. font-size: 1.2em;
  35. }
  36. .big-letter{
  37. font-size: 1.2em;
  38. }
  39. .middle-font{
  40. font-size: 1.02em;
  41. }
  42. .green-bar {
  43. background-color: #0f9d58 !important;
  44. }
  45. .red-bar {
  46. background-color: #732020 !important;
  47. }
  48. </style>
  49. <script src="css/third/hchart.js"></script>
  50. <script src="css/third/exporting.js"></script>
  51. <script src="css/third/cn.js"></script>
  52. <script src="css/third/dark.js"></script>
  53. <script src="js/timeService.js"></script>
  54. </head>
  55. <body class="theme-black" style="background-color: #2d2d2d !important;overflow: hidden" onload="startTime()">
  56. <nav class="navbar clearfix navbar-expand-lg navbar-dark" role="navigation" style="background-color: #732020;">
  57. <a class="navbar-brand" href="#">
  58. <img src="images/logo.jpg" width="42" height="30" class="d-inline-block align-top" alt="">
  59. 工厂产能监控系统
  60. </a>
  61. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
  62. <span class="navbar-toggler-icon"></span>
  63. </button>
  64. <div class="collapse navbar-collapse" id="navbarSupportedContent">
  65. <ul class="navbar-nav mr-auto">
  66. <li class="nav-item">
  67. <a class="nav-link" href="denglu.html"> 主页 <span class="sr-only">(current)</span></a>
  68. </li>
  69. <li class="nav-item ">
  70. <a class="nav-link" href="dapingmu.html">全厂大屏</a>
  71. </li>
  72. <li class="nav-item active">
  73. <a class="nav-link" href="dapingmu.html">产线大屏</a>
  74. </li>
  75. <li class="nav-item dropdown">
  76. <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  77. 前往
  78. </a>
  79. <div class="dropdown-menu" aria-labelledby="navbarDropdown">
  80. <a class="dropdown-item" href="#" onclick="history.go(0)">刷新</a>
  81. <div class="dropdown-divider"></div>
  82. <a class="dropdown-item" href="/server">后台入口</a>
  83. </div>
  84. </li>
  85. <li class="nav-item">
  86. <a class="nav-link bg-red text-white" href="javascript:void;" id="flow_title">深圳市度彼电子有限公司</a>
  87. </li>
  88. </ul>
  89. <div class="form-inline my-2 my-lg-0 text-white" >
  90. <button class="btn btn-outline-dark my-2 my-sm-0 text-white" id="nowDateTimeSpan"></button>
  91. <button class="btn btn-danger my-2 my-sm-0 close-schedule">下班</button>
  92. <button class="btn btn-warning my-2 my-sm-0 open-clear-panel">清除数据</button>
  93. <button class="btn btn-success my-2 my-sm-0" onclick="history.go(0)">重新加载</button>
  94. </div>
  95. </div>
  96. <!--<div class="container-fluid">
  97. <div class="navbar-header">
  98. <a class="navbar-brand" href="index.html">工厂产能监控系统</a>
  99. </div>
  100. <div style="color:#fff" class="text-center"><img src="images/logo.jpg" style="width: 10%;"> 深圳市度彼电子有限公司</div>
  101. <font color="#ffffff"><span id="nowDateTimeSpan"></span></font>
  102. </div>-->
  103. </nav>
  104. <div class="container" style="max-width:none; !important;">
  105. <div class="alert alert-warning" id="mpAlert" style="display:none">
  106. </div>
  107. <!-- Modal -->
  108. <div class="modal fade" id="clearModal" tabindex="-1" role="dialog" aria-labelledby="clearModalLabel" aria-hidden="true">
  109. <div class="modal-dialog modal-dialog-centered" role="document">
  110. <div class="modal-content">
  111. <div class="modal-header">
  112. <h5 class="modal-title" id="clearModalLabel">清空手持机</h5>
  113. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  114. <span aria-hidden="true">&times;</span>
  115. </button>
  116. </div>
  117. <div class="modal-body">
  118. 请输入清除的手持机ID(编码):
  119. <input size="10" type="text" id="handInput">
  120. <div class="progress" style="display: none;" id="clearProgress">
  121. <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>
  122. </div>
  123. </div>
  124. <div class="modal-footer">
  125. <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
  126. <button type="button" class="btn btn-primary confirm-clear-data" data-dismiss="modal">确认清除</button>
  127. </div>
  128. </div>
  129. </div>
  130. </div>
  131. <div class="text-white row middle-font">
  132. <div class="col-md-3" style="height: 30vh">
  133. <div class="text-center big-letter">全厂产能统计</div>
  134. <table class="table table-bordered text-center">
  135. <thead>
  136. <tr>
  137. <th scope="col">时间</th>
  138. <th scope="col">良品数</th>
  139. <th scope="col">不良品数</th>
  140. <th scope="col">堆积数</th>
  141. <th scope="col">不良率</th>
  142. </tr>
  143. </thead>
  144. <tbody id="rank-one">
  145. </tbody>
  146. </table>
  147. </div>
  148. <div class="col-md-9 text-white" style="height: 30vh" id="redrank">
  149. <div class="text-center text-lg big-letter" @click="clicktitle">{{title}}</div>
  150. <div class="row">
  151. <div class="col-md-4" v-for="parto in parting">
  152. <table class="table table-bordered text-center table-striped">
  153. <thead>
  154. <tr>
  155. <th>名次</th>
  156. <th @click="useId">人员</th>
  157. <th @click="usePass">良品</th>
  158. <th @click="useFail">坏品</th>
  159. <th @click="useTotal">总量</th>
  160. <th @click="useRate">不良率</th>
  161. </tr>
  162. </thead>
  163. <tbody class="table-rank-0">
  164. <tr v-for="one in parto" v-bind:class="{'red-bar' : one.isRed, 'green-bar': one.isGreen}">
  165. <td>{{one.seq+1}}</td>
  166. <td>{{one.workerName}}</td>
  167. <td>{{one.passNum}}</td>
  168. <td>{{one.failNum}}</td>
  169. <td>{{one.totalNum}}</td>
  170. <td>{{one.failRate}} %</td>
  171. </tr>
  172. </tbody>
  173. </table>
  174. </div>
  175. </div>
  176. </div>
  177. </div>
  178. <div class="container" style="height:50vh; max-width: 90% !important;" sxtyle-height="50">
  179. <div class="row col-md-12 ">
  180. <div id="graph-1" class="chartsize col-md-12" style="height:30vh" sxtyle-height="30"></div>
  181. </div>
  182. <div class="row col-md-12 ">
  183. <div id="graph-2" class="chartsize col-md-12" style="height:30vh" sxtyle-height="30"></div>
  184. </div>
  185. </div>
  186. </div>
  187. <!-- Modal -->
  188. <div id="modalContainer"></div>
  189. <!-- Common Js Files -->
  190. <script src="js/basic.js"></script>
  191. <script src="js/getparam.js"></script>
  192. <script src="js/resize.js"></script>
  193. <script src="js/common.js"></script>
  194. <!--- Unique -->
  195. <script src="js/lazhang-data.js"></script>
  196. <script src="js/lazhang-display.js"></script>
  197. <script src="js/newCommon.js"></script>
  198. <script src="js/newRedrankvue.js"></script>
  199. <script src="js/newLazhang.js"></script>
  200. </body>
  201. </html>