dapingmu.html 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  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. <!-- Bootstrap Core Css -->
  10. <link rel="stylesheet" href="css/third/bootstrap.min.css" >
  11. <!-- Waves Effect Css -->
  12. <link href="plugins/node-waves/waves.css" rel="stylesheet" />
  13. <!-- Animation Css -->
  14. <link href="plugins/animate-css/animate.css" rel="stylesheet" />
  15. <!-- Morris Chart Css-->
  16. <link href="plugins/morrisjs/morris.css" rel="stylesheet" />
  17. <!-- Custom Css -->
  18. <!--<link href="css/style-frontend.css" rel="stylesheet">-->
  19. <!-- AdminBSB Themes. You can choose a theme from css/themes instead of get all themes -->
  20. <link href="css/themes/all-themes.css" rel="stylesheet" />
  21. <script src="css/third/jq.3.2.1.min.js"></script>
  22. <script src="css/third/popper.1.12.9.js" ></script>
  23. <script src="css/third/boot.min.js" ></script>
  24. <meta name="viewport" content="width=device-width, initial-scale=1">
  25. <style>
  26. /* css 代码 */
  27. th, td{
  28. color:white;
  29. font-size: 1.2em;
  30. }
  31. .big-letter{
  32. font-size: 1.2em;
  33. }
  34. .middle-font{
  35. font-size: 1.02em;
  36. }
  37. .green-bar {
  38. background-color: #0f9d58 !important;
  39. }
  40. .red-bar {
  41. background-color: #732020 !important;
  42. }
  43. </style>
  44. <script src="css/third/hchart.js"></script>
  45. <script src="css/third/exporting.js"></script>
  46. <script src="css/third/cn.js"></script>
  47. <script src="css/third/dark.js"></script>
  48. <script src="js/timeService.js"></script>
  49. <script src="js/vue.js"></script>
  50. </head>
  51. <body class="theme-black" style="background-color: #2d2d2d !important;" onload="startTime()">
  52. <nav class="navbar clearfix navbar-expand-lg navbar-dark" role="navigation" style="background-color: #732020;">
  53. <a class="navbar-brand" href="#">
  54. <img src="images/logo.jpg" width="42" height="30" class="d-inline-block align-top" alt="">
  55. 工厂产能监控系统
  56. </a>
  57. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
  58. <span class="navbar-toggler-icon"></span>
  59. </button>
  60. <div class="collapse navbar-collapse" id="navbarSupportedContent">
  61. <ul class="navbar-nav mr-auto">
  62. <li class="nav-item">
  63. <a class="nav-link" href="denglu.html"> 主页 <span class="sr-only">(current)</span></a>
  64. </li>
  65. <li class="nav-item active">
  66. <a class="nav-link" href="#">全厂大屏</a>
  67. </li>
  68. <li class="nav-item dropdown">
  69. <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  70. 前往
  71. </a>
  72. <div class="dropdown-menu" aria-labelledby="navbarDropdown">
  73. <a class="dropdown-item" href="#" onclick="history.go(0)">刷新</a>
  74. <div class="dropdown-divider"></div>
  75. <a class="dropdown-item" href="/server">后台入口</a>
  76. </div>
  77. </li>
  78. <li class="nav-item">
  79. <a class="nav-link bg-red text-white" href="javascript:void">深圳市度彼电子有限公司</a>
  80. </li>
  81. </ul>
  82. <form class="form-inline my-2 my-lg-0 text-white" >
  83. <button class="btn btn-outline-dark my-2 my-sm-0 text-white" id="nowDateTimeSpan"></button>
  84. <button class="btn btn-success my-2 my-sm-0" type="submit">重新加载</button>
  85. </form>
  86. </div>
  87. <!--<div class="container-fluid">
  88. <div class="navbar-header">
  89. <a class="navbar-brand" href="index.html">工厂产能监控系统</a>
  90. </div>
  91. <div style="color:#fff" class="text-center"><img src="images/logo.jpg" style="width: 10%;"> 深圳市度彼电子有限公司</div>
  92. <font color="#ffffff"><span id="nowDateTimeSpan"></span></font>
  93. </div>-->
  94. </nav>
  95. <div class="container" style="max-width:none; !important;">
  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-3">
  100. <div class="text-center big-letter">全厂产能统计</div>
  101. <table class="table table-bordered text-center">
  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-9 text-white" style="height: 30vh" id="redrank">
  116. <div class="text-center text-lg big-letter" @click="clicktitle">{{title}}</div>
  117. <div class="row">
  118. <div class="col-md-4" v-for="parto in parting">
  119. <table class="table table-bordered text-center table-striped">
  120. <thead>
  121. <tr>
  122. <th>名次</th>
  123. <th @click="useId">人员</th>
  124. <th @click="usePass">良品</th>
  125. <th @click="useFail">坏品</th>
  126. <th @click="useTotal">总量</th>
  127. <th @click="useRate">不良率</th>
  128. </tr>
  129. </thead>
  130. <tbody class="table-rank-0">
  131. <tr v-for="one in parto" v-bind:class="{'red-bar' : one.isRed, 'green-bar': one.isGreen}">
  132. <td>{{one.seq+1}}</td>
  133. <td>{{one.workerName}}</td>
  134. <td>{{one.passNum}}</td>
  135. <td>{{one.failNum}}</td>
  136. <td>{{one.totalNum}}</td>
  137. <td>{{one.failRateStr}} %</td>
  138. </tr>
  139. </tbody>
  140. </table>
  141. </div>
  142. </div>
  143. </div>
  144. </div>
  145. <div class="row" style-height="50">
  146. <div class="row col-md-12 ">
  147. <div id="graph-1" class="chartsize col-md-12" style-height="30"></div>
  148. </div>
  149. <div class="row col-md-12 ">
  150. <div id="graph-2" class="chartsize col-md-12" style-height="30"></div>
  151. </div>
  152. </div>
  153. </div>
  154. <!-- Modal -->
  155. <div id="modalContainer"></div>
  156. <!-- Common Js Files -->
  157. <script src="js/basic.js"></script>
  158. <script src="js/getparam.js"></script>
  159. <script src="js/resize.js"></script>
  160. <script src="js/common.js"></script>
  161. <!--- Unique -->
  162. <script src="js/dapingmu.js"></script>
  163. <script src="js/dapingmu-display.js"></script>
  164. <script src="js/newCommon.js"></script>
  165. <script src="js/newRedrankvue.js"></script>
  166. <script>
  167. var FlowRealTime = new (function () {
  168. this.pgName = "flowDashBoard";
  169. this.page = new SinglePage(this.pgName);
  170. this.scheduleId = utils_get_param("scheduleId");
  171. this.flowId = utils_get_param("flowId");
  172. if(scheduleId == null || flowId == null)
  173. {
  174. send_alert(`清重新进入本页面!<a href='denglu.html'> 返回主页 </a>`);
  175. return;
  176. }
  177. this.flowPlace = " % flowPlace %";
  178. this.flowName = " % flowPlace %";
  179. this.scheduleLoadDataService = new DataObjectService("fcWorkScheduleLoad", ONDEMAND /*AUTO & FAST*/, "?scheduleId=" + scheduleId);
  180. this.oaStaffService = new DataObjectService("fcWorkScheduleLoad", ONDEMAND, "");
  181. this.sectorService = new DataObjectService("fcWorkScheduleLoad", ONDEMAND, "");
  182. this.flowService = new DataObjectService("fcFlow", ONDEMAND, "");
  183. this.MeduimData = new (function () {
  184. this.initializeUsers = function(list){
  185. list.forEach(function (val, it, arr) {
  186. var isExist = false;
  187. userIDs.forEach(function (vals) {
  188. if (vals == val.userId) {
  189. isExist = true;
  190. }
  191. });
  192. if (!isExist) userIDs.push(val.userId);
  193. });
  194. };
  195. })();
  196. this.initPage = function() {
  197. setInterval(RedRankTablePlugin.tick, 1000);
  198. };
  199. this.Action = new (function (parent) {
  200. this.parent = parent;
  201. this.doStopSchedule = function () {
  202. get_data("fcWorkSchedule/stopSchedule?userId=" + userId + "&scheduleId=" + scheduleId, this.parent.UI.showStopSuccess, this.parent);
  203. };
  204. this.confirmStopSchedule = function () {
  205. var out = confirm("真的要下班吗?");
  206. if (out == true) {
  207. this.doStopSchedule();
  208. } else {
  209. }
  210. };
  211. })(this);
  212. this.UI = new (function (parent) {
  213. this.p = parent;
  214. this.showClearPanel = function () {
  215. };
  216. this.showStopSuccess = function (obj, sta, scope) {
  217. send_alert("下班操作成功! <a href='denglu.html'> 点击这里返回控制主页 </a>");
  218. };
  219. this.bind = function () {
  220. }
  221. })(this);
  222. })();
  223. $(document).ready(function(){
  224. FlowRealTime.initPage();
  225. FlowRealTime.UI.bind();
  226. });
  227. </script>
  228. </body>
  229. </html>