HighPressureKanban.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  6. <link rel="shortcut icon" href="/img/logo.png" />
  7. <link rel="bookmark" href="/img/logo.png" />
  8. <link rel="stylesheet" href="/plugins/bootstrap-4.3.1/css/bootstrap.min.css">
  9. <link rel="stylesheet" href="/plugins/font-awesome-4.7.0/css/font-awesome.min.css">
  10. <link href="/Plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet" />
  11. <link rel="stylesheet" href="../DashBoard.css?v3" />
  12. <script src="/Plugins/jquery-3.4.1/jquery-3.4.1.min.js"></script>
  13. <script src="/Plugins/xrequest/xrequest.min.js"></script>
  14. <title>东科软件</title>
  15. </head>
  16. <body class="bg-white p-0 dk-report">
  17. <!--实时缺陷记录-->
  18. <div class="box_1920_1080" style="width: 1280px; height: 720px; background-size: contain;">>
  19. <div class="position-absolute">
  20. <span id="高压加载" class="dk-report-loading" style="padding-left: 290px;font-size: 13px;color: #38dcff;font-weight: 700;float: left;padding-top: 40px;"></span>
  21. </div>
  22. <h4 class="text-center pb-2 dk-report-title" style="font-size: 60px; font-weight: bolder;color: #f8f9fa;">高压看板</h4>
  23. <table id="高压看板table" class="table-hover table-striped" style="font-size: 14px; width: 1244px; margin-left: 21px; margin-top: -18px;">
  24. <thead style="border: 1px solid #38dcff ">
  25. <tr style="height: 70px; width: 1866px;">
  26. <td scope="col" class="text-center" id="wd" style="width: 130px; font-size: 40px; color: #f8f9fa; text-align:left ">
  27. <div style="text-align:right;"><span id="sj" style=" font-size: 35px;">0000-00-00 00:00</span></div>
  28. </td>
  29. </tr>
  30. </thead>
  31. </table>
  32. <div style="width: 610px; height: 100px ">
  33. <table id="C25" class="table-hover table-striped" style=" width: 100%; height: 5%; margin-left: 21px; margin-top: -17px;">
  34. <thead style="height: 250px ;border: 1px solid #38dcff ">
  35. <tr style="height: 100px; width: 1866px; ">
  36. <td colspan="6" scope="col" class="text-center" id="wd" style="width: 200px; font-size: 82px; color: #f8f9fa; text-align: center ">C25</td>
  37. </tr>
  38. <tr style="height: 50px; width: 1866px; ">
  39. <td colspan="2" scope="col" class="text-center" id="wd" style="width: 130px; font-size: 52px; color: #f8f9fa; text-align: center ">型 号</td>
  40. <td colspan="2" scope="col" class="text-center" id="wd" style="width: 130px; font-size: 35px; color: #f8f9fa; text-align: center ">H01412M-G</td>
  41. <td colspan="2" scope="col" class="text-center" id="wd" style="width: 130px; font-size: 35px; color: #f8f9fa; text-align: center ">H0972M-G</td>
  42. </tr>
  43. <tr style="height: 50px; width: 1866px; ">
  44. <td colspan="2" scope="col" class="text-center" id="gh1" style="width: 130px; font-size: 52px; color: #f8f9fa; text-align: center ">注浆数</td>
  45. <td colspan="2" scope="col" class="text-center" id="cl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 40px; color: #f8f9fa; text-align: center "></td>
  46. <td colspan="2" scope="col" class="text-center" id="hgl1" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 40px; color: #f8f9fa; text-align: right "></td>
  47. </tr>
  48. <tr style="height: 50px; width: 1866px; ">
  49. <td colspan="2" scope="col" class="text-center" id="gh2" style="width: 130px; font-size: 52px; color: #f8f9fa; text-align: center ">修补率</td>
  50. <td colspan="2" scope="col" class="text-center" id="cl2" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 40px; color: #f8f9fa; text-align: center "></td>
  51. <td colspan="2" scope="col" class="text-center" id="hgl2" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 40px; color: #f8f9fa; text-align: right "></td>
  52. </tr>
  53. <tr style="height: 50px; width: 1866px; ">
  54. <td colspan="2" scope="col" class="text-center" id="gh3" style="width: 130px; font-size: 52px; color: #f8f9fa; text-align: center ">保坯率</td>
  55. <td colspan="2" scope="col" class="text-center" id="cl3" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 40px; color: #f8f9fa; text-align: center "></td>
  56. <td colspan="2" scope="col" class="text-center" id="hgl3" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 40px; color: #f8f9fa; text-align: right "></td>
  57. </tr>
  58. <tr style="height: 50px; width: 1866px; ">
  59. <td colspan="2" scope="col" class="text-center" id="gh4" style="width: 130px; font-size: 52px; color: #f8f9fa; text-align: center ">合格率</td>
  60. <td colspan="2" scope="col" class="text-center" id="cl4" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 40px; color: #f8f9fa; text-align: center "></td>
  61. <td colspan="2" scope="col" class="text-center" id="hgl4" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 40px; color: #f8f9fa; text-align: right "></td>
  62. </tr>
  63. </thead>
  64. </table>
  65. </div>
  66. <div style="width: 630px; height:100px; margin-top: -100px; margin-left: 610px;">
  67. <table id="C89" class="table-hover table-striped" style=" width: 100%; height: 5%; margin-left: 21px; margin-top: -17px;">
  68. <thead style="border: 1px solid #38dcff ">
  69. <tr style="height: 100px; width: 1866px; ">
  70. <td colspan="6" scope="col" class="text-center" id="wd" style="width: 100px; font-size: 82px; color: #f8f9fa; text-align: center ">C89</td>
  71. </tr>
  72. <tr style="height: 50px; width: 1866px; ">
  73. <td colspan="2" scope="col" class="text-center" id="wd" style="width: 130px; font-size: 52px; color: #f8f9fa; text-align: center ">型 号</td>
  74. <td colspan="2" scope="col" class="text-center" id="wd" style="width: 130px; font-size: 35px; color: #f8f9fa; text-align: center ">H01412M-G</td>
  75. <td colspan="2" scope="col" class="text-center" id="wd" style="width: 130px; font-size: 35px; color: #f8f9fa; text-align: center ">H0972M-G</td>
  76. </tr>
  77. <tr style="height: 50px; width: 1866px; ">
  78. <td colspan="2" scope="col" class="text-center" id="gh6" style="width: 130px; font-size: 52px; color: #f8f9fa; text-align: center ">注浆数</td>
  79. <td colspan="2" scope="col" class="text-center" id="cl6" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 40px; color: #f8f9fa; text-align: center "></td>
  80. <td colspan="2" scope="col" class="text-center" id="hgl6" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 40px; color: #f8f9fa; text-align: right "> </td>
  81. </tr>
  82. <tr style="height: 50px; width: 1866px; ">
  83. <td colspan="2" scope="col" class="text-center" id="gh7" style="width: 130px; font-size: 52px; color: #f8f9fa; text-align: center ">修补率</td>
  84. <td colspan="2" scope="col" class="text-center" id="cl7" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 40px; color: #f8f9fa; text-align: center "></td>
  85. <td colspan="2" scope="col" class="text-center" id="hgl7" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 40px; color: #f8f9fa; text-align: right "> </td>
  86. </tr>
  87. <tr style="height: 50px; width: 1866px; ">
  88. <td colspan="2" scope="col" class="text-center" id="gh8" style="width: 130px; font-size: 52px; color: #f8f9fa; text-align: center ">保坯率</td>
  89. <td colspan="2" scope="col" class="text-center" id="cl8" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 40px; color: #f8f9fa; text-align: center "></td>
  90. <td colspan="2" scope="col" class="text-center" id="hgl8" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 40px; color: #f8f9fa; text-align: right "></td>
  91. </tr>
  92. <tr style="height: 50px; width: 1866px; ">
  93. <td colspan="2" scope="col" class="text-center" id="gh9" style="width: 130px; font-size: 52px; color: #f8f9fa; text-align: center ">合格率</td>
  94. <td colspan="2" scope="col" class="text-center" id="cl9" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 40px; color: #f8f9fa; text-align: center "></td>
  95. <td colspan="2" scope="col" class="text-center" id="hgl9" style="padding: 0px 0px 0px 0px; width: 130px; font-size: 40px; color: #f8f9fa; text-align: right "></td>
  96. </tr>
  97. </thead>
  98. </table>
  99. </div>
  100. </div>
  101. <!--版权信息-->
  102. <script src="/Plugins/bootstrap-4.3.1/js/bootstrap.bundle.min.js"></script>
  103. <script src="/Plugins/bootstrap-table/bootstrap-table.min.js"></script>
  104. <script src="/Plugins/bootstrap-table/bootstrap-table-locale-all.min.js"></script>
  105. <script src="/Plugins/sweetalert/sweetalert.min.js"></script>
  106. <script src="/Plugins/chartjs-2.8.0/chart-2.8.min.js"></script>
  107. <script src="/Plugins/chartjs-2.8.0/utils.js"></script>
  108. <script>
  109. //缺陷明细定时翻页
  110. var showpage = 10; //显示条数
  111. var pages = 1; //当前页数
  112. var excesspage; //剩余条数
  113. var countpage; //总条数
  114. $(document).ready(function () {
  115. loadServerTime();
  116. Lode();
  117. doGetData = setInterval(function () { loadServerTime(); }, 60000);
  118. doGetData = setInterval(function () { Lode(); }, 60000);
  119. });
  120. function Lode() {
  121. TableOne();
  122. }
  123. //function loadServerTime() {
  124. // // 获取当前日期和时间
  125. // const now = new Date();
  126. // // 格式化日期为 'YYYY-MM-DD HH:mm' 的形式
  127. // const formattedDate = `${now.getFullYear()}-${('0' + (now.getMonth() + 1)).slice(-2)}-${('0' + now.getDate()).slice(-2)} ${('0' + now.getHours()).slice(-2)}:${('0' + now.getMinutes()).slice(-2)}`;
  128. // // 将格式化后的日期和时间显示在页面上
  129. // document.getElementById('sj').textContent = formattedDate;
  130. // console.log(formattedDate);
  131. //}
  132. // 取服务器时间
  133. function loadServerTime() {
  134. $.get('HighPressureKanban.ashx?m=fwq', function (data) {
  135. var json = JSON.parse(data);
  136. if (json["success"] == true) {
  137. $('#sj').html(json["sj"]);
  138. }
  139. });
  140. }
  141. function TableOne() {
  142. $.get('HighPressureKanban.ashx?m=ReadAll', function (data) {
  143. var json = JSON.parse(data);
  144. //console.log(json);
  145. if (json["success"] == true) {
  146. for (var i = 0; i < json["rows"].length; i++) {
  147. $('#cl1').text(json["rows"][0]["实时注浆"]);
  148. $('#hgl1').text(json["rows"][1]["实时注浆"]);
  149. $('#cl2').text(json["rows"][0]["一检修补率"]);
  150. $('#hgl2').text(json["rows"][1]["一检修补率"]);
  151. $('#cl3').text(json["rows"][0]["保坯率"]);
  152. $('#hgl3').text(json["rows"][1]["保坯率"]);
  153. $('#cl4').text(json["rows"][0]["合格率"]);
  154. $('#hgl4').text(json["rows"][1]["合格率"]);
  155. $('#cl6').text(json["rows"][2]["实时注浆"]);
  156. $('#hgl6').text(json["rows"][3]["实时注浆"]);
  157. $('#cl7').text(json["rows"][2]["一检修补率"]);
  158. $('#hgl7').text(json["rows"][3]["一检修补率"]);
  159. $('#cl8').text(json["rows"][2]["保坯率"]);
  160. $('#hgl8').text(json["rows"][3]["保坯率"]);
  161. $('#cl9').text(json["rows"][2]["合格率"]);
  162. $('#hgl9').text(json["rows"][3]["合格率"]);
  163. }
  164. }
  165. });
  166. }
  167. </script>
  168. <style>
  169. table {
  170. height: 40px;
  171. color: #f8f9fa !important;
  172. font-size: 20px;
  173. font-weight: 700;
  174. background: rgba(25, 52, 90,.5);
  175. border: 1px solid #38dcff;
  176. margin-bottom: 1rem;
  177. }
  178. td {
  179. padding: 2px !important;
  180. text-align: center !important;
  181. border-bottom: 1px solid #38dcff !important;
  182. border-right: 1px dashed #38dcff !important;
  183. border: white;
  184. }
  185. a {
  186. background-color: lightblue;
  187. }
  188. </style>
  189. </body>
  190. </html>