123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226 |
- <html>
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=Edge">
- <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
- <title>流水线管理页</title>
- <!-- Favicon-->
- <link rel="icon" href="favicon.ico" type="image/x-icon">
- <!-- Google Fonts -->
- <link href="css/cyllic.css" rel="stylesheet" type="text/css">
- <link href="css/mateial.css" rel="stylesheet" type="text/css">
- <!-- Bootstrap Core Css -->
- <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.0.0/css/bootstrap.min.css"
- integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
- <!-- Waves Effect Css -->
- <link href="plugins/node-waves/waves.css" rel="stylesheet"/>
- <!-- Animation Css -->
- <link href="plugins/animate-css/animate.css" rel="stylesheet"/>
- <!-- Morris Chart Css-->
- <link href="plugins/morrisjs/morris.css" rel="stylesheet"/>
- <!-- Custom Css -->
- <link href="css/style-frontend.css" rel="stylesheet">
- <!-- AdminBSB Themes. You can choose a theme from css/themes instead of get all themes -->
- <link href="css/themes/all-themes.css" rel="stylesheet"/>
- <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
- <script src="https://cdn.bootcss.com/popper.js/1.12.9/umd/popper.min.js"
- integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
- crossorigin="anonymous"></script>
- <script src="https://cdn.bootcss.com/bootstrap/4.0.0/js/bootstrap.min.js"
- integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
- crossorigin="anonymous"></script>
- <link rel="icon" href="https://static.jianshukeji.com/highcharts/images/favicon.ico">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <style>
- /* css 代码 */
- th, td{
- color:#fff;
- font-size:2em;
- }
- .big-letter{
- font-size: 2em;
- }
- .middle-font{
- font-size: 1.2em;
- }
- </style>
- <script src="https://img.hcharts.cn/highcharts/highcharts.js"></script>
- <script src="https://img.hcharts.cn/highcharts/modules/exporting.js"></script>
- <script src="https://img.hcharts.cn/highcharts-plugins/highcharts-zh_CN.js"></script>
- <script src="https://img.hcharts.cn/highcharts/themes/dark-unica.js"></script>
- <script language="JavaScript">
- function startTime() {
- var today = new Date();//定义日期对象
- var yyyy = today.getFullYear();//通过日期对象的getFullYear()方法返回年
- var MM = today.getMonth() + 1;//通过日期对象的getMonth()方法返回年
- var dd = today.getDate();//通过日期对象的getDate()方法返回年
- var hh = today.getHours();//通过日期对象的getHours方法返回小时
- var mm = today.getMinutes();//通过日期对象的getMinutes方法返回分钟
- var ss = today.getSeconds();//通过日期对象的getSeconds方法返回秒
- // 如果分钟或小时的值小于10,则在其值前加0,比如如果时间是下午3点20分9秒的话,则显示15:20:09
- MM = checkTime(MM);
- dd = checkTime(dd);
- mm = checkTime(mm);
- ss = checkTime(ss);
- var day; //用于保存星期(getDay()方法得到星期编号)
- if (today.getDay() == 0) day = "星期日 "
- if (today.getDay() == 1) day = "星期一 "
- if (today.getDay() == 2) day = "星期二 "
- if (today.getDay() == 3) day = "星期三 "
- if (today.getDay() == 4) day = "星期四 "
- if (today.getDay() == 5) day = "星期五 "
- if (today.getDay() == 6) day = "星期六 "
- document.getElementById('nowDateTimeSpan').innerHTML = yyyy + "-" + MM + "-" + dd + " " + hh + ":" + mm + ":" + ss + " " + day;
- setTimeout('startTime()', 1000);//每一秒中重新加载startTime()方法
- }
- function checkTime(i) {
- if (i < 10) {
- i = "0" + i;
- }
- return i;
- }
- </script>
- </head>
- <body class="theme-black" style="background-color: #2d2d2d !important;overflow: hidden" onload="startTime()">
- <nav class="navbar" style="background-color: red">
- <div class="container-fluid">
- <div class="navbar-header">
- <a class="navbar-brand" href="#" onclick="location.href='denglu.html'" >工厂产能监控系统</a>
- </div>
- <div style="color:#fff" class="text-center" id="test1"> 深圳市度彼电子有限公司——激光厂产线1</div>
- <font color="#ffffff"><span id="nowDateTimeSpan"></span></font>
- <div onclick="show_clear_panel()" class="btn btn-warning"> 清除数据 </div>
- <div onclick="get_stop_scheudle1()" class="btn btn-warning"> 下班 </div>
- </div>
- </nav>
- <div class="container" style="max-width:none; !important; padding-top:100px;">
- <div class="alert alert-warning" id="mpAlert" style="display:none">
- </div>
- <!-- Modal -->
- <div class="modal fade" id="clearModal" tabindex="-1" role="dialog" aria-labelledby="clearModalLabel" aria-hidden="true">
- <div class="modal-dialog modal-dialog-centered" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <h5 class="modal-title" id="clearModalLabel">清空手持机</h5>
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
- <span aria-hidden="true">×</span>
- </button>
- </div>
- <div class="modal-body">
- 请输入清除的手持机ID(编码):
- <input size="10" type="text" id="handInput">
- <div class="progress" style="display: none;" id="clearProgress">
- <div class="progress-bar progress-bar-striped progress-bar-animated" role="progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100" style="width: 75%"></div>
- </div>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
- <button type="button" class="btn btn-primary" data-dismiss="modal" onclick="clear_one_data()">确认清除</button>
- </div>
- </div>
- </div>
- </div>
- <div class="text-white row middle-font">
- <div class="col-md-5">
- <div class="text-center big-letter">本拉产能统计</div>
- <table class="table table-bordered text-center" style="color: #ffffff">
- <thead>
- <tr>
- <th scope="col">时间</th>
- <th scope="col">良品数</th>
- <th scope="col">不良品数</th>
- <th scope="col">堆积数</th>
- <th scope="col">不良率</th>
- </tr>
- </thead>
- <tbody id="rank-one">
- </tbody>
- </table>
- </div>
- <div class="col-md-7 text-white">
- <div class="text-center text-lg big-letter">本厂今日生产能手榜</div>
- <div class="row">
- <div class="col-md-6">
- <table class="table table-bordered text-center table-striped">
- <thead>
- <tr>
- <th scope="col" colspan="4">红榜</th>
- </tr>
- <tr>
- <th>人员</th>
- <th>良品数</th>
- <th>人员</th>
- <th>不良率</th>
- </tr>
- </thead>
- <tbody id="rank-two">
- </tbody>
- </table>
- </div>
- <div class="col-md-6">
- <table class="table table-bordered text-center table-striped">
- <thead>
- <tr>
- <th scope="col" colspan="4">黑榜</th>
- </tr>
- <tr>
- <th>人员</th>
- <th>良品数</th>
- <th>人员</th>
- <th>不良率</th>
- </tr>
- </thead>
- <tbody id="rank-three">
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- <div class="row" style-height="50">
- <div class="row col-md-12 ">
- <div id="graph-1" class="chartsize col-md-12" style-height="30"></div>
- </div>
- <div class="row col-md-12 ">
- <div id="graph-2" class="chartsize col-md-12" style-height="30"></div>
- </div>
- </div>
- </div>
- <!-- Modal -->
- <div id="modalContainer"></div>
- <!-- Common Js Files -->
- <script src="js/basic.js"></script>
- <script src="js/getparam.js"></script>
- <script src="js/resize.js"></script>
- <script src="js/common.js"></script>
- <!--- Unique -->
- <script src="js/lazhang-data.js"></script>
- <script src="js/lazhang-display.js"></script>
- </body>
- </html>
|