dapingmu.html 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543
  1. <!DOCTYPE html>
  2. <html style="height: 100%">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge">
  6. <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  7. <title>流水线管理页</title>
  8. <!-- Favicon-->
  9. <link rel="icon" href="favicon.ico" type="image/x-icon">
  10. <!-- Google Fonts -->
  11. <link href="https://fonts.googleapis.com/css?family=Roboto:400,700&subset=latin,cyrillic-ext" rel="stylesheet" type="text/css">
  12. <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" type="text/css">
  13. <!-- Bootstrap Core Css -->
  14. <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
  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.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="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
  26. <script src="https://cdn.bootcss.com/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
  27. <script src="https://cdn.bootcss.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
  28. <link rel="icon" href="https://static.jianshukeji.com/highcharts/images/favicon.ico">
  29. <meta name="viewport" content="width=device-width, initial-scale=1">
  30. <style>
  31. /* css 代码 */
  32. </style>
  33. <script src="https://img.hcharts.cn/highcharts/highcharts.js"></script>
  34. <script src="https://img.hcharts.cn/highcharts/modules/exporting.js"></script>
  35. <script src="https://img.hcharts.cn/highcharts-plugins/highcharts-zh_CN.js"></script>
  36. <script language="JavaScript">
  37. function startTime()
  38. {
  39. var today=new Date();//定义日期对象
  40. var yyyy = today.getFullYear();//通过日期对象的getFullYear()方法返回年
  41. var MM = today.getMonth()+1;//通过日期对象的getMonth()方法返回年
  42. var dd = today.getDate();//通过日期对象的getDate()方法返回年
  43. var hh=today.getHours();//通过日期对象的getHours方法返回小时
  44. var mm=today.getMinutes();//通过日期对象的getMinutes方法返回分钟
  45. var ss=today.getSeconds();//通过日期对象的getSeconds方法返回秒
  46. // 如果分钟或小时的值小于10,则在其值前加0,比如如果时间是下午3点20分9秒的话,则显示15:20:09
  47. MM=checkTime(MM);
  48. dd=checkTime(dd);
  49. mm=checkTime(mm);
  50. ss=checkTime(ss);
  51. var day; //用于保存星期(getDay()方法得到星期编号)
  52. if(today.getDay()==0) day = "星期日 "
  53. if(today.getDay()==1) day = "星期一 "
  54. if(today.getDay()==2) day = "星期二 "
  55. if(today.getDay()==3) day = "星期三 "
  56. if(today.getDay()==4) day = "星期四 "
  57. if(today.getDay()==5) day = "星期五 "
  58. if(today.getDay()==6) day = "星期六 "
  59. document.getElementById('nowDateTimeSpan').innerHTML=yyyy+"-"+MM +"-"+ dd +" " + day+" " + hh+":"+mm+":"+ss;
  60. setTimeout('startTime()',1000);//每一秒中重新加载startTime()方法
  61. }
  62. function checkTime(i)
  63. {
  64. if (i<10){
  65. i="0" + i;
  66. }
  67. return i;
  68. }
  69. </script>
  70. </head>
  71. <body class="theme-red" style="height: 100%" onload="startTime()">
  72. <section class="content" style="margin: 0 auto;height: 100%">
  73. <div class="row" style="font-size: 2em;height: 7%;background-color: black">
  74. <div class="col-6 text-right" style="color: #ffffff">大屏幕产能监控系统</div>
  75. <div class="col-6 text-left" ><font color="black" style="color: #ffffff"><span id="nowDateTimeSpan"></span></font></div>
  76. </div>
  77. <script>
  78. function addContent(name){
  79. console.log( $(name));
  80. $(name).tab('show');
  81. }
  82. </script>
  83. <!-- #END# CPU Usage -->
  84. <div class="row clearfix" style="height: 13%">
  85. <!-- Visitors -->
  86. <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
  87. <div class="card" style="margin-bottom: 0.2em">
  88. <div class="body bg-pink">
  89. <div class="row text-center" style="font-size: 2em">
  90. <div class="col-3"></div>
  91. <div class="col-3">全场产能:</div>
  92. <div class="col-3">122555</div>
  93. <div class="col-3"></div>
  94. </div>
  95. </div>
  96. </div>
  97. </div>
  98. <!-- #END# Visitors -->
  99. <!-- Latest Social Trends -->
  100. <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
  101. <div class="card" style="margin-bottom: 0.2em">
  102. <div class="body bg-cyan text-center">
  103. <div class="row text-center" style="font-size: 2em">
  104. <div class="col-3"></div>
  105. <div class="col-3">全厂坏品数:</div>
  106. <div class="col-3">15555</div>
  107. <div class="col-3"></div>
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. <!-- #END# Latest Social Trends -->
  113. <!-- Answered Tickets -->
  114. <!-- #END# Answered Tickets -->
  115. </div>
  116. <div class="container-fluid" style="height: 80%">
  117. <div id="container3" style="height:50%"></div>
  118. <div id="container5" style="height:50%;padding-top: 0.2em"></div>
  119. </div>
  120. </section>
  121. <!-- Jquery Core Js -->
  122. <script src="plugins/jquery/jquery.min.js"></script>
  123. <!-- Bootstrap Core Js -->
  124. <script src="plugins/bootstrap/js/bootstrap.js"></script>
  125. <!-- Select Plugin Js -->
  126. <script src="plugins/bootstrap-select/js/bootstrap-select.js"></script>
  127. <!-- Slimscroll Plugin Js -->
  128. <script src="plugins/jquery-slimscroll/jquery.slimscroll.js"></script>
  129. <!-- Waves Effect Plugin Js -->
  130. <script src="plugins/node-waves/waves.js"></script>
  131. <!-- Jquery CountTo Plugin Js -->
  132. <script src="plugins/jquery-countto/jquery.countTo.js"></script>
  133. <!-- Morris Plugin Js -->
  134. <script src="plugins/raphael/raphael.min.js"></script>
  135. <script src="plugins/morrisjs/morris.js"></script>
  136. <!-- ChartJs -->
  137. <script src="plugins/chartjs/Chart.bundle.js"></script>
  138. <!-- Flot Charts Plugin Js -->
  139. <script src="plugins/flot-charts/jquery.flot.js"></script>
  140. <script src="plugins/flot-charts/jquery.flot.resize.js"></script>
  141. <script src="plugins/flot-charts/jquery.flot.pie.js"></script>
  142. <script src="plugins/flot-charts/jquery.flot.categories.js"></script>
  143. <script src="plugins/flot-charts/jquery.flot.time.js"></script>
  144. <!-- Sparkline Chart Plugin Js -->
  145. <script src="plugins/jquery-sparkline/jquery.sparkline.js"></script>
  146. <!-- Custom Js -->
  147. <!--<script src="js/admin.js"></script>
  148. <script src="js/pages/index.js"></script>
  149. <!-- Demo Js -->
  150. <!--<script src="js/demo.js"></script> -->
  151. <script src="js/basic.js"></script>
  152. <script>
  153. var chart = Highcharts.chart('container1', {
  154. chart: {
  155. type: 'area',
  156. backgroundColor:'#E91E63',
  157. style:{
  158. color:'#FFFFFF',
  159. fontSize:"20px",
  160. }
  161. },
  162. colors: [ '#ffffff'
  163. ],
  164. legend: {
  165. enabled: false
  166. },
  167. credits: {
  168. enabled:false,
  169. },
  170. title: {
  171. text: '全厂产能',
  172. style:{
  173. color:'#FFFFFF',
  174. fontSize:"20px",
  175. }
  176. },
  177. xAxis: {
  178. categories: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
  179. labels:{
  180. enabled:false,
  181. style:{
  182. fontSize:16,
  183. color:'#ffffff',
  184. }
  185. }
  186. },
  187. yAxis: {
  188. title: {
  189. text: null
  190. },
  191. labels:{
  192. style:{
  193. fontSize:16,
  194. color:'#ffffff',
  195. }
  196. }
  197. },
  198. /* plotOptions: {
  199. line: {
  200. dataLabels: {
  201. // 开启数据标签
  202. enabled: true
  203. },
  204. // 关闭鼠标跟踪,对应的提示框、点击事件会失效
  205. enableMouseTracking: false
  206. }
  207. series: {
  208. dataLabels: {
  209. enabled: true,
  210. color: 'red',
  211. }
  212. },*/
  213. plotOptions: {
  214. series: {
  215. dataLabels: {
  216. enabled: true,
  217. color: 'black'
  218. }
  219. }
  220. },
  221. series: [{
  222. name: '东京',
  223. data: [7.0, 6.9, 9.5, 14.5, 18.4, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6],
  224. }]
  225. });
  226. </script>
  227. <script>
  228. var chart = Highcharts.chart('container2', {
  229. chart: {
  230. type: 'line',
  231. },
  232. exporting: {
  233. enabled: false
  234. },
  235. credits: {
  236. enabled:false,
  237. },
  238. title: {
  239. text: '全厂坏品数'
  240. },
  241. xAxis: {
  242. categories: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月']
  243. },
  244. yAxis: {
  245. title: {
  246. text: '气温 (°C)'
  247. }
  248. },
  249. plotOptions: {
  250. line: {
  251. dataLabels: {
  252. // 开启数据标签
  253. enabled: true
  254. },
  255. // 关闭鼠标跟踪,对应的提示框、点击事件会失效
  256. enableMouseTracking: false
  257. }
  258. },
  259. series: [{
  260. name: '东京',
  261. data: [7.0, 6.9, 9.5, 14.5, 18.4, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6]
  262. }, {
  263. name: '伦敦',
  264. data: [3.9, 4.2, 5.7, 8.5, 11.9, 15.2, 17.0, 16.6, 14.2, 10.3, 6.6, 4.8]
  265. }]
  266. });
  267. </script>
  268. <script>
  269. var chart = Highcharts.chart('container3', {
  270. title: {
  271. text: null
  272. },
  273. chart: {
  274. zoomType: 'xy'
  275. },
  276. credits:{
  277. enabled: false // 禁用版权信息
  278. },
  279. exporting: {
  280. enabled: false
  281. },
  282. xAxis: [{
  283. categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
  284. 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
  285. labels: {
  286. enabled: false,
  287. }
  288. }],
  289. yAxis: [{ // Primary yAxis
  290. labels: {
  291. format: '{value}',
  292. style: {
  293. color: '#ffc107',
  294. fontSize:'20px'
  295. }
  296. },
  297. title: {
  298. text: '堆积数',
  299. style: {
  300. color: '#ffc107',
  301. fontSize:'20px'
  302. }
  303. }
  304. }, { // Secondary yAxis
  305. title: {
  306. text: '不良率',
  307. style: {
  308. color: 'red',
  309. fontSize:'20px'
  310. }
  311. },
  312. min:0,
  313. max:25,
  314. labels: {
  315. format: '{value} %',
  316. style: {
  317. color: 'red',
  318. fontSize:'20px'
  319. }
  320. },
  321. opposite: true
  322. }],
  323. tooltip: {
  324. shared: true
  325. },
  326. legend: {
  327. layout: 'vertical',
  328. align: 'right',
  329. x: -120,
  330. verticalAlign: 'top',
  331. y: 0,
  332. floating: true,
  333. backgroundColor: (Highcharts.theme && Highcharts.theme.legendBackgroundColor) || '#FFFFFF'
  334. },
  335. series: [ {
  336. name: '堆积数',
  337. color:'#ffc107',
  338. type: 'area',
  339. data: [10,15, 12, 14.5, 18.2, 15, 10, 13, 13.3, 14.3, 13.9, 9.6],
  340. tooltip: {
  341. valueSuffix: ''
  342. }
  343. },{
  344. name: '不良率',
  345. type: 'spline',
  346. color:'#ff0000',
  347. yAxis: 1,
  348. data: [10, 11, 12, 10.1, 10.2, 1, 5, 7, 8, 10, 5, 7],
  349. tooltip: {
  350. valueSuffix: ' %'
  351. }
  352. }]
  353. });
  354. </script>
  355. <script>
  356. /*var chart = Highcharts.chart('container4', {
  357. chart: {
  358. type: 'line',
  359. },
  360. credits: {
  361. enabled:false,
  362. },
  363. title: {
  364. text: null
  365. },
  366. xAxis: {
  367. categories: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月']
  368. },
  369. yAxis: [{ // Primary yAxis
  370. labels: {
  371. format: '{value}',
  372. style: {
  373. color: Highcharts.getOptions().colors[1]
  374. }
  375. },
  376. title: {
  377. text: '堆积数',
  378. style: {
  379. color: Highcharts.getOptions().colors[1]
  380. }
  381. }
  382. }, { // Secondary yAxis
  383. title: {
  384. text: '不良率',
  385. style: {
  386. color: Highcharts.getOptions().colors[0]
  387. }
  388. },
  389. labels: {
  390. format: '{value} %',
  391. style: {
  392. color: Highcharts.getOptions().colors[0]
  393. }
  394. },
  395. opposite: true
  396. }],
  397. plotOptions: {
  398. line: {
  399. dataLabels: {
  400. // 开启数据标签
  401. enabled: true
  402. },
  403. // 关闭鼠标跟踪,对应的提示框、点击事件会失效
  404. enableMouseTracking: false
  405. }
  406. },
  407. series: [{
  408. name: '不良率',
  409. type: 'spline',
  410. yAxis: 1,
  411. data: [49.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4],
  412. tooltip: {
  413. valueSuffix: ' %'
  414. }
  415. }, {
  416. name: '堆积数',
  417. type: 'spline',
  418. data: [7.0, 6.9, 9.5, 14.5, 18.2, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6],
  419. tooltip: {
  420. valueSuffix: ''
  421. }
  422. }]
  423. });*/
  424. </script>
  425. <script>
  426. var chart = Highcharts.chart('container5',{
  427. chart: {
  428. type: 'column'
  429. },
  430. credits:{
  431. enabled: false // 禁用版权信息
  432. },
  433. legend: {
  434. enabled: false
  435. },
  436. exporting: {
  437. enabled: false
  438. },
  439. title: {
  440. text: '每拉实时产能',
  441. style:{
  442. fontSize:"20px",
  443. }
  444. },
  445. xAxis: {
  446. categories: [
  447. '一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月'
  448. ],
  449. crosshair: true,
  450. labels:{
  451. style:{
  452. fontSize:'20px'
  453. }
  454. }
  455. },
  456. yAxis: {
  457. min: 0,
  458. title: null,
  459. labels:{
  460. style:{
  461. fontSize:'20px'
  462. }
  463. }
  464. },
  465. tooltip: {
  466. // head + 每个 point + footer 拼接成完整的 table
  467. headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
  468. pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
  469. '<td style="padding:0"><b>{point.y:.1f} mm</b></td></tr>',
  470. footerFormat: '</table>',
  471. shared: true,
  472. useHTML: true
  473. },
  474. plotOptions: {
  475. column: {
  476. borderWidth: 0
  477. }
  478. },
  479. series: [{
  480. name: '东京',
  481. data: [49.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
  482. }, {
  483. name: '纽约',
  484. data: [83.6, 78.8, 98.5, 93.4, 106.0, 84.5, 105.0, 104.3, 91.2, 83.5, 106.6, 92.3]
  485. }, {
  486. name: '伦敦',
  487. data: [48.9, 38.8, 39.3, 41.4, 47.0, 48.3, 59.0, 59.6, 52.4, 65.2, 59.3, 51.2]
  488. }, {
  489. name: '柏林',
  490. data: [42.4, 33.2, 34.5, 39.7, 52.6, 75.5, 57.4, 60.4, 47.6, 39.1, 46.8, 51.1]
  491. }]
  492. });
  493. </script>
  494. </body>
  495. </html>