index2.html 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516
  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">
  18. 生产数据监控&nbsp;&nbsp;<span class="box_title_arrow">>>></span>
  19. </div>
  20. <div class="box_body" style="display: flex; flex-direction: column;">
  21. <div style="width:1840px;height:480px;display:flex;flex-direction:row;">
  22. <div style="width:130px;height:250px;">
  23. <div style="width: 100%;">
  24. <table cellspacing="0" cellpadding="0" border="0" style="width: 100%; border-left: 1px dashed #38dcff; ">
  25. <tr class="tr_title">
  26. <td>成型</td>
  27. </tr>
  28. <tr class="tr_bg_light">
  29. <td><img src="/Img/robot02.png" width="100" /></td>
  30. </tr>
  31. <tr class="tr_bg_dark">
  32. <td>计件</td>
  33. </tr>
  34. <tr class="tr_bg_light">
  35. <td><span id="cxjj">0</span></td>
  36. </tr>
  37. <tr class="tr_bg_dark">
  38. <td><span id="cxyc_title">异常</span></td>
  39. </tr>
  40. <tr class="tr_bg_light">
  41. <td><span id="cxyc">0</span></td>
  42. </tr>
  43. </table>
  44. </div>
  45. </div>
  46. <div style="width:130px;height:250px;display:flex;">
  47. <div style="width:100%; display :flex; align-items:center;">
  48. <div style="height: 50px; width: 100%; border-top: 1px dashed #38dcff; border-bottom: 1px dashed #38dcff; ">
  49. <span id="cxss" style="color: white; font-size: 14px; text-align:center;"></span>
  50. </div>
  51. </div>
  52. </div>
  53. <div style="width:130px;height:250px;">
  54. <div style="width: 100%;">
  55. <table cellspacing="0" cellpadding="0" border="0" style="width: 100%; border-left: 1px dashed #38dcff; ">
  56. <tr class="tr_title">
  57. <td>一检</td>
  58. </tr>
  59. <tr class="tr_bg_light">
  60. <td><img src="/Img/robot02.png" width="100" /></td>
  61. </tr>
  62. <tr class="tr_bg_dark">
  63. <td>计件</td>
  64. </tr>
  65. <tr class="tr_bg_light">
  66. <td><span id="yjjj">0</span></td>
  67. </tr>
  68. <tr class="tr_bg_dark">
  69. <td><span id="yjyc_title">异常</span></td>
  70. </tr>
  71. <tr class="tr_bg_light">
  72. <td><span id="yjyc">0</span></td>
  73. </tr>
  74. </table>
  75. </div>
  76. </div>
  77. <div style="width:130px;height:250px;display:flex;">
  78. <div style="width: 100%; display: flex; align-items: center; ">
  79. <div style="height: 50px; width: 100%; border-top: 1px dashed #38dcff; border-bottom: 1px dashed #38dcff; ">
  80. <span id="yjss" style="color: white; font-size: 14px; text-align:center;"></span>
  81. </div>
  82. </div>
  83. </div>
  84. <div style="width:130px;height:250px;">
  85. <div style="width: 100%;">
  86. <table cellspacing="0" cellpadding="0" border="0" style="width: 100%; border-left: 1px dashed #38dcff; ">
  87. <tr class="tr_title">
  88. <td>改洗</td>
  89. </tr>
  90. <tr class="tr_bg_light">
  91. <td><img src="/Img/robot02.png" width="100" /></td>
  92. </tr>
  93. <tr class="tr_bg_dark">
  94. <td>计件</td>
  95. </tr>
  96. <tr class="tr_bg_light">
  97. <td><span id="gxjj">0</span></td>
  98. </tr>
  99. <tr class="tr_bg_dark">
  100. <td><span id="gxyc_title">异常</span></td>
  101. </tr>
  102. <tr class="tr_bg_light">
  103. <td><span id="gxyc">0</span></td>
  104. </tr>
  105. </table>
  106. </div>
  107. </div>
  108. <div style="width:130px;height:250px;display:flex;">
  109. <div style="width: 100%; display: flex; align-items: center; ">
  110. <div style="height: 50px; width: 100%; border-top: 1px dashed #38dcff; border-bottom: 1px dashed #38dcff; ">
  111. <span id="gxss" style="color: white; font-size: 14px; text-align:center;"></span>
  112. </div>
  113. </div>
  114. </div>
  115. <div style="width:130px;height:250px;">
  116. <div style="width: 100%;">
  117. <table cellspacing="0" cellpadding="0" border="0" style="width: 100%; border-left: 1px dashed #38dcff; ">
  118. <tr class="tr_title">
  119. <td>二检</td>
  120. </tr>
  121. <tr class="tr_bg_light">
  122. <td><img src="/Img/robot02.png" width="100" /></td>
  123. </tr>
  124. <tr class="tr_bg_dark">
  125. <td>计件</td>
  126. </tr>
  127. <tr class="tr_bg_light">
  128. <td><span id="ejjj">0</span></td>
  129. </tr>
  130. <tr class="tr_bg_dark">
  131. <td><span id="ejyc_title">异常</span></td>
  132. </tr>
  133. <tr class="tr_bg_light">
  134. <td><span id="ejyc">0</span></td>
  135. </tr>
  136. </table>
  137. </div>
  138. </div>
  139. <div style="width:130px;height:250px;display:flex;">
  140. <div style="width: 100%; display: flex; align-items: center; ">
  141. <div style="height: 50px; width: 100%; border-top: 1px dashed #38dcff; border-bottom: 1px dashed #38dcff; ">
  142. <span id="ejss" style="color: white; font-size: 14px; text-align:center;"></span>
  143. </div>
  144. </div>
  145. </div>
  146. <div style="width:130px;height:250px;">
  147. <div style="width: 100%;">
  148. <table cellspacing="0" cellpadding="0" border="0" style="width: 100%; border-left: 1px dashed #38dcff; ">
  149. <tr class="tr_title">
  150. <td>施釉</td>
  151. </tr>
  152. <tr class="tr_bg_light">
  153. <td><img src="/Img/robot02.png" width="100" /></td>
  154. </tr>
  155. <tr class="tr_bg_dark">
  156. <td>计件</td>
  157. </tr>
  158. <tr class="tr_bg_light">
  159. <td><span id="syjj">0</span></td>
  160. </tr>
  161. <tr class="tr_bg_dark">
  162. <td><span id="syyc_title">异常</span></td>
  163. </tr>
  164. <tr class="tr_bg_light">
  165. <td><span id="syyc">0</span></td>
  166. </tr>
  167. </table>
  168. </div>
  169. </div>
  170. <div style="width:130px;height:250px;display:flex;">
  171. <div style="width: 100%; display: flex; align-items: center; ">
  172. <div style="height: 50px; width: 100%; border-top: 1px dashed #38dcff; border-bottom: 1px dashed #38dcff; ">
  173. <span id="syss" style="color: white; font-size: 14px; text-align:center;"></span>
  174. </div>
  175. </div>
  176. </div>
  177. <div style="width:130px;height:250px;">
  178. <div style="width: 100%;">
  179. <table cellspacing="0" cellpadding="0" border="0" style="width: 100%; border-left: 1px dashed #38dcff; ">
  180. <tr class="tr_title">
  181. <td>烧成</td>
  182. </tr>
  183. <tr class="tr_bg_light">
  184. <td><img src="/Img/robot02.png" width="100" /></td>
  185. </tr>
  186. <tr class="tr_bg_dark">
  187. <td>计件</td>
  188. </tr>
  189. <tr class="tr_bg_light">
  190. <td><span id="scjj">0</span></td>
  191. </tr>
  192. <tr class="tr_bg_dark">
  193. <td><span id="scyc_title">异常</span></td>
  194. </tr>
  195. <tr class="tr_bg_light">
  196. <td><span id="scyc">0</span></td>
  197. </tr>
  198. </table>
  199. </div>
  200. </div>
  201. <div style="width:130px;height:250px;display:flex;">
  202. <div style="width: 100%; display: flex; align-items: center; ">
  203. <div style="height: 50px; width: 100%; border-top: 1px dashed #38dcff; border-bottom: 1px dashed #38dcff; ">
  204. <span id="scss" style="color: white; font-size: 14px; text-align:center;"></span>
  205. </div>
  206. </div>
  207. </div>
  208. <div style="width:130px;height:250px;">
  209. <div style="width: 100%;">
  210. <table cellspacing="0" cellpadding="0" border="0" style="width: 100%; border-left: 1px dashed #38dcff; ">
  211. <tr class="tr_title">
  212. <td>成检</td>
  213. </tr>
  214. <tr class="tr_bg_light">
  215. <td><img src="/Img/robot02.png" width="100" /></td>
  216. </tr>
  217. <tr class="tr_bg_dark">
  218. <td>计件</td>
  219. </tr>
  220. <tr class="tr_bg_light">
  221. <td><span id="cjjj">0</span></td>
  222. </tr>
  223. <tr class="tr_bg_dark">
  224. <td><span id="cjyc_title">异常</span></td>
  225. </tr>
  226. <tr class="tr_bg_light">
  227. <td><span id="cjyc">0</span></td>
  228. </tr>
  229. </table>
  230. </div>
  231. </div>
  232. <div style="width:130px;height:250px;display:flex;">
  233. <div style="width: 100%; display: flex; align-items: center; ">
  234. <div style="height: 50px; width: 100%; border-top: 1px dashed #38dcff; border-bottom: 1px dashed #38dcff; ">
  235. <span id="cjss" style="color: white; font-size: 14px; text-align:center;"></span>
  236. </div>
  237. </div>
  238. </div>
  239. </div>
  240. <div style="width:1840px;height:480px;display:flex;flex-direction:row;">
  241. <div style="width: 50%;height:480px;">
  242. <canvas id="canvasProcedureCL" style="-moz-user-select: none;-webkit-user-select: none;-ms-user-select: none; height:480px;width:100%"></canvas>
  243. </div>
  244. <div style="width: 50%; height: 480px; ">
  245. <canvas id="canvasProcedureYC" style="-moz-user-select: none;-webkit-user-select: none;-ms-user-select: none; height:480px;width:100%"></canvas>
  246. </div>
  247. </div>
  248. </div>
  249. </div>
  250. <script>
  251. $(document).ready(function () {
  252. initData();
  253. doGetData = setInterval(function () { timeUpdate(); }, 500);
  254. });
  255. function timeUpdate() {
  256. loadData();
  257. if (Math.round(Math.random() * 3) == 1) {
  258. if (Math.round(Math.random() * 20) == 1) {
  259. animateAddNum("#cxyc");
  260. animateInLeftHinge("#cxss", "【H0966M】<br/>12345678901");
  261. } else {
  262. animateAddNum("#cxjj");
  263. animateInLeftOutRight("#cxss", "【H0966M】<br/>12345678901");
  264. }
  265. }
  266. if (Math.round(Math.random() * 5) == 1) {
  267. if (Math.round(Math.random() * 20) == 1) {
  268. animateAddNum("#yjyc");
  269. animateInLeftHinge("#yjss", "【H0966M】<br/>12345678901");
  270. } else {
  271. animateAddNum("#yjjj");
  272. animateInLeftOutRight("#yjss", "【H0966M】<br/>12345678901");
  273. }
  274. }
  275. if (Math.round(Math.random() * 6) == 1) {
  276. if (Math.round(Math.random() * 20) == 1) {
  277. animateAddNum("#gxyc");
  278. animateInLeftHinge("#gxss", "【H0966M】<br/>12345678901");
  279. } else {
  280. animateAddNum("#gxjj");
  281. animateInLeftOutRight("#gxss", "【H0966M】<br/>12345678901");
  282. }
  283. }
  284. if (Math.round(Math.random() * 4) == 1) {
  285. if (Math.round(Math.random() * 20) == 1) {
  286. animateAddNum("#ejyc");
  287. animateInLeftHinge("#ejss", "【H0966M】<br/>12345678901");
  288. } else {
  289. animateAddNum("#ejjj");
  290. animateInLeftOutRight("#ejss", "【H0966M】<br/>12345678901");
  291. }
  292. }
  293. if (Math.round(Math.random() * 5) == 1) {
  294. if (Math.round(Math.random() * 50) == 1) {
  295. animateAddNum("#syyc");
  296. animateInLeftHinge("#syss", "【H0966M】<br/>12345678901");
  297. } else {
  298. animateAddNum("#syjj");
  299. animateInLeftOutRight("#syss", "【H0966M】<br/>12345678901");
  300. }
  301. }
  302. if (Math.round(Math.random() * 5) == 1) {
  303. if (Math.round(Math.random() * 20) == 1) {
  304. animateAddNum("#scyc");
  305. animateInLeftHinge("#scss", "【H0966M】<br/>12345678901");
  306. } else {
  307. animateAddNum("#scjj");
  308. animateInLeftOutRight("#scss", "【H0966M】<br/>12345678901");
  309. }
  310. }
  311. if (Math.round(Math.random() * 5) == 1) {
  312. if (Math.round(Math.random() * 20) == 1) {
  313. animateAddNum("#cjyc");
  314. animateInLeftHinge("#cjss", "【H0966M】<br/>12345678901");
  315. } else {
  316. animateAddNum("#cjjj");
  317. animateInLeftOutRight("#cjss", "【H0966M】<br/>12345678901");
  318. }
  319. }
  320. }
  321. function loadData() {
  322. //异常统计===================================
  323. window.ProcedureYC.data.datasets[0].data = [
  324. parseInt($("#cxjj").text()),
  325. parseInt($("#yjjj").text()),
  326. parseInt($("#gxjj").text()),
  327. parseInt($("#ejjj").text()),
  328. parseInt($("#syjj").text()),
  329. parseInt($("#scjj").text()),
  330. parseInt($("#cjjj").text())
  331. ];
  332. window.ProcedureYC.data.datasets[1].data = [
  333. parseInt($("#cxyc").text()),
  334. parseInt($("#yjyc").text()),
  335. parseInt($("#gxyc").text()),
  336. parseInt($("#ejyc").text()),
  337. parseInt($("#syyc").text()),
  338. parseInt($("#scyc").text()),
  339. parseInt($("#cjyc").text())
  340. ];
  341. window.ProcedureYC.update();
  342. //===================================================
  343. //产量统计===================================
  344. window.ProcedureCL.data.datasets[0].data = [
  345. parseInt($("#cxjj").text()),
  346. parseInt($("#yjjj").text()),
  347. parseInt($("#gxjj").text()),
  348. parseInt($("#ejjj").text()),
  349. parseInt($("#syjj").text()),
  350. parseInt($("#scjj").text()),
  351. parseInt($("#cjjj").text())
  352. ];
  353. window.ProcedureCL.data.datasets[1].data = [
  354. parseInt($("#cxyc").text()),
  355. parseInt($("#yjyc").text()),
  356. parseInt($("#gxyc").text()),
  357. parseInt($("#ejyc").text()),
  358. parseInt($("#syyc").text()),
  359. parseInt($("#scyc").text()),
  360. parseInt($("#cjyc").text())
  361. ];
  362. window.ProcedureCL.update();
  363. //===================================================
  364. }
  365. function initData() {
  366. window.chartColors = {
  367. red: 'rgb(255, 99, 132)',
  368. orange: 'rgb(255, 159, 64)',
  369. yellow: 'rgb(255, 250, 86)',
  370. green: 'rgb(75, 192, 192)',
  371. blue: 'rgb(54, 162, 250)',
  372. purple: 'rgb(153, 102, 255)',
  373. grey: 'rgb(231,233,237)'
  374. };
  375. var color = Chart.helpers.color;
  376. window.randomScalingFactor = function (num) {
  377. return Math.round(Math.random() * num);
  378. }
  379. Chart.defaults.global.defaultFontColor = 'white';
  380. Chart.defaults.global.defaultFontSize = 24;
  381. Chart.defaults.global.legend.display = false;
  382. //异常统计=======================================
  383. window.configProcedureYC = {
  384. data: {
  385. labels: ['成型', '一检', '改洗', '二检', '施釉', '烧成', '成检'],
  386. datasets: [{
  387. label: '产量',
  388. backgroundColor: color(window.chartColors.blue).alpha(0.35).rgbString(),
  389. fill:false,
  390. borderColor: window.chartColors.blue,
  391. borderWidth: 1,
  392. data: [0, 0, 0, 0, 0, 0, 0]
  393. },
  394. {
  395. label: '异常',
  396. backgroundColor: color(window.chartColors.orange).alpha(0.35).rgbString(),
  397. fill:false,
  398. borderColor: window.chartColors.orange,
  399. borderWidth: 1,
  400. data: [0, 0, 0, 0, 0, 0, 0]
  401. }
  402. ]
  403. },
  404. type: 'line',
  405. options: {
  406. legend: {
  407. display: true
  408. },
  409. title: {
  410. display: true,
  411. text: "生产工序产量统计"
  412. },
  413. tooltips: {
  414. mode: 'point',
  415. intersect: false
  416. },
  417. responsive: true,
  418. scales: {
  419. xAxes: [{
  420. stacked: false
  421. }],
  422. yAxes: [{
  423. display: true,
  424. stacked: false,
  425. ticks: {
  426. //min: 0,
  427. //stepSize: 500,
  428. //max: 3500
  429. }
  430. }]
  431. }
  432. }
  433. };
  434. var ctxProcedureYC = document.getElementById("canvasProcedureYC").getContext("2d");
  435. window.ProcedureYC = new Chart(ctxProcedureYC, configProcedureYC);
  436. //===================================================
  437. //产量统计=======================================
  438. window.configProcedureCL = {
  439. data: {
  440. labels: ['成型', '一检', '改洗', '二检', '施釉', '烧成', '成检'],
  441. datasets: [{
  442. label: '计件',
  443. backgroundColor: color(window.chartColors.blue).alpha(0.35).rgbString(),
  444. borderColor: window.chartColors.blue,
  445. borderWidth: 1,
  446. data: [0, 0, 0, 0, 0, 0, 0]
  447. },
  448. {
  449. label: '异常',
  450. backgroundColor: color(window.chartColors.orange).alpha(0.35).rgbString(),
  451. borderColor: window.chartColors.orange,
  452. borderWidth: 1,
  453. data: [0, 0, 0, 0, 0, 0, 0]
  454. }
  455. ]
  456. },
  457. type: 'bar',
  458. options: {
  459. legend: {
  460. display: true
  461. },
  462. title: {
  463. display: true,
  464. text: "生产工序产量统计"
  465. },
  466. tooltips: {
  467. mode: 'point',
  468. intersect: false
  469. },
  470. responsive: true,
  471. scales: {
  472. xAxes: [{
  473. stacked: true
  474. }],
  475. yAxes: [{
  476. display: true,
  477. stacked: true,
  478. //ticks: {
  479. // min: 0,
  480. // stepSize: 500,
  481. // max: 3500
  482. //}
  483. }]
  484. }
  485. }
  486. };
  487. var ctxProcedureCL = document.getElementById("canvasProcedureCL").getContext("2d");
  488. window.ProcedureCL = new Chart(ctxProcedureCL, configProcedureCL);
  489. //===================================================
  490. }
  491. </script>
  492. <script src="/Plugins/chartjs-2.8.0/chart-2.8.min.js"></script>
  493. <!--<script src="/Plugins/chartjs-2.8.0/chartjs-plugin-datalabels.js"></script>-->
  494. <script src="/Plugins/chartjs-2.8.0/utils.js"></script>
  495. <script src="/Plugins/circleChart/circleChart.min.js"></script>
  496. </body>
  497. </html>