|
@@ -5,7 +5,7 @@
|
|
<meta charset="UTF-8">
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
|
|
<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">
|
|
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
|
- <title>流水线管理页</title>
|
|
|
|
|
|
+ <title>流水线管理页-度彼科技</title>
|
|
<!-- Favicon-->
|
|
<!-- Favicon-->
|
|
<link rel="icon" href="favicon.ico" type="image/x-icon">
|
|
<link rel="icon" href="favicon.ico" type="image/x-icon">
|
|
|
|
|
|
@@ -79,499 +79,100 @@
|
|
|
|
|
|
</head>
|
|
</head>
|
|
|
|
|
|
-<body class="theme-red" style="height: 100%;background-color: #17253f !important;" onload="startTime()">
|
|
|
|
- <section class="content" style="margin: 0 auto;height: 100%">
|
|
|
|
- <nav class="navbar" style="background-color: red">
|
|
|
|
- <div class="container-fluid">
|
|
|
|
- <div class="navbar-header">
|
|
|
|
- <a class="navbar-brand" href="index.html">工厂产能监控系统</a>
|
|
|
|
|
|
+<body class="theme-black" style="background-color: #17253f !important;" onload="startTime()">
|
|
|
|
+<nav class="navbar" style="background-color: red">
|
|
|
|
+ <div class="container-fluid">
|
|
|
|
+ <div class="navbar-header">
|
|
|
|
+ <a class="navbar-brand" href="index.html">工厂产能监控系统</a>
|
|
|
|
+ </div>
|
|
|
|
+ <div style="color:#fff" class="text-center"><img src="images/logo.jpg" style="width: 10%;"> 深圳市度彼电子有限公司</div>
|
|
|
|
+ <div onclick="get_stop_scheudle()" class="btn btn-warning"> 下班 </div>
|
|
|
|
+ <font color="#ffffff"><span id="nowDateTimeSpan"></span></font>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+</nav>
|
|
|
|
+<div class="container" style="max-width:none; !important; padding-top:100px;">
|
|
|
|
+ <div class="alert alert-warning" id="mpAlert" style="display:none">
|
|
|
|
+ </div>
|
|
|
|
+ <div class="text-white row">
|
|
|
|
+ <div class="col-md-4">
|
|
|
|
+ <div class="text-center">全厂产能统计</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-8 text-white">
|
|
|
|
+ <div class="text-center text-lg">本厂今日生产能手榜</div>
|
|
|
|
+ <div class="row">
|
|
|
|
+ <div class="col-md-6">
|
|
|
|
+ <table class="table table-bordered text-center table-striped">
|
|
|
|
+ <thead>
|
|
|
|
+ <tr>
|
|
|
|
+ <th scope="col" colspan="3">红榜</th>
|
|
|
|
+
|
|
|
|
+ </tr>
|
|
|
|
+ <tr>
|
|
|
|
+ <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="3">黑榜</th>
|
|
|
|
+ </tr>
|
|
|
|
+ <tr>
|
|
|
|
+ <th>人员</th>
|
|
|
|
+ <th>良品数</th>
|
|
|
|
+ <th>不良率</th>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ <tbody id="rank-three">
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
</div>
|
|
</div>
|
|
- <div style="color: #ffffff"><img src="images/logo.jpg" style="width: 10%"> 深圳市度彼电子有限公司——</div>
|
|
|
|
- <font color="#ffffff"><span id="nowDateTimeSpan"></span></font>
|
|
|
|
- </div>
|
|
|
|
- </nav>
|
|
|
|
- <!-- #END# CPU Usage -->
|
|
|
|
- <section style="margin-top: 100px;color: #ffffff" >
|
|
|
|
- <div style="width: 38%;float: left">
|
|
|
|
- <div class="text-center">全厂产能统计</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 style="width: 60%;float: right">
|
|
|
|
- <div class="text-center">本厂今日生产能手榜</div>
|
|
|
|
- <table class="table table-bordered text-center" style="color: #ffffff;width: 50%;float: left" >
|
|
|
|
- <thead>
|
|
|
|
- <tr >
|
|
|
|
- <th scope="col" colspan="4">红榜</th>
|
|
|
|
-
|
|
|
|
- </tr>
|
|
|
|
- <tr >
|
|
|
|
- <th >人员</th>
|
|
|
|
- <th >良品数</th>
|
|
|
|
- <th >人员</th>
|
|
|
|
- <th >不良率</th>
|
|
|
|
-
|
|
|
|
- </tr>
|
|
|
|
- </thead>
|
|
|
|
- <tbody id="rank-two">
|
|
|
|
- <tr>
|
|
|
|
- <th scope="row">1</th>
|
|
|
|
- <td>Mark</td>
|
|
|
|
- <td>Otto</td>
|
|
|
|
- <td>@mdo</td>
|
|
|
|
-
|
|
|
|
- </tr>
|
|
|
|
- <tr>
|
|
|
|
- <th scope="row">2</th>
|
|
|
|
- <td>Jacob</td>
|
|
|
|
- <td>Thornton</td>
|
|
|
|
- <td>@fat</td>
|
|
|
|
- </tr>
|
|
|
|
- <tr>
|
|
|
|
- <th scope="row">2</th>
|
|
|
|
- <td>Jacob</td>
|
|
|
|
- <td>Thornton</td>
|
|
|
|
- <td>@fat</td>
|
|
|
|
- </tr>
|
|
|
|
- <tr>
|
|
|
|
- <th scope="row">3</th>
|
|
|
|
- <td>Larry</td>
|
|
|
|
- <td>the Bird</td>
|
|
|
|
- <td>@twitter</td>
|
|
|
|
- </tr>
|
|
|
|
- </tbody>
|
|
|
|
- </table>
|
|
|
|
- <table class="table table-bordered text-center" style="color: #ffffff;width: 50%;float: right" >
|
|
|
|
- <thead>
|
|
|
|
- <tr >
|
|
|
|
- <th scope="col" colspan="4">黑榜</th>
|
|
|
|
- </tr>
|
|
|
|
- <tr >
|
|
|
|
- <th >人员</th>
|
|
|
|
- <th >良品数</th>
|
|
|
|
- <th >人员</th>
|
|
|
|
- <th >不良率</th>
|
|
|
|
-
|
|
|
|
- </tr>
|
|
|
|
- </thead>
|
|
|
|
- <tbody id="rank-three">
|
|
|
|
- <tr>
|
|
|
|
- <th scope="row">1</th>
|
|
|
|
- <td>Mark</td>
|
|
|
|
- <td>Otto</td>
|
|
|
|
- <td>@mdo</td>
|
|
|
|
-
|
|
|
|
- </tr>
|
|
|
|
- <tr>
|
|
|
|
- <th scope="row">2</th>
|
|
|
|
- <td>Jacob</td>
|
|
|
|
- <td>Thornton</td>
|
|
|
|
- <td>@fat</td>
|
|
|
|
- </tr>
|
|
|
|
- <tr>
|
|
|
|
- <th scope="row">2</th>
|
|
|
|
- <td>Jacob</td>
|
|
|
|
- <td>Thornton</td>
|
|
|
|
- <td>@fat</td>
|
|
|
|
- </tr>
|
|
|
|
- <tr>
|
|
|
|
- <th scope="row">3</th>
|
|
|
|
- <td>Larry</td>
|
|
|
|
- <td>the Bird</td>
|
|
|
|
- <td>@twitter</td>
|
|
|
|
- </tr>
|
|
|
|
- </tbody>
|
|
|
|
- </table>
|
|
|
|
</div>
|
|
</div>
|
|
- </section>
|
|
|
|
-
|
|
|
|
- <section style="margin-top: 5em" >
|
|
|
|
- <div id="graph-1" ></div>
|
|
|
|
- <div class="row" style="height: 6em"></div>
|
|
|
|
- <div id="graph-2" ></div>
|
|
|
|
- </section>
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- </section>
|
|
|
|
-
|
|
|
|
- <!-- Jquery Core Js -->
|
|
|
|
- <script src="plugins/jquery/jquery.min.js"></script>
|
|
|
|
-
|
|
|
|
- <!-- Bootstrap Core Js -->
|
|
|
|
- <script src="plugins/bootstrap/js/bootstrap.js"></script>
|
|
|
|
-
|
|
|
|
- <!-- Select Plugin Js -->
|
|
|
|
- <script src="plugins/bootstrap-select/js/bootstrap-select.js"></script>
|
|
|
|
-
|
|
|
|
- <!-- Slimscroll Plugin Js -->
|
|
|
|
- <script src="plugins/jquery-slimscroll/jquery.slimscroll.js"></script>
|
|
|
|
-
|
|
|
|
- <!-- Waves Effect Plugin Js -->
|
|
|
|
- <script src="plugins/node-waves/waves.js"></script>
|
|
|
|
-
|
|
|
|
- <!-- Jquery CountTo Plugin Js -->
|
|
|
|
- <script src="plugins/jquery-countto/jquery.countTo.js"></script>
|
|
|
|
-
|
|
|
|
- <!-- Morris Plugin Js -->
|
|
|
|
- <script src="plugins/raphael/raphael.min.js"></script>
|
|
|
|
- <script src="plugins/morrisjs/morris.js"></script>
|
|
|
|
-
|
|
|
|
- <!-- ChartJs -->
|
|
|
|
- <script src="plugins/chartjs/Chart.bundle.js"></script>
|
|
|
|
-
|
|
|
|
- <!-- Flot Charts Plugin Js -->
|
|
|
|
- <script src="plugins/flot-charts/jquery.flot.js"></script>
|
|
|
|
- <script src="plugins/flot-charts/jquery.flot.resize.js"></script>
|
|
|
|
- <script src="plugins/flot-charts/jquery.flot.pie.js"></script>
|
|
|
|
- <script src="plugins/flot-charts/jquery.flot.categories.js"></script>
|
|
|
|
- <script src="plugins/flot-charts/jquery.flot.time.js"></script>
|
|
|
|
-
|
|
|
|
- <!-- Sparkline Chart Plugin Js -->
|
|
|
|
- <script src="plugins/jquery-sparkline/jquery.sparkline.js"></script>
|
|
|
|
-
|
|
|
|
- <script src="js/admin.js"></script>
|
|
|
|
- <!--<script src="js/pages/index.js"></script>-->
|
|
|
|
-
|
|
|
|
- <!-- Demo Js -->
|
|
|
|
- <script src="js/demo.js"></script>
|
|
|
|
-
|
|
|
|
- <!--<script src="js/demo.js"></script> -->
|
|
|
|
- <script src="js/basic1.js"></script>
|
|
|
|
- <script src="js/getparam.js"></script>
|
|
|
|
-
|
|
|
|
- <script>
|
|
|
|
- var timeday=new Array("今日" ,"昨日" ,"本周" ,"本月");
|
|
|
|
- function getSpotHtml(htmlbody, i) {
|
|
|
|
- htmlbody += "<tr>";
|
|
|
|
- htmlbody += `<tr>
|
|
|
|
- <td>${timeday[i]}</td>
|
|
|
|
- <td>${hispass[i]}</td>
|
|
|
|
- <td>${hisfail[i]}</td>
|
|
|
|
- <td>${hisstack[i]}</td>
|
|
|
|
- <td>${hisrate[i]}</td>
|
|
|
|
- </tr>`;
|
|
|
|
- htmlbody += "</tr>";
|
|
|
|
- return htmlbody;
|
|
|
|
- }
|
|
|
|
- function getSpotHtml1(htmlbody, i) {
|
|
|
|
- htmlbody += "<tr>";
|
|
|
|
- htmlbody += `<tr>
|
|
|
|
- <td>${goodid[i]}</td>
|
|
|
|
- <td>${goodpass[i]}</td>
|
|
|
|
- <td>${goodid[i]}</td>
|
|
|
|
- <td>${goodfailrate[i]}</td>
|
|
|
|
- </tr>`;
|
|
|
|
- htmlbody += "</tr>";
|
|
|
|
- return htmlbody;
|
|
|
|
- }
|
|
|
|
- function getSpotHtml2(htmlbody, i) {
|
|
|
|
- htmlbody += "<tr>";
|
|
|
|
- htmlbody += `<tr>
|
|
|
|
- <td>${badid[i]}</td>
|
|
|
|
- <td>${badpass[i]}</td>
|
|
|
|
- <td>${badid[i]}</td>
|
|
|
|
- <td>${badfailrate[i]}</td>
|
|
|
|
- </tr>`;
|
|
|
|
- htmlbody += "</tr>";
|
|
|
|
- return htmlbody;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- function showEachSpot() {
|
|
|
|
- var htmlbody = "", one_person = "";
|
|
|
|
- var i = 0;
|
|
|
|
- var triGap = 4;
|
|
|
|
-
|
|
|
|
- htmlbody = "";
|
|
|
|
- for (i = 0; i < triGap; i++) {
|
|
|
|
-
|
|
|
|
- htmlbody = getSpotHtml(htmlbody, i);
|
|
|
|
- }
|
|
|
|
- $("#rank-one").html(htmlbody);
|
|
|
|
- console.log(htmlbody);
|
|
|
|
- }
|
|
|
|
- function showEachSpot1() {
|
|
|
|
- var htmlbody = "", one_person = "";
|
|
|
|
- var i = 0;
|
|
|
|
- var triGap = 3;
|
|
|
|
-
|
|
|
|
- htmlbody = "";
|
|
|
|
- for (i = 0; i < triGap; i++) {
|
|
|
|
|
|
+ </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>
|
|
|
|
+
|
|
|
|
+<!-- Demo Js -->
|
|
|
|
+<script src="js/basic.js"></script>
|
|
|
|
+<script src="js/getparam.js"></script>
|
|
|
|
+<script src="js/resize.js"></script>
|
|
|
|
+<script src="js/dapingmu.js"> </script>
|
|
|
|
+<script src="js/dapingmu-display.js"> </script>
|
|
|
|
|
|
- htmlbody = getSpotHtml1(htmlbody, i);
|
|
|
|
- }
|
|
|
|
- $("#rank-two").html(htmlbody);
|
|
|
|
- console.log(htmlbody);
|
|
|
|
- }
|
|
|
|
- function showEachSpot2() {
|
|
|
|
- var htmlbody = "", one_person = "";
|
|
|
|
- var i = 0;
|
|
|
|
- var triGap = 3;
|
|
|
|
-
|
|
|
|
- htmlbody = "";
|
|
|
|
- for (i = 0; i < triGap; i++) {
|
|
|
|
-
|
|
|
|
- htmlbody = getSpotHtml2(htmlbody, i);
|
|
|
|
- }
|
|
|
|
- $("#rank-three").html(htmlbody);
|
|
|
|
- console.log(htmlbody);
|
|
|
|
- }
|
|
|
|
- var i =0,j=0;
|
|
|
|
- function showChart() {
|
|
|
|
-
|
|
|
|
- var stackdata = [];
|
|
|
|
- var passdata=[];
|
|
|
|
- var faildata=[];
|
|
|
|
- var ratedata=[];
|
|
|
|
- var failmax=0;
|
|
|
|
- var passmax=0;
|
|
|
|
- var iddata=[];
|
|
|
|
- var summax=0;
|
|
|
|
- var stackmax=0;
|
|
|
|
- var ratemax=0;
|
|
|
|
- for (i = 0; i < passeverynum.length; i++) {
|
|
|
|
- passdata.push(passeverynum[i]);
|
|
|
|
- faildata.push(faileverynum[i]);
|
|
|
|
- stackdata.push(stackeverynum[i]);
|
|
|
|
- ratedata.push(failrate[i]);
|
|
|
|
- iddata.push(flownum[i]);
|
|
|
|
-
|
|
|
|
- if (ratemax < ratedata[i]) {
|
|
|
|
- ratemax = ratedata[i];
|
|
|
|
- }
|
|
|
|
- if(passmax<passeverynum[i]){
|
|
|
|
- passmax=passeverynum[i];
|
|
|
|
- }
|
|
|
|
- if(failmax<passeverynum[i]){
|
|
|
|
- failmax=passeverynum[i];
|
|
|
|
- }
|
|
|
|
- if(stackmax<passeverynum[i]){
|
|
|
|
- stackmax=passeverynum[i];
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
- if(passmax<failmax)
|
|
|
|
- {
|
|
|
|
- passmax=failmax
|
|
|
|
- }
|
|
|
|
- if(passmax<stackmax){
|
|
|
|
- passmax=stackmax;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- showEachSpot();
|
|
|
|
- showEachSpot1();
|
|
|
|
- showEachSpot2();
|
|
|
|
-
|
|
|
|
- stackAndFailChart = Highcharts.chart('graph-1', {
|
|
|
|
- chart: {
|
|
|
|
- zoomType: 'xy',
|
|
|
|
- height: (4 / 16 * 100) + '%' // 16:9 ratio
|
|
|
|
- },
|
|
|
|
- title: {
|
|
|
|
- text: '各产线今日产能'
|
|
|
|
- },
|
|
|
|
- credits: {
|
|
|
|
- enabled: false // 禁用版权信息
|
|
|
|
- },
|
|
|
|
- exporting: {
|
|
|
|
- enabled: false
|
|
|
|
- },
|
|
|
|
- xAxis: [{
|
|
|
|
- crosshair: true,
|
|
|
|
- labels: {
|
|
|
|
- style: {
|
|
|
|
- fontSize: '1.5em'
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- categories: iddata,
|
|
|
|
- }],
|
|
|
|
- yAxis: [{ // Primary yAxis
|
|
|
|
- labels: {
|
|
|
|
- format: '{value}',
|
|
|
|
- style: {
|
|
|
|
- color: Highcharts.getOptions().colors[0],
|
|
|
|
- fontSize: '1.5em'
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- min: 0,
|
|
|
|
- max: passmax*1.5,
|
|
|
|
- title: {
|
|
|
|
-
|
|
|
|
- style: {
|
|
|
|
- color: Highcharts.getOptions().colors[0],
|
|
|
|
- fontSize: '1em'
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
- tooltip: {
|
|
|
|
- shared: true
|
|
|
|
- },
|
|
|
|
- legend: {
|
|
|
|
- layout: 'vertical',
|
|
|
|
- align: 'right',
|
|
|
|
- x: -100,
|
|
|
|
- verticalAlign: 'top',
|
|
|
|
- y: 0,
|
|
|
|
- floating: true,
|
|
|
|
- backgroundColor: (Highcharts.theme && Highcharts.theme.legendBackgroundColor) || '#FFFFFF'
|
|
|
|
- },
|
|
|
|
- series: [{
|
|
|
|
- name: '良品数',
|
|
|
|
- type: 'column',
|
|
|
|
- data: passdata,
|
|
|
|
-
|
|
|
|
- }, {
|
|
|
|
- name: '不良品数',
|
|
|
|
- type: 'column',
|
|
|
|
- data: faildata,
|
|
|
|
-
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- name: '堆积数',
|
|
|
|
- type: 'column',
|
|
|
|
- data: stackdata,
|
|
|
|
-
|
|
|
|
- },]
|
|
|
|
- });
|
|
|
|
- FailChart = Highcharts.chart('graph-2', {
|
|
|
|
- chart: {
|
|
|
|
-
|
|
|
|
- height: (4 / 16 * 100) + '%' // 16:9 ratio
|
|
|
|
- },
|
|
|
|
- title: {
|
|
|
|
- text: '各产线今日不良率'
|
|
|
|
- },
|
|
|
|
- credits: {
|
|
|
|
- enabled: false // 禁用版权信息
|
|
|
|
- },
|
|
|
|
- exporting: {
|
|
|
|
- enabled: false
|
|
|
|
- },
|
|
|
|
- xAxis: [{
|
|
|
|
- crosshair: true,
|
|
|
|
- labels: {
|
|
|
|
- style: {
|
|
|
|
- fontSize: '1.5em'
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- categories: iddata,
|
|
|
|
- }],
|
|
|
|
- yAxis: [ { // Secondary yAxis
|
|
|
|
- title: {
|
|
|
|
- text: '不良率',
|
|
|
|
- style: {
|
|
|
|
- color: 'red',
|
|
|
|
- fontSize: '1em'
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- min: 0,
|
|
|
|
- max: 1.5 * ratemax,
|
|
|
|
- labels: {
|
|
|
|
- formatter: function () {
|
|
|
|
- return Math.floor(this.value) + "%";
|
|
|
|
- },
|
|
|
|
- style: {
|
|
|
|
- color: 'red',
|
|
|
|
- fontSize: '20px'
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
- }],
|
|
|
|
- tooltip: {
|
|
|
|
- shared: true
|
|
|
|
- },
|
|
|
|
- legend: {
|
|
|
|
- layout: 'vertical',
|
|
|
|
- align: 'right',
|
|
|
|
- x: -120,
|
|
|
|
- verticalAlign: 'top',
|
|
|
|
- y: 0,
|
|
|
|
- floating: true,
|
|
|
|
- backgroundColor: (Highcharts.theme && Highcharts.theme.legendBackgroundColor) || '#FFFFFF'
|
|
|
|
- },
|
|
|
|
- series: [{
|
|
|
|
- name: '不良率',
|
|
|
|
- type: 'spline',
|
|
|
|
-
|
|
|
|
- data: ratedata,
|
|
|
|
- color: 'red',
|
|
|
|
- tooltip: {
|
|
|
|
- valueSuffix: '%'
|
|
|
|
- }
|
|
|
|
- }]
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
- function updateChart() {
|
|
|
|
- var stackdata = [];
|
|
|
|
- var passdata=[];
|
|
|
|
- var faildata=[];
|
|
|
|
- var ratedata=[];
|
|
|
|
- var failmax=0;
|
|
|
|
- var passmax=0;
|
|
|
|
- var iddata=[];
|
|
|
|
- var summax=0;
|
|
|
|
- var stackmax=0;
|
|
|
|
- var ratemax=0;
|
|
|
|
- for (i = 0; i < passeverynum.length; i++) {
|
|
|
|
- passdata.push(passeverynum[i]);
|
|
|
|
- faildata.push(faileverynum[i]);
|
|
|
|
- stackdata.push(stackeverynum[i]);
|
|
|
|
- ratedata.push(failrate[i]);
|
|
|
|
- iddata.push(flownum[i]);
|
|
|
|
- if (ratemax < ratedata[i]) {
|
|
|
|
- ratemax = ratedata[i];
|
|
|
|
- }
|
|
|
|
- if(passmax<passeverynum[i]){
|
|
|
|
- passmax=passeverynum[i];
|
|
|
|
- }
|
|
|
|
- if(failmax<passeverynum[i]){
|
|
|
|
- failmax=passeverynum[i];
|
|
|
|
- }
|
|
|
|
- if(stackmax<passeverynum[i]){
|
|
|
|
- stackmax=passeverynum[i];
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
- if(passmax<failmax)
|
|
|
|
- {
|
|
|
|
- passmax=failmax
|
|
|
|
- }
|
|
|
|
- if(passmax<stackmax){
|
|
|
|
- passmax=stackmax;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- // https://api.hcharts.cn/highcharts#Series.addPoint;
|
|
|
|
- stackAndFailChart.series[0].setData(passdata);
|
|
|
|
- stackAndFailChart.series[1].setData(faildata);
|
|
|
|
- stackAndFailChart.series[2].setData(stackdata);
|
|
|
|
- FailChart.series[0].setData(ratedata);
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- showEachSpot();
|
|
|
|
- showEachSpot1();
|
|
|
|
- showEachSpot2();
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- var stackAndFailChart = null;
|
|
|
|
- var FailChart = null;
|
|
|
|
-
|
|
|
|
- $(document).ready(on_document_load);
|
|
|
|
- </script>
|
|
|
|
</body>
|
|
</body>
|
|
|
|
|
|
</html>
|
|
</html>
|