dapingmu.html 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537
  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>
  37. var timer=null;
  38. function displayClock(num){//num是传入的startClock中的动态值
  39. if(num<10){
  40. return "0"+num;
  41. }
  42. else{
  43. return num;
  44. }
  45. }
  46. //停止计时
  47. function stopClock(){
  48. clearTimeout(timer);
  49. }
  50. //开始计时
  51. function startClock(){
  52. var time =new Date();
  53. var hours=displayClock(time.getHours())+":";
  54. var minutes=displayClock(time.getMinutes())+":";
  55. var seconds=displayClock(time.getSeconds());
  56. //显示时间
  57. show.innerHTML=hours+minutes+seconds;//在id为show的块区域显示
  58. timer=setTimeout("startClock()",1000);//延时器
  59. }
  60. </script>
  61. </head>
  62. <style>
  63. #show{
  64. font-size: 30px;
  65. color:#black;
  66. text-align:center;
  67. }
  68. </style>
  69. <body onload="startClock()" onunload="stopClock()" class="theme-red" style="height: 100%">
  70. <section class="content" style="margin: 0 auto;height: 100%">
  71. <div class="row" style="font-size: 2em;height: 7%">
  72. <div class="col-6 text-right" >大屏幕产能监控系统</div>
  73. <div class="col-6 text-left" id="show" ></div>
  74. </div>
  75. <script>
  76. function addContent(name){
  77. console.log( $(name));
  78. $(name).tab('show');
  79. }
  80. </script>
  81. <!-- #END# CPU Usage -->
  82. <div class="row clearfix" style="height: 13%">
  83. <!-- Visitors -->
  84. <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
  85. <div class="card" style="margin-bottom: 0.2em">
  86. <div class="body bg-pink">
  87. <div class="row text-center" style="font-size: 2em">
  88. <div class="col-3"></div>
  89. <div class="col-3">全场产能:</div>
  90. <div class="col-3">122555</div>
  91. <div class="col-3"></div>
  92. </div>
  93. </div>
  94. </div>
  95. </div>
  96. <!-- #END# Visitors -->
  97. <!-- Latest Social Trends -->
  98. <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
  99. <div class="card" style="margin-bottom: 0.2em">
  100. <div class="body bg-cyan text-center">
  101. <div class="row text-center" style="font-size: 2em">
  102. <div class="col-3"></div>
  103. <div class="col-3">全厂坏品数:</div>
  104. <div class="col-3">15555</div>
  105. <div class="col-3"></div>
  106. </div>
  107. </div>
  108. </div>
  109. </div>
  110. <!-- #END# Latest Social Trends -->
  111. <!-- Answered Tickets -->
  112. <!-- #END# Answered Tickets -->
  113. </div>
  114. <div class="container-fluid" style="height: 80%">
  115. <div id="container3" style="height:50%"></div>
  116. <div id="container5" style="height:50%;padding-top: 0.2em"></div>
  117. </div>
  118. </section>
  119. <!-- Jquery Core Js -->
  120. <script src="plugins/jquery/jquery.min.js"></script>
  121. <!-- Bootstrap Core Js -->
  122. <script src="plugins/bootstrap/js/bootstrap.js"></script>
  123. <!-- Select Plugin Js -->
  124. <script src="plugins/bootstrap-select/js/bootstrap-select.js"></script>
  125. <!-- Slimscroll Plugin Js -->
  126. <script src="plugins/jquery-slimscroll/jquery.slimscroll.js"></script>
  127. <!-- Waves Effect Plugin Js -->
  128. <script src="plugins/node-waves/waves.js"></script>
  129. <!-- Jquery CountTo Plugin Js -->
  130. <script src="plugins/jquery-countto/jquery.countTo.js"></script>
  131. <!-- Morris Plugin Js -->
  132. <script src="plugins/raphael/raphael.min.js"></script>
  133. <script src="plugins/morrisjs/morris.js"></script>
  134. <!-- ChartJs -->
  135. <script src="plugins/chartjs/Chart.bundle.js"></script>
  136. <!-- Flot Charts Plugin Js -->
  137. <script src="plugins/flot-charts/jquery.flot.js"></script>
  138. <script src="plugins/flot-charts/jquery.flot.resize.js"></script>
  139. <script src="plugins/flot-charts/jquery.flot.pie.js"></script>
  140. <script src="plugins/flot-charts/jquery.flot.categories.js"></script>
  141. <script src="plugins/flot-charts/jquery.flot.time.js"></script>
  142. <!-- Sparkline Chart Plugin Js -->
  143. <script src="plugins/jquery-sparkline/jquery.sparkline.js"></script>
  144. <!-- Custom Js -->
  145. <script src="js/admin.js"></script>
  146. <script src="js/pages/index.js"></script>
  147. <!-- Demo Js -->
  148. <script src="js/demo.js"></script>
  149. <script>
  150. var chart = Highcharts.chart('container1', {
  151. chart: {
  152. type: 'area',
  153. backgroundColor:'#E91E63',
  154. style:{
  155. color:'#FFFFFF',
  156. fontSize:"20px",
  157. }
  158. },
  159. colors: [ '#ffffff'
  160. ],
  161. legend: {
  162. enabled: false
  163. },
  164. credits: {
  165. enabled:false,
  166. },
  167. title: {
  168. text: '全厂产能',
  169. style:{
  170. color:'#FFFFFF',
  171. fontSize:"20px",
  172. }
  173. },
  174. xAxis: {
  175. categories: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
  176. labels:{
  177. enabled:false,
  178. style:{
  179. fontSize:16,
  180. color:'#ffffff',
  181. }
  182. }
  183. },
  184. yAxis: {
  185. title: {
  186. text: null
  187. },
  188. labels:{
  189. style:{
  190. fontSize:16,
  191. color:'#ffffff',
  192. }
  193. }
  194. },
  195. /* plotOptions: {
  196. line: {
  197. dataLabels: {
  198. // 开启数据标签
  199. enabled: true
  200. },
  201. // 关闭鼠标跟踪,对应的提示框、点击事件会失效
  202. enableMouseTracking: false
  203. }
  204. series: {
  205. dataLabels: {
  206. enabled: true,
  207. color: 'red',
  208. }
  209. },*/
  210. plotOptions: {
  211. series: {
  212. dataLabels: {
  213. enabled: true,
  214. color: 'black'
  215. }
  216. }
  217. },
  218. series: [{
  219. name: '东京',
  220. 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],
  221. }]
  222. });
  223. </script>
  224. <script>
  225. var chart = Highcharts.chart('container2', {
  226. chart: {
  227. type: 'line',
  228. },
  229. exporting: {
  230. enabled: false
  231. },
  232. credits: {
  233. enabled:false,
  234. },
  235. title: {
  236. text: '全厂坏品数'
  237. },
  238. xAxis: {
  239. categories: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月']
  240. },
  241. yAxis: {
  242. title: {
  243. text: '气温 (°C)'
  244. }
  245. },
  246. plotOptions: {
  247. line: {
  248. dataLabels: {
  249. // 开启数据标签
  250. enabled: true
  251. },
  252. // 关闭鼠标跟踪,对应的提示框、点击事件会失效
  253. enableMouseTracking: false
  254. }
  255. },
  256. series: [{
  257. name: '东京',
  258. 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]
  259. }, {
  260. name: '伦敦',
  261. 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]
  262. }]
  263. });
  264. </script>
  265. <script>
  266. var chart = Highcharts.chart('container3', {
  267. title: {
  268. text: null
  269. },
  270. chart: {
  271. zoomType: 'xy'
  272. },
  273. credits:{
  274. enabled: false // 禁用版权信息
  275. },
  276. exporting: {
  277. enabled: false
  278. },
  279. xAxis: [{
  280. categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
  281. 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
  282. labels: {
  283. enabled: false,
  284. }
  285. }],
  286. yAxis: [{ // Primary yAxis
  287. labels: {
  288. format: '{value}',
  289. style: {
  290. color: '#ffc107',
  291. fontSize:'20px'
  292. }
  293. },
  294. title: {
  295. text: '堆积数',
  296. style: {
  297. color: '#ffc107',
  298. fontSize:'20px'
  299. }
  300. }
  301. }, { // Secondary yAxis
  302. title: {
  303. text: '不良率',
  304. style: {
  305. color: 'red',
  306. fontSize:'20px'
  307. }
  308. },
  309. min:0,
  310. max:25,
  311. labels: {
  312. format: '{value} %',
  313. style: {
  314. color: 'red',
  315. fontSize:'20px'
  316. }
  317. },
  318. opposite: true
  319. }],
  320. tooltip: {
  321. shared: true
  322. },
  323. legend: {
  324. layout: 'vertical',
  325. align: 'right',
  326. x: -120,
  327. verticalAlign: 'top',
  328. y: 0,
  329. floating: true,
  330. backgroundColor: (Highcharts.theme && Highcharts.theme.legendBackgroundColor) || '#FFFFFF'
  331. },
  332. series: [ {
  333. name: '堆积数',
  334. color:'#ffc107',
  335. type: 'area',
  336. data: [10,15, 12, 14.5, 18.2, 15, 10, 13, 13.3, 14.3, 13.9, 9.6],
  337. tooltip: {
  338. valueSuffix: ''
  339. }
  340. },{
  341. name: '不良率',
  342. type: 'spline',
  343. color:'#ff0000',
  344. yAxis: 1,
  345. data: [10, 11, 12, 10.1, 10.2, 1, 5, 7, 8, 10, 5, 7],
  346. tooltip: {
  347. valueSuffix: ' %'
  348. }
  349. }]
  350. });
  351. </script>
  352. <script>
  353. /*var chart = Highcharts.chart('container4', {
  354. chart: {
  355. type: 'line',
  356. },
  357. credits: {
  358. enabled:false,
  359. },
  360. title: {
  361. text: null
  362. },
  363. xAxis: {
  364. categories: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月']
  365. },
  366. yAxis: [{ // Primary yAxis
  367. labels: {
  368. format: '{value}',
  369. style: {
  370. color: Highcharts.getOptions().colors[1]
  371. }
  372. },
  373. title: {
  374. text: '堆积数',
  375. style: {
  376. color: Highcharts.getOptions().colors[1]
  377. }
  378. }
  379. }, { // Secondary yAxis
  380. title: {
  381. text: '不良率',
  382. style: {
  383. color: Highcharts.getOptions().colors[0]
  384. }
  385. },
  386. labels: {
  387. format: '{value} %',
  388. style: {
  389. color: Highcharts.getOptions().colors[0]
  390. }
  391. },
  392. opposite: true
  393. }],
  394. plotOptions: {
  395. line: {
  396. dataLabels: {
  397. // 开启数据标签
  398. enabled: true
  399. },
  400. // 关闭鼠标跟踪,对应的提示框、点击事件会失效
  401. enableMouseTracking: false
  402. }
  403. },
  404. series: [{
  405. name: '不良率',
  406. type: 'spline',
  407. yAxis: 1,
  408. 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],
  409. tooltip: {
  410. valueSuffix: ' %'
  411. }
  412. }, {
  413. name: '堆积数',
  414. type: 'spline',
  415. 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],
  416. tooltip: {
  417. valueSuffix: ''
  418. }
  419. }]
  420. });*/
  421. </script>
  422. <script>
  423. var chart = Highcharts.chart('container5',{
  424. chart: {
  425. type: 'column'
  426. },
  427. credits:{
  428. enabled: false // 禁用版权信息
  429. },
  430. legend: {
  431. enabled: false
  432. },
  433. exporting: {
  434. enabled: false
  435. },
  436. title: {
  437. text: '每拉实时产能',
  438. style:{
  439. fontSize:"20px",
  440. }
  441. },
  442. xAxis: {
  443. categories: [
  444. '一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月'
  445. ],
  446. crosshair: true,
  447. labels:{
  448. style:{
  449. fontSize:'20px'
  450. }
  451. }
  452. },
  453. yAxis: {
  454. min: 0,
  455. title: null,
  456. labels:{
  457. style:{
  458. fontSize:'20px'
  459. }
  460. }
  461. },
  462. tooltip: {
  463. // head + 每个 point + footer 拼接成完整的 table
  464. headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
  465. pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
  466. '<td style="padding:0"><b>{point.y:.1f} mm</b></td></tr>',
  467. footerFormat: '</table>',
  468. shared: true,
  469. useHTML: true
  470. },
  471. plotOptions: {
  472. column: {
  473. borderWidth: 0
  474. }
  475. },
  476. series: [{
  477. name: '东京',
  478. 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]
  479. }, {
  480. name: '纽约',
  481. 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]
  482. }, {
  483. name: '伦敦',
  484. 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]
  485. }, {
  486. name: '柏林',
  487. 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]
  488. }]
  489. });
  490. </script>
  491. </body>
  492. </html>