index.html 61 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265
  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 href="/Plugins/animate/animate.min.css" rel="stylesheet" />
  9. <link rel="stylesheet" href="../DashBoard.css?v3" />
  10. <script src="/Plugins/jquery-3.4.1/jquery-3.4.1.min.js"></script>
  11. <script src="/Plugins/animate/xanimate.js"></script>
  12. <script src="/Plugins/xrequest/xrequest.min.js"></script>
  13. <title>东科软件</title>
  14. </head>
  15. <body style="background-color:black;">
  16. <div class="box_1920_1080">
  17. <div class="box_title" style="display:flex;flex-direction:row;">
  18. <div style="width:30%;text-align:left;"></div>
  19. <div style="width:40%;text-align:center;font-size:38px;font-weight:700">设备运行状态看板</div>
  20. <div style="width:30%;text-align:right;"><span class="box_title_loading" style="font-size:32px;display:none;" id="报表加载"></span></div>
  21. </div>
  22. <div class="box_body" style="display: flex; flex-direction: column;">
  23. <!--测漏气-->
  24. <div style="width:1840px;height:960px;display:flex;flex-direction:row;">
  25. <div style="width: 920px; height: 960px; padding-right: 20px; display: flex; flex-direction: row; ">
  26. <table cellspacing="0" cellpadding="0" border="0" style="width:100%;height:100%;">
  27. <!--<tr class="tr_title_warning">
  28. <td colspan="9" style="color:white;">测漏气产量合格率</td>
  29. </tr>-->
  30. <tr class="tr_title_warning">
  31. <td>设备名称</td>
  32. <td>日生产量</td>
  33. <!--<td>日合格数</td>
  34. <td>日合格率</td>-->
  35. <td>工作时间</td>
  36. <td>等待时间</td>
  37. <td>故障时间</td>
  38. </tr>
  39. <tr class="tr_bg_light_warning" style="height:30px;" id="tr1">
  40. <td style="font-size: 18px; width: 11%">A线-智能测漏机</td>
  41. <td style="font-size: 18px; width: 11%" id="pd1">--</td>
  42. <!--<td style="font-size: 18px; width: 11%" id="pg1">--</td>
  43. <td style="font-size: 18px; width: 11%" id="gp1">--</td>-->
  44. <td style="font-size: 18px; width: 11%" id="yx1">--</td>
  45. <td style="font-size: 18px; width: 11%" id="dd1">--</td>
  46. <td style="font-size: 18px; width: 11%" id="gz1">--</td>
  47. </tr>
  48. <tr class="tr_bg_light_warning" style="height:30px;" id="tr2">
  49. <td style="font-size: 18px; width: 11%">B线-智能测漏机</td>
  50. <td style="font-size: 18px; width: 11%" id="pd2">--</td>
  51. <!--<td style="font-size: 18px; width: 11%" id="pg2">--</td>
  52. <td style="font-size: 18px; width: 11%" id="gp2">--</td>-->
  53. <td style="font-size: 18px; width: 11%" id="yx2">--</td>
  54. <td style="font-size: 18px; width: 11%" id="dd2">--</td>
  55. <td style="font-size: 18px; width: 11%" id="gz2">--</td>
  56. </tr>
  57. <tr class="tr_bg_light_warning" style="height:30px;" id="tr3">
  58. <td style="font-size: 18px; width: 11%">C线-连体测漏机</td>
  59. <td style="font-size: 18px; width: 11%" id="pd3">--</td>
  60. <!--<td style="font-size: 18px; width: 11%" id="pg3">--</td>
  61. <td style="font-size: 18px; width: 11%" id="gp3">--</td>-->
  62. <td style="font-size: 18px; width: 11%" id="yx3">--</td>
  63. <td style="font-size: 18px; width: 11%" id="dd3">--</td>
  64. <td style="font-size: 18px; width: 11%" id="gz3">--</td>
  65. </tr>
  66. <tr class="tr_bg_light_warning" style="height:30px;" id="tr4">
  67. <td style="font-size: 18px; width: 11%">D线-连体测漏机</td>
  68. <td style="font-size: 18px; width: 11%" id="pd4">--</td>
  69. <!--<td style="font-size: 18px; width: 11%" id="pg4">--</td>
  70. <td style="font-size: 18px; width: 11%" id="gp4">--</td>-->
  71. <td style="font-size: 18px; width: 11%" id="yx4">--</td>
  72. <td style="font-size: 18px; width: 11%" id="dd4">--</td>
  73. <td style="font-size: 18px; width: 11%" id="gz4">--</td>
  74. </tr>
  75. <tr class="tr_bg_light_warning" style="height:30px;" id="tr5">
  76. <td style="font-size: 18px; width: 11%">E线-连体测漏机</td>
  77. <td style="font-size: 18px; width: 11%" id="pd5">--</td>
  78. <!--<td style="font-size: 18px; width: 11%" id="pg5">--</td>
  79. <td style="font-size: 18px; width: 11%" id="gp5">--</td>-->
  80. <td style="font-size: 18px; width: 11%" id="yx5">--</td>
  81. <td style="font-size: 18px; width: 11%" id="dd5">--</td>
  82. <td style="font-size: 18px; width: 11%" id="gz5">--</td>
  83. </tr>
  84. <tr class="tr_bg_light_warning" style="height:30px;" id="tr6">
  85. <td style="font-size: 18px; width: 11%">F线-连体测漏机</td>
  86. <td style="font-size: 18px; width: 11%" id="pd6">--</td>
  87. <!--<td style="font-size: 18px; width: 11%" id="pg6">--</td>
  88. <td style="font-size: 18px; width: 11%" id="gp6">--</td>-->
  89. <td style="font-size: 18px; width: 11%" id="yx6">--</td>
  90. <td style="font-size: 18px; width: 11%" id="dd6">--</td>
  91. <td style="font-size: 18px; width: 11%" id="gz6">--</td>
  92. </tr>
  93. <tr class="tr_bg_light_warning" style="height:30px;" id="tr7">
  94. <td style="font-size: 18px; width: 11%">G线-连体测漏机</td>
  95. <td style="font-size: 18px; width: 11%" id="pd7">--</td>
  96. <!--<td style="font-size: 18px; width: 11%" id="pg7">--</td>
  97. <td style="font-size: 18px; width: 11%" id="gp7">--</td>-->
  98. <td style="font-size: 18px; width: 11%" id="yx7">--</td>
  99. <td style="font-size: 18px; width: 11%" id="dd7">--</td>
  100. <td style="font-size: 18px; width: 11%" id="gz7">--</td>
  101. </tr>
  102. <tr class="tr_bg_light_warning" style="height:30px;" id="tr8">
  103. <td style="font-size: 18px; width: 11%">H线-智能测漏机</td>
  104. <td style="font-size: 18px; width: 11%" id="pd8">--</td>
  105. <!--<td style="font-size: 18px; width: 11%" id="pg8">--</td>
  106. <td style="font-size: 18px; width: 11%" id="gp8">--</td>-->
  107. <td style="font-size: 18px; width: 11%" id="yx8">--</td>
  108. <td style="font-size: 18px; width: 11%" id="dd8">--</td>
  109. <td style="font-size: 18px; width: 11%" id="gz8">--</td>
  110. </tr>
  111. <tr class="tr_bg_light_warning" style="height:30px;" id="str1">
  112. <td style="font-size: 18px; width: 11%">A线-倒水机</td>
  113. <td style="font-size: 18px; width: 11%" id="spd1">--</td>
  114. <td style="font-size: 18px; width: 11%" id="syx1">--</td>
  115. <td style="font-size: 18px; width: 11%" id="sdd1">--</td>
  116. <td style="font-size: 18px; width: 11%" id="sgz1">--</td>
  117. </tr>
  118. <tr class="tr_bg_light_warning" style="height:30px;" id="str2">
  119. <td style="font-size: 18px; width: 11%">B线-倒水机</td>
  120. <td style="font-size: 18px; width: 11%" id="spd2">--</td>
  121. <td style="font-size: 18px; width: 11%" id="syx2">--</td>
  122. <td style="font-size: 18px; width: 11%" id="sdd2">--</td>
  123. <td style="font-size: 18px; width: 11%" id="sgz2">--</td>
  124. </tr>
  125. <tr class="tr_bg_light_warning" style="height:30px;" id="str3">
  126. <td style="font-size: 18px; width: 11%">C线-倒水机</td>
  127. <td style="font-size: 18px; width: 11%" id="spd3">--</td>
  128. <td style="font-size: 18px; width: 11%" id="syx3">--</td>
  129. <td style="font-size: 18px; width: 11%" id="sdd3">--</td>
  130. <td style="font-size: 18px; width: 11%" id="sgz3">--</td>
  131. </tr>
  132. <tr class="tr_bg_light_warning" style="height:30px;" id="str4">
  133. <td style="font-size: 18px; width: 11%">D线-倒水机</td>
  134. <td style="font-size: 18px; width: 11%" id="spd4">--</td>
  135. <td style="font-size: 18px; width: 11%" id="syx4">--</td>
  136. <td style="font-size: 18px; width: 11%" id="sdd4">--</td>
  137. <td style="font-size: 18px; width: 11%" id="sgz4">--</td>
  138. </tr>
  139. </table>
  140. </div>
  141. <div style="width: 920px; height: 960px; padding-right: 20px; display: flex; flex-direction: column; ">
  142. <div style="width: 100%; height: 320px; padding-right: 20px; display: flex; flex-direction: row; ">
  143. <div style="width: 25%; height: 320px;">
  144. <div style="color: white; font-size: 19px; padding-top: 10px; font-weight: 600; text-align: center">A线-智能测漏机</div>
  145. <canvas id="canvasDefectA1" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 218px; width: 100%"></canvas>
  146. <div id="currentA1" style="width: 30px; height: 30px; margin: 10px 0 0 96px; border-radius: 50%; "></div>
  147. </div>
  148. <div style="width: 25%; height: 320px;">
  149. <div style="color: white; font-size: 19px; padding-top: 10px; font-weight: 600; text-align: center ">B线-智能测漏机</div>
  150. <canvas id="canvasDefectA2" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 218px; width: 100% "></canvas>
  151. <div id="currentA2" style="width: 30px; height: 30px; margin: 10px 0 0 96px; border-radius: 50%; "></div>
  152. </div>
  153. <div style="width: 25%; height: 320px;">
  154. <div style="color: white; font-size: 19px; padding-top: 10px; font-weight: 600; text-align: center ">C线-连体测漏机</div>
  155. <canvas id="canvasDefectA3" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 218px; width: 100% "></canvas>
  156. <div id="currentA3" style="width: 30px; height: 30px; margin: 10px 0 0 96px; border-radius: 50%; "></div>
  157. </div>
  158. <div style="width: 25%; height: 320px;">
  159. <div style="color: white; font-size: 19px; padding-top: 10px; font-weight: 600; text-align: center ">D线-连体测漏机</div>
  160. <canvas id="canvasDefectA4" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 218px; width: 100% "></canvas>
  161. <div id="currentA4" style="width: 30px; height: 30px; margin: 10px 0 0 96px; border-radius: 50%; "></div>
  162. </div>
  163. </div>
  164. <div style="width: 100%; height: 320px; padding-right: 20px; display: flex; flex-direction: row; ">
  165. <div style="width: 25%; height: 320px;">
  166. <div style="color: white; font-size: 19px; padding-top: 20px; font-weight: 600; text-align: center ">E线-连体测漏机</div>
  167. <canvas id="canvasDefectA5" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 218px; width: 100% "></canvas>
  168. <div id="currentA5" style="width: 30px; height: 30px; margin: 10px 0 0 96px; border-radius: 50%; "></div>
  169. </div>
  170. <div style="width: 25%; height: 320px;">
  171. <div style="color: white; font-size: 19px; padding-top: 20px; font-weight: 600; text-align: center ">F线-连体测漏机</div>
  172. <canvas id="canvasDefectA6" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 218px; width: 100% "></canvas>
  173. <div id="currentA6" style="width: 30px; height: 30px; margin: 10px 0 0 96px; border-radius: 50%; "></div>
  174. </div>
  175. <div style="width: 25%; height: 320px;">
  176. <div style="color: white; font-size: 19px; padding-top: 20px; font-weight: 600; text-align: center ">G线-连体测漏机</div>
  177. <canvas id="canvasDefectA7" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 218px; width: 100% "></canvas>
  178. <div id="currentA7" style="width: 30px; height: 30px; margin: 10px 0 0 96px; border-radius: 50%; "></div>
  179. </div>
  180. <div style="width: 25%; height: 320px;">
  181. <div style="color: white; font-size: 19px; padding-top: 20px; font-weight: 600; text-align: center ">H线-智能测漏机</div>
  182. <canvas id="canvasDefectA8" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 218px; width: 100% "></canvas>
  183. <div id="currentA8" style="width: 30px; height: 30px; margin: 10px 0 0 96px; border-radius: 50%; "></div>
  184. </div>
  185. </div>
  186. <div style="width: 100%; height: 320px; padding-right: 20px; display: flex; flex-direction: row; ">
  187. <div style="width: 25%; height: 320px;">
  188. <div style="color: white; font-size: 19px; padding-top: 30px; font-weight: 600; text-align: center ">A线-倒水机</div>
  189. <canvas id="canvasDefectA9" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 218px; width: 100% "></canvas>
  190. <div id="currentA9" style="width: 30px; height: 30px; margin: 10px 0 0 96px; border-radius: 50%; "></div>
  191. </div>
  192. <div style="width: 25%; height: 320px;">
  193. <div style="color: white; font-size: 19px; padding-top: 30px; font-weight: 600; text-align: center ">B线-倒水机</div>
  194. <canvas id="canvasDefectA10" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 218px; width: 100% "></canvas>
  195. <div id="currentA10" style="width: 30px; height: 30px; margin: 10px 0 0 96px; border-radius: 50%; "></div>
  196. </div>
  197. <div style="width: 25%; height: 320px;">
  198. <div style="color: white; font-size: 19px; padding-top: 30px; font-weight: 600; text-align: center ">C线-倒水机</div>
  199. <canvas id="canvasDefectA11" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 218px; width: 100% "></canvas>
  200. <div id="currentA11" style="width: 30px; height: 30px; margin: 10px 0 0 96px; border-radius: 50%; "></div>
  201. </div>
  202. <div style="width: 25%; height: 320px;">
  203. <div style="color: white; font-size: 19px; padding-top: 30px; font-weight: 600; text-align: center ">D线-倒水机</div>
  204. <canvas id="canvasDefectA12" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 218px; width: 100% "></canvas>
  205. <div id="currentA12" style="width: 30px; height: 30px; margin: 10px 0 0 96px; border-radius: 50%; "></div>
  206. </div>
  207. </div>
  208. </div>
  209. </div>
  210. <!--试水-->
  211. <!--<div style="width: 1840px; height: 480px; display: flex; flex-direction: row;">
  212. <div style="width: 920px; height: 480px; padding-right: 20px; display: flex; flex-direction: row; ">
  213. <table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
  214. <tr class="tr_title_warning">
  215. <td colspan="9" style="color:white;">试水产量合格率</td>
  216. </tr>
  217. <tr class="tr_title_warning">
  218. <td>试水线号</td>
  219. <td>日生产量</td>
  220. <td>日合格数</td>
  221. <td>日合格率</td>
  222. </tr>
  223. <tr class="tr_bg_light_warning" style="height:30px;">
  224. <td style="font-size: 18px; width: 11%">1</td>
  225. <td style="font-size: 18px; width: 11%">--</td>
  226. <td style="font-size: 18px; width: 11%">--</td>
  227. <td style="font-size: 18px; width: 11%">--</td>
  228. </tr>
  229. <tr class="tr_bg_light_warning" style="height:30px;">
  230. <td style="font-size: 18px; width: 11%">2</td>
  231. <td style="font-size: 18px; width: 11%">--</td>
  232. <td style="font-size: 18px; width: 11%">--</td>
  233. <td style="font-size: 18px; width: 11%">--</td>
  234. </tr>
  235. <tr class="tr_bg_light_warning" style="height:30px;">
  236. <td style="font-size: 18px; width: 11%">3</td>
  237. <td style="font-size: 18px; width: 11%">--</td>
  238. <td style="font-size: 18px; width: 11%">--</td>
  239. <td style="font-size: 18px; width: 11%">--</td>
  240. </tr>
  241. <tr class="tr_bg_light_warning" style="height:30px;">
  242. <td style="font-size: 18px; width: 11%">4</td>
  243. <td style="font-size: 18px; width: 11%">--</td>
  244. <td style="font-size: 18px; width: 11%">--</td>
  245. <td style="font-size: 18px; width: 11%">--</td>
  246. </tr>
  247. </table>
  248. </div>
  249. <div style="width: 920px; height: 480px; padding-right: 20px; display: flex; flex-direction: column; ">
  250. <div style="width: 100%; height: 480px; padding-right: 20px; display: flex; flex-direction: row; ">
  251. <div style="width: 50%; height: 250px;">
  252. <div style="color:white;font-size:20px;font-weight:600; text-align:center">试水1</div>
  253. <canvas id="canvasDefectB1" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 240px; width: 100%"></canvas>
  254. </div>
  255. <div style="width: 50%; height: 250px;">
  256. <div style="color:white;font-size:20px;font-weight:600; text-align:center">试水2</div>
  257. <canvas id="canvasDefectB2" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 240px; width: 100%"></canvas>
  258. </div>
  259. </div>
  260. <div style="width: 100%; height: 480px; padding-right: 20px; display: flex; flex-direction: row; ">
  261. <div style="width: 50%; height: 250px;">
  262. <div style="color:white;font-size:20px;font-weight:600; text-align:center">试水3</div>
  263. <canvas id="canvasDefectB3" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 240px; width: 100%"></canvas>
  264. </div>
  265. <div style="width: 50%; height: 250px;">
  266. <div style="color:white;font-size:20px;font-weight:600; text-align:center">试水4</div>
  267. <canvas id="canvasDefectB4" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 240px; width: 100%"></canvas>
  268. </div>
  269. </div>
  270. </div>
  271. </div>-->
  272. </div>
  273. </div>
  274. <script>
  275. var refreshTime1 = 80000;
  276. var refreshTime2 = 3000;
  277. var currentTime1 = 0;
  278. var currentTime2 = 0;
  279. var doGetData;
  280. var doGetTime;
  281. $(document).ready(function () {
  282. initData();
  283. clearData();
  284. doGetData = setInterval(function () { timeUpdate(); }, 1000);
  285. });
  286. function clearData() {
  287. //清除数据
  288. }
  289. function timeUpdate() {
  290. if (currentTime1 <= 0) {
  291. //clearData();
  292. setTimeout(loadData(), 1000);
  293. //loadData();
  294. currentTime1 = refreshTime1;
  295. }
  296. else {
  297. if (currentTime1 > 0) {
  298. //$('#报表加载').html('刷新:' + currentTime1 / 1000 + ' 秒');
  299. currentTime1 = currentTime1 - 1000;
  300. }
  301. }
  302. //if (currentTime2 <= 0) {
  303. // //clearData();
  304. // setTimeout(loadDataCurrentStatus(), 1000);
  305. // //loadData();
  306. // currentTime2 = refreshTime2;
  307. //}
  308. //else {
  309. // if (currentTime2 > 0) {
  310. // $('#报表加载').html('刷新:' + currentTime2 / 1000 + ' 秒');
  311. // currentTime2 = currentTime2 - 1000;
  312. // }
  313. //}
  314. }
  315. function loadDataCurrentStatus() {
  316. $.get("rpt.ashx?m=pieCurrent", function (data) {
  317. var json = JSON.parse(data);
  318. if (json["success"] == true) {
  319. for (var i = 0; i < json["rows"].length; i++) {
  320. if (json["rows"][i]["状态"] == '1') {
  321. $('#currentA' + (i + 1).toString()).addClass("isGreen");
  322. } else if (json["rows"][i]["状态"] == '2') {
  323. $('#currentA' + (i + 1).toString()).addClass("isOrange");
  324. } else if (json["rows"][i]["状态"] == '3') {
  325. $('#currentA' + (i + 1).toString()).addClass("isRed");
  326. } else {
  327. $('#currentA' + (i + 1).toString()).addClass("isWhite");
  328. }
  329. }
  330. }
  331. });
  332. }
  333. function loadData() {
  334. $.get("rpt.ashx?m=table", function (data) {
  335. var json = JSON.parse(data);
  336. if (json["success"] == true) {
  337. for (var i = 0; i < json["rows"].length; i++) {
  338. if (json["rows"][i]["产量"] == "0") {
  339. $('#tr' + (i + 1).toString()).remove();
  340. } else {
  341. $('#pd' + (i + 1).toString()).text(json["rows"][i]["产量"]);
  342. //$('#pg' + (i + 1).toString()).text(json["rows"][i]["合格数"]);
  343. //$('#gp' + (i + 1).toString()).text(json["rows"][i]["合格率"]);
  344. $('#yx' + (i + 1).toString()).text(json["rows"][i]["工作时间"]);
  345. $('#dd' + (i + 1).toString()).text(json["rows"][i]["等待时间"]);
  346. $('#gz' + (i + 1).toString()).text(json["rows"][i]["故障时间"]);
  347. //$('#pd' + (i + 1).toString()).text(json["rows"][i]["产量"]);
  348. //$('#pg' + (i + 1).toString()).text(json["rows"][i]["合格数"]);
  349. //$('#gp' + (i + 1).toString()).text(json["rows"][i]["合格率"]);
  350. }
  351. }
  352. }
  353. });
  354. $.get("rpt.ashx?m=table1", function (data) {
  355. var json = JSON.parse(data);
  356. if (json["success"] == true) {
  357. for (var i = 0; i < json["rows"].length; i++) {
  358. if (json["rows"][i]["产量"] == "0") {
  359. $('#str' + (i + 1).toString()).remove();
  360. } else {
  361. $('#spd' + (i + 1).toString()).text(json["rows"][i]["产量"]);
  362. $('#syx' + (i + 1).toString()).text(json["rows"][i]["工作时间"]);
  363. $('#sdd' + (i + 1).toString()).text(json["rows"][i]["等待时间"]);
  364. $('#sgz' + (i + 1).toString()).text(json["rows"][i]["故障时间"]);
  365. }
  366. }
  367. }
  368. });
  369. $.get("rpt.ashx?m=pie1", function (data) {
  370. var json = JSON.parse(data);
  371. if (json["success"] == true) {
  372. window.DefectA1.data.datasets[0].data = [(json["rows"][0]["NUM1"]), (json["rows"][0]["NUM2"]), (json["rows"][0]["NUM3"])];
  373. window.DefectA1.update();
  374. }
  375. });
  376. $.get("rpt.ashx?m=pie2", function (data) {
  377. var json = JSON.parse(data);
  378. if (json["success"] == true) {
  379. window.DefectA2.data.datasets[0].data = [(json["rows"][0]["NUM1"]), (json["rows"][0]["NUM2"]), (json["rows"][0]["NUM3"])];
  380. window.DefectA2.update();
  381. }
  382. });
  383. $.get("rpt.ashx?m=pie3", function (data) {
  384. var json = JSON.parse(data);
  385. if (json["success"] == true) {
  386. window.DefectA3.data.datasets[0].data = [(json["rows"][0]["NUM1"]), (json["rows"][0]["NUM2"]), (json["rows"][0]["NUM3"])];
  387. window.DefectA3.update();
  388. }
  389. });
  390. $.get("rpt.ashx?m=pie4", function (data) {
  391. var json = JSON.parse(data);
  392. if (json["success"] == true) {
  393. window.DefectA4.data.datasets[0].data = [(json["rows"][0]["NUM1"]), (json["rows"][0]["NUM2"]), (json["rows"][0]["NUM3"])];
  394. window.DefectA4.update();
  395. }
  396. });
  397. $.get("rpt.ashx?m=pie5", function (data) {
  398. var json = JSON.parse(data);
  399. if (json["success"] == true) {
  400. window.DefectA5.data.datasets[0].data = [(json["rows"][0]["NUM1"]), (json["rows"][0]["NUM2"]), (json["rows"][0]["NUM3"])];
  401. window.DefectA5.update();
  402. }
  403. });
  404. $.get("rpt.ashx?m=pie6", function (data) {
  405. var json = JSON.parse(data);
  406. if (json["success"] == true) {
  407. window.DefectA6.data.datasets[0].data = [(json["rows"][0]["NUM1"]), (json["rows"][0]["NUM2"]), (json["rows"][0]["NUM3"])];
  408. window.DefectA6.update();
  409. }
  410. });
  411. $.get("rpt.ashx?m=pie7", function (data) {
  412. var json = JSON.parse(data);
  413. if (json["success"] == true) {
  414. window.DefectA7.data.datasets[0].data = [(json["rows"][0]["NUM1"]), (json["rows"][0]["NUM2"]), (json["rows"][0]["NUM3"])];
  415. window.DefectA7.update();
  416. }
  417. });
  418. $.get("rpt.ashx?m=pie8", function (data) {
  419. var json = JSON.parse(data);
  420. if (json["success"] == true) {
  421. window.DefectA8.data.datasets[0].data = [(json["rows"][0]["NUM1"]), (json["rows"][0]["NUM2"]), (json["rows"][0]["NUM3"])];
  422. window.DefectA8.update();
  423. }
  424. });
  425. $.get("rpt.ashx?m=pie9", function (data) {
  426. var json = JSON.parse(data);
  427. console.log("pie9", json);
  428. if (json["success"] == true) {
  429. window.DefectA9.data.datasets[0].data = [(json["rows"][0]["NUM1"]), (json["rows"][0]["NUM2"]), (json["rows"][0]["NUM3"])];
  430. window.DefectA9.update();
  431. }
  432. });
  433. $.get("rpt.ashx?m=pie10", function (data) {
  434. var json = JSON.parse(data);
  435. if (json["success"] == true) {
  436. window.DefectA10.data.datasets[0].data = [(json["rows"][0]["NUM1"]), (json["rows"][0]["NUM2"]), (json["rows"][0]["NUM3"])];
  437. window.DefectA10.update();
  438. }
  439. });
  440. $.get("rpt.ashx?m=pie11", function (data) {
  441. var json = JSON.parse(data);
  442. if (json["success"] == true) {
  443. window.DefectA11.data.datasets[0].data = [(json["rows"][0]["NUM1"]), (json["rows"][0]["NUM2"]), (json["rows"][0]["NUM3"])];
  444. window.DefectA11.update();
  445. }
  446. });
  447. $.get("rpt.ashx?m=pie12", function (data) {
  448. var json = JSON.parse(data);
  449. if (json["success"] == true) {
  450. window.DefectA12.data.datasets[0].data = [(json["rows"][0]["NUM1"]), (json["rows"][0]["NUM2"]), (json["rows"][0]["NUM3"])];
  451. window.DefectA12.update();
  452. }
  453. });
  454. $.get("rpt.ashx?m=pieCurrent", function (data) {
  455. var json = JSON.parse(data);
  456. if (json["success"] == true) {
  457. for (var i = 0; i < json["rows"].length; i++) {
  458. if (json["rows"][i]["状态"] == '1') {
  459. $('#currentA' + (i + 1).toString()).addClass("isGreen");
  460. } else if (json["rows"][i]["状态"] == '2') {
  461. $('#currentA' + (i + 1).toString()).addClass("isOrange");
  462. } else if (json["rows"][i]["状态"] == '3') {
  463. $('#currentA' + (i + 1).toString()).addClass("isRed");
  464. } else {
  465. $('#currentA' + (i + 1).toString()).addClass("isWhite");
  466. }
  467. }
  468. }
  469. });
  470. //window.DefectA1.data.datasets[0].data = [
  471. // randomScalingFactor(8),
  472. // randomScalingFactor(8)
  473. //];
  474. //window.DefectA1.update();
  475. //window.DefectA2.data.datasets[0].data = [
  476. // randomScalingFactor(8),
  477. // randomScalingFactor(8)
  478. //];
  479. //window.DefectA2.update();
  480. //window.DefectA3.data.datasets[0].data = [
  481. // randomScalingFactor(8),
  482. // randomScalingFactor(8)
  483. //];
  484. //window.DefectA3.update();
  485. //window.DefectA4.data.datasets[0].data = [
  486. // randomScalingFactor(8),
  487. // randomScalingFactor(8)
  488. //];
  489. //window.DefectA4.update();
  490. //window.DefectA5.data.datasets[0].data = [
  491. // randomScalingFactor(8),
  492. // randomScalingFactor(8)
  493. //];
  494. //window.DefectA5.update();
  495. //window.DefectA6.data.datasets[0].data = [
  496. // randomScalingFactor(8),
  497. // randomScalingFactor(8)
  498. //];
  499. //window.DefectA6.update();
  500. //window.DefectA7.data.datasets[0].data = [
  501. // randomScalingFactor(8),
  502. // randomScalingFactor(8)
  503. //];
  504. //window.DefectA7.update();
  505. //window.DefectA8.data.datasets[0].data = [
  506. // randomScalingFactor(8),
  507. // randomScalingFactor(8)
  508. //];
  509. //window.DefectA8.update();
  510. }
  511. function initData() {
  512. window.chartColors = {
  513. red: 'rgb(255, 99, 132)',
  514. orange: 'rgb(255, 159, 64)',
  515. yellow: 'rgb(255, 250, 86)',
  516. green: 'rgb(75, 192, 192)',
  517. blue: 'rgb(54, 162, 250)',
  518. purple: 'rgb(153, 102, 255)',
  519. grey: 'rgb(231,233,237)'
  520. };
  521. var color = Chart.helpers.color;
  522. window.randomScalingFactor = function (num) {
  523. return Math.round(Math.random() * num);
  524. }
  525. Chart.defaults.global.defaultFontColor = 'white';
  526. Chart.defaults.global.defaultFontSize = 16;
  527. Chart.defaults.global.legend.display = false;
  528. //测漏气设备OEE===========================================
  529. window.configDefectA1 = {
  530. data: {
  531. labels: ['工作时间', '等待时间', '故障时间'],
  532. datasets: [{
  533. label: 'OEE',
  534. backgroundColor: [
  535. color(window.chartColors.green).alpha(0.35).rgbString(),
  536. color(window.chartColors.orange).alpha(0.35).rgbString(),
  537. color(window.chartColors.red).alpha(0.35).rgbString()
  538. ],
  539. fill: false,
  540. borderColor: [
  541. window.chartColors.green,
  542. window.chartColors.orange,
  543. window.chartColors.red
  544. ],
  545. borderWidth: 2,
  546. pointRadius: 30,
  547. data: [0, 0, 0]
  548. }]
  549. },
  550. type: 'pie',
  551. options: {
  552. legend: {
  553. display: true
  554. },
  555. title: {
  556. display: false,
  557. text: "测漏气1"
  558. },
  559. tooltips: {
  560. mode: 'point',
  561. intersect: false
  562. },
  563. responsive: true
  564. }
  565. };
  566. var ctxDefectA1 = document.getElementById("canvasDefectA1").getContext("2d");
  567. window.DefectA1 = new Chart(ctxDefectA1, configDefectA1);
  568. //===================================================
  569. //测漏气设备OEE===========================================
  570. window.configDefectA2 = {
  571. data: {
  572. labels: ['工作时间', '等待时间', '故障时间'],
  573. datasets: [{
  574. label: 'OEE',
  575. backgroundColor: [
  576. color(window.chartColors.green).alpha(0.35).rgbString(),
  577. color(window.chartColors.orange).alpha(0.35).rgbString(),
  578. color(window.chartColors.red).alpha(0.35).rgbString()
  579. ],
  580. fill: false,
  581. borderColor: [
  582. window.chartColors.green,
  583. window.chartColors.orange,
  584. window.chartColors.red
  585. ],
  586. borderWidth: 2,
  587. pointRadius: 30,
  588. data: [0, 0, 0]
  589. }]
  590. },
  591. type: 'pie',
  592. options: {
  593. legend: {
  594. display: true
  595. },
  596. title: {
  597. display: false,
  598. text: "测漏气2"
  599. },
  600. tooltips: {
  601. mode: 'point',
  602. intersect: false
  603. },
  604. responsive: true
  605. }
  606. };
  607. var ctxDefectA2 = document.getElementById("canvasDefectA2").getContext("2d");
  608. window.DefectA2 = new Chart(ctxDefectA2, configDefectA2);
  609. //===================================================
  610. //测漏气设备OEE===========================================
  611. window.configDefectA3 = {
  612. data: {
  613. labels: ['工作时间', '等待时间', '故障时间'],
  614. datasets: [{
  615. label: 'OEE',
  616. backgroundColor: [
  617. color(window.chartColors.green).alpha(0.35).rgbString(),
  618. color(window.chartColors.orange).alpha(0.35).rgbString(),
  619. color(window.chartColors.red).alpha(0.35).rgbString()
  620. ],
  621. fill: false,
  622. borderColor: [
  623. window.chartColors.green,
  624. window.chartColors.orange,
  625. window.chartColors.red
  626. ],
  627. borderWidth: 2,
  628. pointRadius: 30,
  629. data: [0, 0, 0]
  630. }]
  631. },
  632. type: 'pie',
  633. options: {
  634. legend: {
  635. display: true
  636. },
  637. title: {
  638. display: false,
  639. text: "测漏气3"
  640. },
  641. tooltips: {
  642. mode: 'point',
  643. intersect: false
  644. },
  645. responsive: true
  646. }
  647. };
  648. var ctxDefectA3 = document.getElementById("canvasDefectA3").getContext("2d");
  649. window.DefectA3 = new Chart(ctxDefectA3, configDefectA3);
  650. //===================================================
  651. //测漏气设备OEE===========================================
  652. window.configDefectA4 = {
  653. data: {
  654. labels: ['工作时间', '等待时间', '故障时间'],
  655. datasets: [{
  656. label: 'OEE',
  657. backgroundColor: [
  658. color(window.chartColors.green).alpha(0.35).rgbString(),
  659. color(window.chartColors.orange).alpha(0.35).rgbString(),
  660. color(window.chartColors.red).alpha(0.35).rgbString()
  661. ],
  662. fill: false,
  663. borderColor: [
  664. window.chartColors.green,
  665. window.chartColors.orange,
  666. window.chartColors.red
  667. ],
  668. borderWidth: 2,
  669. pointRadius: 30,
  670. data: [0, 0, 0]
  671. }]
  672. },
  673. type: 'pie',
  674. options: {
  675. legend: {
  676. display: true
  677. },
  678. title: {
  679. display: false,
  680. text: "测漏气4"
  681. },
  682. tooltips: {
  683. mode: 'point',
  684. intersect: false
  685. },
  686. responsive: true
  687. }
  688. };
  689. var ctxDefectA4 = document.getElementById("canvasDefectA4").getContext("2d");
  690. window.DefectA4 = new Chart(ctxDefectA4, configDefectA4);
  691. //===================================================
  692. //测漏气设备OEE===========================================
  693. window.configDefectA5 = {
  694. data: {
  695. labels: ['工作时间', '等待时间', '故障时间'],
  696. datasets: [{
  697. label: 'OEE',
  698. backgroundColor: [
  699. color(window.chartColors.green).alpha(0.35).rgbString(),
  700. color(window.chartColors.orange).alpha(0.35).rgbString(),
  701. color(window.chartColors.red).alpha(0.35).rgbString()
  702. ],
  703. fill: false,
  704. borderColor: [
  705. window.chartColors.green,
  706. window.chartColors.orange,
  707. window.chartColors.red
  708. ],
  709. borderWidth: 2,
  710. pointRadius: 30,
  711. data: [0, 0, 0]
  712. }]
  713. },
  714. type: 'pie',
  715. options: {
  716. legend: {
  717. display: true
  718. },
  719. title: {
  720. display: false,
  721. text: "测漏气5"
  722. },
  723. tooltips: {
  724. mode: 'point',
  725. intersect: false
  726. },
  727. responsive: true
  728. }
  729. };
  730. var ctxDefectA5 = document.getElementById("canvasDefectA5").getContext("2d");
  731. window.DefectA5 = new Chart(ctxDefectA5, configDefectA5);
  732. //===================================================
  733. //测漏气设备OEE===========================================
  734. window.configDefectA6 = {
  735. data: {
  736. labels: ['工作时间', '等待时间', '故障时间'],
  737. datasets: [{
  738. label: 'OEE',
  739. backgroundColor: [
  740. color(window.chartColors.green).alpha(0.35).rgbString(),
  741. color(window.chartColors.orange).alpha(0.35).rgbString(),
  742. color(window.chartColors.red).alpha(0.35).rgbString()
  743. ],
  744. fill: false,
  745. borderColor: [
  746. window.chartColors.green,
  747. window.chartColors.orange,
  748. window.chartColors.red
  749. ],
  750. borderWidth: 2,
  751. pointRadius: 30,
  752. data: [0, 0, 0]
  753. }]
  754. },
  755. type: 'pie',
  756. options: {
  757. legend: {
  758. display: true
  759. },
  760. title: {
  761. display: false,
  762. text: "测漏气6"
  763. },
  764. tooltips: {
  765. mode: 'point',
  766. intersect: false
  767. },
  768. responsive: true
  769. }
  770. };
  771. var ctxDefectA6 = document.getElementById("canvasDefectA6").getContext("2d");
  772. window.DefectA6 = new Chart(ctxDefectA6, configDefectA6);
  773. //===================================================
  774. //测漏气设备OEE===========================================
  775. window.configDefectA7 = {
  776. data: {
  777. labels: ['工作时间', '等待时间', '故障时间'],
  778. datasets: [{
  779. label: 'OEE',
  780. backgroundColor: [
  781. color(window.chartColors.green).alpha(0.35).rgbString(),
  782. color(window.chartColors.orange).alpha(0.35).rgbString(),
  783. color(window.chartColors.red).alpha(0.35).rgbString()
  784. ],
  785. fill: false,
  786. borderColor: [
  787. window.chartColors.green,
  788. window.chartColors.orange,
  789. window.chartColors.red
  790. ],
  791. borderWidth: 2,
  792. pointRadius: 30,
  793. data: [0, 0, 0]
  794. }]
  795. },
  796. type: 'pie',
  797. options: {
  798. legend: {
  799. display: true
  800. },
  801. title: {
  802. display: false,
  803. text: "测漏气7"
  804. },
  805. tooltips: {
  806. mode: 'point',
  807. intersect: false
  808. },
  809. responsive: true
  810. }
  811. };
  812. var ctxDefectA7 = document.getElementById("canvasDefectA7").getContext("2d");
  813. window.DefectA7 = new Chart(ctxDefectA7, configDefectA7);
  814. //===================================================
  815. //测漏气设备OEE===========================================
  816. window.configDefectA8 = {
  817. data: {
  818. labels: ['工作时间', '等待时间', '故障时间'],
  819. datasets: [{
  820. label: 'OEE',
  821. backgroundColor: [
  822. color(window.chartColors.green).alpha(0.35).rgbString(),
  823. color(window.chartColors.orange).alpha(0.35).rgbString(),
  824. color(window.chartColors.red).alpha(0.35).rgbString()
  825. ],
  826. fill: false,
  827. borderColor: [
  828. window.chartColors.green,
  829. window.chartColors.orange,
  830. window.chartColors.red
  831. ],
  832. borderWidth: 2,
  833. pointRadius: 30,
  834. data: [0, 0, 0]
  835. }]
  836. },
  837. type: 'pie',
  838. options: {
  839. legend: {
  840. display: true
  841. },
  842. title: {
  843. display: false,
  844. text: "测漏气8"
  845. },
  846. tooltips: {
  847. mode: 'point',
  848. intersect: false
  849. },
  850. responsive: true
  851. }
  852. };
  853. var ctxDefectA8 = document.getElementById("canvasDefectA8").getContext("2d");
  854. window.DefectA8 = new Chart(ctxDefectA8, configDefectA8);
  855. //===================================================
  856. window.configDefectA9 = {
  857. data: {
  858. labels: ['工作时间', '等待时间', '故障时间'],
  859. datasets: [{
  860. label: 'OEE',
  861. backgroundColor: [
  862. color(window.chartColors.green).alpha(0.35).rgbString(),
  863. color(window.chartColors.orange).alpha(0.35).rgbString(),
  864. color(window.chartColors.red).alpha(0.35).rgbString()
  865. ],
  866. fill: false,
  867. borderColor: [
  868. window.chartColors.green,
  869. window.chartColors.orange,
  870. window.chartColors.red
  871. ],
  872. borderWidth: 2,
  873. pointRadius: 30,
  874. data: [0, 0, 0]
  875. }]
  876. },
  877. type: 'pie',
  878. options: {
  879. legend: {
  880. display: true
  881. },
  882. title: {
  883. display: false,
  884. text: "倒水机1"
  885. },
  886. tooltips: {
  887. mode: 'point',
  888. intersect: false
  889. },
  890. responsive: true
  891. }
  892. };
  893. var ctxDefectA9 = document.getElementById("canvasDefectA9").getContext("2d");
  894. window.DefectA9 = new Chart(ctxDefectA9, configDefectA9);
  895. window.configDefectA10 = {
  896. data: {
  897. labels: ['工作时间', '等待时间', '故障时间'],
  898. datasets: [{
  899. label: 'OEE',
  900. backgroundColor: [
  901. color(window.chartColors.green).alpha(0.35).rgbString(),
  902. color(window.chartColors.orange).alpha(0.35).rgbString(),
  903. color(window.chartColors.red).alpha(0.35).rgbString()
  904. ],
  905. fill: false,
  906. borderColor: [
  907. window.chartColors.green,
  908. window.chartColors.orange,
  909. window.chartColors.red
  910. ],
  911. borderWidth: 2,
  912. pointRadius: 30,
  913. data: [0, 0, 0]
  914. }]
  915. },
  916. type: 'pie',
  917. options: {
  918. legend: {
  919. display: true
  920. },
  921. title: {
  922. display: false,
  923. text: "倒水机2"
  924. },
  925. tooltips: {
  926. mode: 'point',
  927. intersect: false
  928. },
  929. responsive: true
  930. }
  931. };
  932. var ctxDefectA10 = document.getElementById("canvasDefectA10").getContext("2d");
  933. window.DefectA10 = new Chart(ctxDefectA10, configDefectA10);
  934. window.configDefectA11 = {
  935. data: {
  936. labels: ['工作时间', '等待时间', '故障时间'],
  937. datasets: [{
  938. label: 'OEE',
  939. backgroundColor: [
  940. color(window.chartColors.green).alpha(0.35).rgbString(),
  941. color(window.chartColors.orange).alpha(0.35).rgbString(),
  942. color(window.chartColors.red).alpha(0.35).rgbString()
  943. ],
  944. fill: false,
  945. borderColor: [
  946. window.chartColors.green,
  947. window.chartColors.orange,
  948. window.chartColors.red
  949. ],
  950. borderWidth: 2,
  951. pointRadius: 30,
  952. data: [0, 0, 0]
  953. }]
  954. },
  955. type: 'pie',
  956. options: {
  957. legend: {
  958. display: true
  959. },
  960. title: {
  961. display: false,
  962. text: "倒水机3"
  963. },
  964. tooltips: {
  965. mode: 'point',
  966. intersect: false
  967. },
  968. responsive: true
  969. }
  970. };
  971. var ctxDefectA11 = document.getElementById("canvasDefectA11").getContext("2d");
  972. window.DefectA11 = new Chart(ctxDefectA11, configDefectA11);
  973. window.configDefectA12 = {
  974. data: {
  975. labels: ['工作时间', '等待时间', '故障时间'],
  976. datasets: [{
  977. label: 'OEE',
  978. backgroundColor: [
  979. color(window.chartColors.green).alpha(0.35).rgbString(),
  980. color(window.chartColors.orange).alpha(0.35).rgbString(),
  981. color(window.chartColors.red).alpha(0.35).rgbString()
  982. ],
  983. fill: false,
  984. borderColor: [
  985. window.chartColors.green,
  986. window.chartColors.orange,
  987. window.chartColors.red
  988. ],
  989. borderWidth: 2,
  990. pointRadius: 30,
  991. data: [0, 0, 0]
  992. }]
  993. },
  994. type: 'pie',
  995. options: {
  996. legend: {
  997. display: true
  998. },
  999. title: {
  1000. display: false,
  1001. text: "倒水机4"
  1002. },
  1003. tooltips: {
  1004. mode: 'point',
  1005. intersect: false
  1006. },
  1007. responsive: true
  1008. }
  1009. };
  1010. var ctxDefectA12 = document.getElementById("canvasDefectA12").getContext("2d");
  1011. window.DefectA12 = new Chart(ctxDefectA12, configDefectA12);
  1012. ////试水设备OEE===========================================
  1013. //window.configDefectB1 = {
  1014. // data: {
  1015. // labels: ['工作时间', '等待时间', '故障时间'],
  1016. // datasets: [{
  1017. // label: 'OEE',
  1018. // backgroundColor: [
  1019. // color(window.chartColors.green).alpha(0.35).rgbString(),
  1020. // color(window.chartColors.orange).alpha(0.35).rgbString()
  1021. // ],
  1022. // fill: false,
  1023. // borderColor: [
  1024. // window.chartColors.green,
  1025. // window.chartColors.orange
  1026. // ],
  1027. // borderWidth: 2,
  1028. // pointRadius: 30,
  1029. // data: [0,0,0]
  1030. // }]
  1031. // },
  1032. // type: 'pie',
  1033. // options: {
  1034. // legend: {
  1035. // display: true
  1036. // },
  1037. // title: {
  1038. // display: false,
  1039. // text: "试水1"
  1040. // },
  1041. // tooltips: {
  1042. // mode: 'point',
  1043. // intersect: false
  1044. // },
  1045. // responsive: true
  1046. // }
  1047. //};
  1048. //var ctxDefectB1 = document.getElementById("canvasDefectB1").getContext("2d");
  1049. //window.DefectB1 = new Chart(ctxDefectB1, configDefectB1);
  1050. ////===================================================
  1051. ////试水设备OEE===========================================
  1052. //window.configDefectB2 = {
  1053. // data: {
  1054. // labels: ['工作时间', '等待时间', '故障时间'],
  1055. // datasets: [{
  1056. // label: 'OEE',
  1057. // backgroundColor: [
  1058. // color(window.chartColors.green).alpha(0.35).rgbString(),
  1059. // color(window.chartColors.orange).alpha(0.35).rgbString()
  1060. // ],
  1061. // fill: false,
  1062. // borderColor: [
  1063. // window.chartColors.green,
  1064. // window.chartColors.orange
  1065. // ],
  1066. // borderWidth: 2,
  1067. // pointRadius: 30,
  1068. // data: [0,0,0]
  1069. // }]
  1070. // },
  1071. // type: 'pie',
  1072. // options: {
  1073. // legend: {
  1074. // display: true
  1075. // },
  1076. // title: {
  1077. // display: false,
  1078. // text: "试水2"
  1079. // },
  1080. // tooltips: {
  1081. // mode: 'point',
  1082. // intersect: false
  1083. // },
  1084. // responsive: true
  1085. // }
  1086. //};
  1087. //var ctxDefectB2 = document.getElementById("canvasDefectB2").getContext("2d");
  1088. //window.DefectB2 = new Chart(ctxDefectB2, configDefectB2);
  1089. ////===================================================
  1090. ////试水设备OEE===========================================
  1091. //window.configDefectB3 = {
  1092. // data: {
  1093. // labels: ['工作时间', '等待时间', '故障时间'],
  1094. // datasets: [{
  1095. // label: 'OEE',
  1096. // backgroundColor: [
  1097. // color(window.chartColors.green).alpha(0.35).rgbString(),
  1098. // color(window.chartColors.orange).alpha(0.35).rgbString()
  1099. // ],
  1100. // fill: false,
  1101. // borderColor: [
  1102. // window.chartColors.green,
  1103. // window.chartColors.orange
  1104. // ],
  1105. // borderWidth: 2,
  1106. // pointRadius: 30,
  1107. // data: [0,0,0]
  1108. // }]
  1109. // },
  1110. // type: 'pie',
  1111. // options: {
  1112. // legend: {
  1113. // display: true
  1114. // },
  1115. // title: {
  1116. // display: false,
  1117. // text: "试水3"
  1118. // },
  1119. // tooltips: {
  1120. // mode: 'point',
  1121. // intersect: false
  1122. // },
  1123. // responsive: true
  1124. // }
  1125. //};
  1126. //var ctxDefectB3 = document.getElementById("canvasDefectB3").getContext("2d");
  1127. //window.DefectB3 = new Chart(ctxDefectB3, configDefectB3);
  1128. ////===================================================
  1129. ////试水设备OEE===========================================
  1130. //window.configDefectB4 = {
  1131. // data: {
  1132. // labels: ['工作时间', '等待时间', '故障时间'],
  1133. // datasets: [{
  1134. // label: 'OEE',
  1135. // backgroundColor: [
  1136. // color(window.chartColors.green).alpha(0.35).rgbString(),
  1137. // color(window.chartColors.orange).alpha(0.35).rgbString()
  1138. // ],
  1139. // fill: false,
  1140. // borderColor: [
  1141. // window.chartColors.green,
  1142. // window.chartColors.orange
  1143. // ],
  1144. // borderWidth: 2,
  1145. // pointRadius: 30,
  1146. // data: [0,0,0]
  1147. // }]
  1148. // },
  1149. // type: 'pie',
  1150. // options: {
  1151. // legend: {
  1152. // display: true
  1153. // },
  1154. // title: {
  1155. // display: false,
  1156. // text: "试水4"
  1157. // },
  1158. // tooltips: {
  1159. // mode: 'point',
  1160. // intersect: false
  1161. // },
  1162. // responsive: true
  1163. // }
  1164. //};
  1165. //var ctxDefectB4 = document.getElementById("canvasDefectB4").getContext("2d");
  1166. //window.DefectB4 = new Chart(ctxDefectB4, configDefectB4);
  1167. ////===================================================
  1168. }
  1169. </script>
  1170. <script src="/Plugins/chartjs-2.8.0/chart-2.8.min.js"></script>
  1171. <script src="/Plugins/chartjs-2.8.0/chartjs-plugin-datalabels.js"></script>
  1172. <script src="/Plugins/chartjs-2.8.0/utils.js"></script>
  1173. <script src="/Plugins/circleChart/circleChart.min.js"></script>
  1174. <style>
  1175. .isGreen {
  1176. background-color: #33bad7;
  1177. box-shadow: 0 0 15px #13e5eb;
  1178. }
  1179. .isOrange {
  1180. background-color: #dd8935;
  1181. box-shadow: 0 0 15px orange;
  1182. }
  1183. .isRed {
  1184. background-color: #cf406d;
  1185. box-shadow: 0 0 15px #c35678;
  1186. }
  1187. .isWhite {
  1188. background-color: white;
  1189. box-shadow: 0 0 15px white;
  1190. }
  1191. </style>
  1192. </body>
  1193. </html>