Browse Source

Change stuff and realtime JS made

Guichuan Yu 6 years ago
parent
commit
6e1ad19c49
9 changed files with 1544 additions and 1106 deletions
  1. 152 130
      boss1.html
  2. 112 0
      css/cyllic.css
  3. BIN
      css/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2
  4. 23 0
      css/mateial.css
  5. 53 12
      dapingmu.html
  6. 414 248
      example.html
  7. 146 0
      js/basic.js
  8. 337 0
      js/reference.js
  9. 307 716
      lazhang.html

+ 152 - 130
boss1.html

@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<html>
+<html style="height: 100%">
 
 <head>
     <meta charset="UTF-8">
@@ -41,13 +41,59 @@
     <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>
+        var timer=null;
+        function displayClock(num){//num是传入的startClock中的动态值
+            if(num<10){
+                return "0"+num;
+            }
+            else{
+                return num;
+            }
+        }
+        //停止计时
+        function stopClock(){
+            clearTimeout(timer);
+        }
+        //开始计时
+        function startClock(){
+            var time =new Date();
+            var hours=displayClock(time.getHours())+":";
+            var minutes=displayClock(time.getMinutes())+":";
+            var seconds=displayClock(time.getSeconds());
+            //显示时间
+            show.innerHTML=hours+minutes+seconds;//在id为show的块区域显示
+            timer=setTimeout("startClock()",1000);//延时器
+        }
+    </script>
 </head>
+<style>
+    #show{
+        font-size: 30px;
+        color:#black;
+        text-align:center;
+    }
+</style>
+<body onload="startClock()" onunload="stopClock()" class="theme-red" style="height: 100%">
+<div class="container-fluid" style="margin: 0 auto;height: 100%">
+  <div style="width: 60%;float: left;height: 100%">
+    <div class="row" style="font-size: 2em;height: 8%">
+        <div class="col-3"></div>
+        <div class="col-3">全厂统揽</div>
+        <div class="col-3" id="show"></div>
+        <div class="col-3"></div>
 
-<body class="theme-red">
+    </div>
 
-<div class="row clearfix">
+   <div class="row " style="height: 35%">
     <!-- Visitors -->
-    <div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
+       <script>
+           function addContent(name){
+               console.log( $(name));
+               $(name).tab('show');
+           }
+       </script>
+    <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"style="height: 80%">
         <div class="card">
             <div class="body bg-pink">
                 <div class="text-center" style="font-size: 2em">全厂产能</div>
@@ -81,7 +127,7 @@
     </div>
     <!-- #END# Visitors -->
     <!-- Latest Social Trends -->
-    <div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
+    <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
         <div class="card">
             <div class="body bg-cyan">
                 <div class="text-center" style="font-size: 2em">全厂不良率</div>
@@ -112,9 +158,84 @@
             </div>
         </div>
     </div>
+
     <!-- #END# Latest Social Trends -->
     <!-- Answered Tickets -->
-    <div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
+
+
+    <!-- #END# Answered Tickets -->
+  </div>
+      <div class="" style="height: 55%">
+          <div class="card">
+
+              <div class="body" style="font-size: 2em">
+                  <div class="table-responsive" style="width: 50%;float: left">
+                      <table class="table table-hover dashboard-task-infos">
+                          <thead>
+                          <tr style="border-bottom:3px solid black;">
+                              <th>不良工率最高</th>
+                              <th>数量</th>
+
+                          </tr>
+                          </thead>
+                          <tbody id="rank-one">
+                          <tr >
+                              <td>张三</td>
+                              <td>11</td>
+
+
+                          </tr>
+                          <tr>
+                              <td>李四</td>
+                              <td>33</td>
+
+
+                          </tr>
+                          <tr>
+                              <td>王五</td>
+                              <td>21</td>
+
+
+                          </tr>
+
+                          </tbody>
+                      </table>
+                  </div>
+                  <div class="table-responsive" style="width:50%">
+                      <table class="table table-hover dashboard-task-infos">
+                          <thead>
+                          <tr style="border-bottom:3px solid black;">
+                              <th>产能最低</th>
+                              <th>数量</th>
+
+                          </tr>
+                          </thead>
+                          <tbody id="rank-one">
+                          <tr >
+                              <td>Task A</td>
+                              <td>22</td>
+
+                          </tr>
+                          <tr>
+                              <td>Task B</td>
+                              <td>44</td>
+
+                          </tr>
+                          <tr>
+                              <td>Task C</td>
+                              <td>12</td>
+
+                          </tr>
+
+                          </tbody>
+                      </table>
+                  </div>
+              </div>
+          </div>
+      </div>
+   </div>
+   <div class="" style="width: 40%;float: right">
+    <div class="">
         <div class="card">
             <div class="body bg-teal">
                 <div class="text-center" style="font-size: 2em">每拉产能</div>
@@ -142,136 +263,37 @@
                     <div class="col-4">552555</div>
                     <div class="col-2"></div>
                 </div>
-            </div>
-        </div>
-    </div>
-    <!-- #END# Answered Tickets -->
-</div>
-
-<div class="cow">
-    <div class="card">
-
-        <div class="body">
-            <div class="table-responsive" style="width: 50%;float: left">
-                <table class="table table-hover dashboard-task-infos">
-                    <thead>
-                    <tr style="border-bottom:3px solid black;">
-                        <th>不良工率最高</th>
-                        <th>数量</th>
-
-                    </tr>
-                    </thead>
-                    <tbody id="rank-one">
-                    <tr >
-                        <td>张三</td>
-                        <td>11</td>
-
-
-                    </tr>
-                    <tr>
-                        <td>李四</td>
-                        <td>33</td>
-
-
-                    </tr>
-                    <tr>
-                        <td>王五</td>
-                        <td>21</td>
-
-
-                    </tr>
-
-                    </tbody>
-                </table>
-            </div>
-            <div class="table-responsive" style="width:50%">
-                <table class="table table-hover dashboard-task-infos">
-                    <thead>
-                    <tr style="border-bottom:3px solid black;">
-                        <th>产能最低</th>
-                        <th>数量</th>
-
-                    </tr>
-                    </thead>
-                    <tbody id="rank-one">
-                    <tr >
-                        <td>Task A</td>
-                        <td>22</td>
-
-                    </tr>
-                    <tr>
-                        <td>Task B</td>
-                        <td>44</td>
-
-                    </tr>
-                    <tr>
-                        <td>Task C</td>
-                        <td>12</td>
-
-                    </tr>
-
-                    </tbody>
-                </table>
-            </div>
-        </div>
-    </div>
-</div>
-    <section class="content" style="margin: 0 auto">
-        <div class="container-fluid">
-            <div class="block-header">
-                <h2>DASHBOARD</h2>
-            </div>
-
-            <!-- Widgets -->
-            <div class="row clearfix">
-                <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
-                    <div class="info-box bg-pink hover-expand-effect">
-                        <div class="icon">
-                            <i class="material-icons">playlist_add_check</i>
-                        </div>
-                        <div class="content">
-                            <div class="text">NEW TASKS</div>
-                            <div class="number count-to" data-from="0" data-to="125" data-speed="15" data-fresh-interval="20"></div>
-                        </div>
-                    </div>
+                <div class="row text-center" style="font-size: 2em">
+                    <div class="col-2"></div>
+                    <div class="col-5">生产线<span>一</span>号</div>
+                    <div class="col-4">1255</div>
+                    <div class="col-2"></div>
                 </div>
-                <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
-                    <div class="info-box bg-cyan hover-expand-effect">
-                        <div class="icon">
-                            <i class="material-icons">help</i>
-                        </div>
-                        <div class="content">
-                            <div class="text">NEW TICKETS</div>
-                            <div class="number count-to" data-from="0" data-to="257" data-speed="1000" data-fresh-interval="20"></div>
-                        </div>
-                    </div>
+                <div class="row text-center" style="font-size: 2em">
+                    <div class="col-2"></div>
+                    <div class="col-5">生产线<span>二</span>号</div>
+                    <div class="col-4">1235</div>
+                    <div class="col-2"></div>
                 </div>
-                <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
-                    <div class="info-box bg-light-green hover-expand-effect">
-                        <div class="icon">
-                            <i class="material-icons">forum</i>
-                        </div>
-                        <div class="content">
-                            <div class="text">NEW COMMENTS</div>
-                            <div class="number count-to" data-from="0" data-to="243" data-speed="1000" data-fresh-interval="20"></div>
-                        </div>
-                    </div>
+                <div class="row text-center" style="font-size: 2em">
+                    <div class="col-2"></div>
+                    <div class="col-5">生产线<span>三</span>号</div>
+                    <div class="col-4">12355</div>
+                    <div class="col-2"></div>
                 </div>
-                <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
-                    <div class="info-box bg-orange hover-expand-effect">
-                        <div class="icon">
-                            <i class="material-icons">person_add</i>
-                        </div>
-                        <div class="content">
-                            <div class="text">NEW VISITORS</div>
-                            <div class="number count-to" data-from="0" data-to="1225" data-speed="1000" data-fresh-interval="20"></div>
-                        </div>
-                    </div>
+                <div class="row text-center" style="font-size: 2em">
+                    <div class="col-2"></div>
+                    <div class="col-5">生产线<span>四</span>号</div>
+                    <div class="col-4">552555</div>
+                    <div class="col-2"></div>
                 </div>
             </div>
-            <!-- #END# Widgets -->
         </div>
-    </section>
+    </div>
+   </div>
+</div>
+
+
 
     <!-- Jquery Core Js -->
     <script src="plugins/jquery/jquery.min.js"></script>

+ 112 - 0
css/cyllic.css

@@ -0,0 +1,112 @@
+/* cyrillic-ext */
+@font-face {
+    font-family: 'Roboto';
+    font-style: normal;
+    font-weight: 400;
+    src: local('Roboto'), local('Roboto-Regular'), url(http://libs.useso.com/s/roboto/v18/KFOmCnqEu92Fr1Mu72xKOzY.woff2) format('woff2');
+    unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
+}
+/* cyrillic */
+@font-face {
+    font-family: 'Roboto';
+    font-style: normal;
+    font-weight: 400;
+    src: local('Roboto'), local('Roboto-Regular'), url(http://libs.useso.com/s/roboto/v18/KFOmCnqEu92Fr1Mu5mxKOzY.woff2) format('woff2');
+    unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
+}
+/* greek-ext */
+@font-face {
+    font-family: 'Roboto';
+    font-style: normal;
+    font-weight: 400;
+    src: local('Roboto'), local('Roboto-Regular'), url(http://libs.useso.com/s/roboto/v18/KFOmCnqEu92Fr1Mu7mxKOzY.woff2) format('woff2');
+    unicode-range: U+1F00-1FFF;
+}
+/* greek */
+@font-face {
+    font-family: 'Roboto';
+    font-style: normal;
+    font-weight: 400;
+    src: local('Roboto'), local('Roboto-Regular'), url(http://libs.useso.com/s/roboto/v18/KFOmCnqEu92Fr1Mu4WxKOzY.woff2) format('woff2');
+    unicode-range: U+0370-03FF;
+}
+/* vietnamese */
+@font-face {
+    font-family: 'Roboto';
+    font-style: normal;
+    font-weight: 400;
+    src: local('Roboto'), local('Roboto-Regular'), url(http://libs.useso.com/s/roboto/v18/KFOmCnqEu92Fr1Mu7WxKOzY.woff2) format('woff2');
+    unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB;
+}
+/* latin-ext */
+@font-face {
+    font-family: 'Roboto';
+    font-style: normal;
+    font-weight: 400;
+    src: local('Roboto'), local('Roboto-Regular'), url(http://libs.useso.com/s/roboto/v18/KFOmCnqEu92Fr1Mu7GxKOzY.woff2) format('woff2');
+    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
+}
+/* latin */
+@font-face {
+    font-family: 'Roboto';
+    font-style: normal;
+    font-weight: 400;
+    src: local('Roboto'), local('Roboto-Regular'), url(http://libs.useso.com/s/roboto/v18/KFOmCnqEu92Fr1Mu4mxK.woff2) format('woff2');
+    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
+/* cyrillic-ext */
+@font-face {
+    font-family: 'Roboto';
+    font-style: normal;
+    font-weight: 700;
+    src: local('Roboto Bold'), local('Roboto-Bold'), url(http://libs.useso.com/s/roboto/v18/KFOlCnqEu92Fr1MmWUlfCRc4EsA.woff2) format('woff2');
+    unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
+}
+/* cyrillic */
+@font-face {
+    font-family: 'Roboto';
+    font-style: normal;
+    font-weight: 700;
+    src: local('Roboto Bold'), local('Roboto-Bold'), url(http://libs.useso.com/s/roboto/v18/KFOlCnqEu92Fr1MmWUlfABc4EsA.woff2) format('woff2');
+    unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
+}
+/* greek-ext */
+@font-face {
+    font-family: 'Roboto';
+    font-style: normal;
+    font-weight: 700;
+    src: local('Roboto Bold'), local('Roboto-Bold'), url(http://libs.useso.com/s/roboto/v18/KFOlCnqEu92Fr1MmWUlfCBc4EsA.woff2) format('woff2');
+    unicode-range: U+1F00-1FFF;
+}
+/* greek */
+@font-face {
+    font-family: 'Roboto';
+    font-style: normal;
+    font-weight: 700;
+    src: local('Roboto Bold'), local('Roboto-Bold'), url(http://libs.useso.com/s/roboto/v18/KFOlCnqEu92Fr1MmWUlfBxc4EsA.woff2) format('woff2');
+    unicode-range: U+0370-03FF;
+}
+/* vietnamese */
+@font-face {
+    font-family: 'Roboto';
+    font-style: normal;
+    font-weight: 700;
+    src: local('Roboto Bold'), local('Roboto-Bold'), url(http://libs.useso.com/s/roboto/v18/KFOlCnqEu92Fr1MmWUlfCxc4EsA.woff2) format('woff2');
+    unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB;
+}
+/* latin-ext */
+@font-face {
+    font-family: 'Roboto';
+    font-style: normal;
+    font-weight: 700;
+    src: local('Roboto Bold'), local('Roboto-Bold'), url(http://libs.useso.com/s/roboto/v18/KFOlCnqEu92Fr1MmWUlfChc4EsA.woff2) format('woff2');
+    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
+}
+/* latin */
+@font-face {
+    font-family: 'Roboto';
+    font-style: normal;
+    font-weight: 700;
+    src: local('Roboto Bold'), local('Roboto-Bold'), url(http://libs.useso.com/s/roboto/v18/KFOlCnqEu92Fr1MmWUlfBBc4.woff2) format('woff2');
+    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}

BIN
css/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2


+ 23 - 0
css/mateial.css

@@ -0,0 +1,23 @@
+/* fallback */
+@font-face {
+    font-family: 'Material Icons';
+    font-style: normal;
+    font-weight: 400;
+    src: url(flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2');
+}
+
+.material-icons {
+    font-family: 'Material Icons';
+    font-weight: normal;
+    font-style: normal;
+    font-size: 24px;
+    line-height: 1;
+    letter-spacing: normal;
+    text-transform: none;
+    display: inline-block;
+    white-space: nowrap;
+    word-wrap: normal;
+    direction: ltr;
+    -webkit-font-feature-settings: 'liga';
+    -webkit-font-smoothing: antialiased;
+}

+ 53 - 12
dapingmu.html

@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<html>
+<html style="height: 100%">
 
 <head>
     <meta charset="UTF-8">
@@ -41,15 +41,56 @@
     <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>
+        var timer=null;
+        function displayClock(num){//num是传入的startClock中的动态值
+            if(num<10){
+                return "0"+num;
+            }
+            else{
+                return num;
+            }
+        }
+        //停止计时
+        function stopClock(){
+            clearTimeout(timer);
+        }
+        //开始计时
+        function startClock(){
+            var time =new Date();
+            var hours=displayClock(time.getHours())+":";
+            var minutes=displayClock(time.getMinutes())+":";
+            var seconds=displayClock(time.getSeconds());
+            //显示时间
+            show.innerHTML=hours+minutes+seconds;//在id为show的块区域显示
+            timer=setTimeout("startClock()",1000);//延时器
+        }
+    </script>
 </head>
+<style>
+    #show{
+        font-size: 30px;
+        color:#black;
+        text-align:center;
+    }
+</style>
+<body onload="startClock()" onunload="stopClock()" class="theme-red" style="height: 100%">
+    <section class="content" style="margin: 0 auto;height: 100%">
+        <div class="row" style="font-size: 2em;height: 7%">
 
-<body class="theme-red">
+            <div class="col-6 text-right" >大屏幕产能监控系统</div>
+            <div class="col-6 text-left" id="show" ></div>
 
-    <section class="content" style="margin: 0 auto">
 
+        </div>
+        <script>
+            function addContent(name){
+                console.log( $(name));
+                $(name).tab('show');
+            }
+        </script>
             <!-- #END# CPU Usage -->
-            <div class="row clearfix">
+            <div class="row clearfix" style="height: 13%">
                 <!-- Visitors -->
                 <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
                     <div class="card" style="margin-bottom: 0.2em">
@@ -83,9 +124,9 @@
 
                 <!-- #END# Answered Tickets -->
             </div>
-        <div class="container-fluid">
-            <div id="container3" style="min-width:350px;height:330px;padding-bottom: 0.2em"></div>
-            <div id="container5" style="min-width:350px;height:300px"></div>
+        <div class="container-fluid" style="height: 80%">
+            <div id="container3" style="height:50%"></div>
+            <div id="container5" style="height:50%;padding-top: 0.2em"></div>
         </div>
 
 
@@ -320,10 +361,10 @@
             },
             legend: {
                 layout: 'vertical',
-                align: 'left',
-                x: 120,
+                align: 'right',
+                x: -120,
                 verticalAlign: 'top',
-                y: 100,
+                y: 0,
                 floating: true,
                 backgroundColor: (Highcharts.theme && Highcharts.theme.legendBackgroundColor) || '#FFFFFF'
             },
@@ -437,7 +478,7 @@
             title: {
                 text: '每拉实时产能',
                 style:{
-                    fontSize:"10px",
+                    fontSize:"20px",
                 }
             },
 

+ 414 - 248
example.html

@@ -9,30 +9,36 @@
     <link rel="icon" href="favicon.ico" type="image/x-icon">
 
     <!-- Google Fonts -->
-    <link href="https://fonts.googleapis.com/css?family=Roboto:400,700&subset=latin,cyrillic-ext" rel="stylesheet" type="text/css">
+    <link href="https://fonts.googleapis.com/css?family=Roboto:400,700&subset=latin,cyrillic-ext" rel="stylesheet"
+          type="text/css">
     <link href="https://fonts.googleapis.com/icon?family=Material+Icons" 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">
+    <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" />
+    <link href="plugins/node-waves/waves.css" rel="stylesheet"/>
 
     <!-- Animation Css -->
-    <link href="plugins/animate-css/animate.css" rel="stylesheet" />
+    <link href="plugins/animate-css/animate.css" rel="stylesheet"/>
 
     <!-- Morris Chart Css-->
-    <link href="plugins/morrisjs/morris.css" rel="stylesheet" />
+    <link href="plugins/morrisjs/morris.css" rel="stylesheet"/>
 
     <!-- Custom Css -->
     <link href="css/style.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" />
+    <link href="css/themes/all-themes.css" rel="stylesheet"/>
     <link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
     <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>
+    <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="stylesheet" href="http://jqueryui.com/resources/demos/style.css">
     <link rel="icon" href="https://static.jianshukeji.com/highcharts/images/favicon.ico">
     <meta name="viewport" content="width=device-width, initial-scale=1">
@@ -45,279 +51,439 @@
 </head>
 <body>
 
-    <div class="row">
-        <div class=" col-lg-3 col-md-3 col-sm-6 col-xs-12">
-            <div class="info-box bg-pink " onclick="addContent1()" >
-                合格数
-                <script>
-                    function addContent1(){
-                        $('a[href="#home"]').tab('show');
-                    }
-                </script>
+<div class="row">
+    <div class=" col-lg-3 col-md-3 col-sm-6 col-xs-12">
+        <div class="info-box bg-pink " onclick="addContent1()">
+            合格数
+            <script>
+                function addContent1() {
+                    $('a[href="#home"]').tab('show');
+                }
+            </script>
 
-            </div>
         </div>
-        <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
-            <div class="info-box bg-cyan "onclick="addContent2()">
-                不合格数
-                <script>
-                    function addContent2(){
-                        $('a[href="#profile"]').tab('show');
-                    }
-                </script>
+    </div>
+    <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
+        <div class="info-box bg-cyan " onclick="addContent2()">
+            不合格数
+            <script>
+                function addContent2() {
+                    $('a[href="#profile"]').tab('show');
+                }
+            </script>
 
-            </div>
         </div>
-        <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
-            <div class="info-box bg-light-green " onclick="addContent3()">
-                堆积数
-                <script>
-                    function addContent3(){
-                        $('a[href="#contact"]').tab('show');
-                    }
-                </script>
-            </div>
+    </div>
+    <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
+        <div class="info-box bg-light-green " onclick="addContent3()">
+            堆积数
+            <script>
+                function addContent3() {
+                    $('a[href="#contact"]').tab('show');
+                }
+            </script>
         </div>
-        <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
-            <div class="info-box bg-orange " onclick="addContent4()">
-                工作时长
-                <script>
-                   function addContent4(){
-                        $('a[href="#time"]').tab('show');
-                    }
-                </script>
-            </div>
+    </div>
+    <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
+        <div class="info-box bg-orange " onclick="addContent4()">
+            工作时长
+            <script>
+                function addContent4() {
+                    $('a[href="#time"]').tab('show');
+                }
+            </script>
         </div>
     </div>
-    <div>
-        <ul class="nav nav-tabs" id="myTab" role="tablist" style="display: none">
-            <li class="nav-item">
-                <a class="nav-link active" id="home-tab" data-toggle="tab" href="#home" role="tab" aria-controls="home" aria-selected="true">Home</a>
-            </li>
-            <li class="nav-item">
-                <a class="nav-link" id="profile-tab" data-toggle="tab" href="#profile" role="tab" aria-controls="profile" aria-selected="false">Profile</a>
-            </li>
-            <li class="nav-item">
-                <a class="nav-link" id="contact-tab" data-toggle="tab" href="#contact" role="tab" aria-controls="contact" aria-selected="false">Contact</a>
-            </li>
-            <li class="nav-item">
-                <a class="nav-link" id="time-tab" data-toggle="tab" href="#time" role="tab" aria-controls="time" aria-selected="false">Time</a>
-            </li>
-        </ul>
-        <div class="tab-content" id="myTabContent">
-            <div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">
-                <div id="container1"class="text-center" style="width: 50%;height:400px;margin: 0 auto"></div>
-            </div>
-            <div class="tab-pane fade" id="profile" role="tabpanel" aria-labelledby="profile-tab">
-                <div id="container2" style="width:50%;height:400px;margin: 0 auto"></div>
-            </div>
-            <div class="tab-pane fade" id="contact" role="tabpanel" aria-labelledby="contact-tab">
-                <div id="container3" style="width:50%;height:400px;margin: 0 auto"></div>
-            </div>
-            <div class="tab-pane fade" id="time" role="tabpanel" aria-labelledby="contact-tab">
-                <div id="container4" style="width:50%;height:400px;margin: 0 auto"></div>
-            </div>
+</div>
+<div>
+    <ul class="nav nav-tabs" id="myTab" role="tablist" style="display: none">
+        <li class="nav-item">
+            <a class="nav-link active" id="home-tab" data-toggle="tab" href="#home" role="tab" aria-controls="home"
+               aria-selected="true">Home</a>
+        </li>
+        <li class="nav-item">
+            <a class="nav-link" id="profile-tab" data-toggle="tab" href="#profile" role="tab" aria-controls="profile"
+               aria-selected="false">Profile</a>
+        </li>
+        <li class="nav-item">
+            <a class="nav-link" id="contact-tab" data-toggle="tab" href="#contact" role="tab" aria-controls="contact"
+               aria-selected="false">Contact</a>
+        </li>
+        <li class="nav-item">
+            <a class="nav-link" id="time-tab" data-toggle="tab" href="#time" role="tab" aria-controls="time"
+               aria-selected="false">Time</a>
+        </li>
+    </ul>
+    <div class="tab-content" id="myTabContent">
+        <div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">
+            <div id="container" class="text-center" style="width: 50%;height:400px;margin: 0 auto"></div>
+        </div>
+        <div class="tab-pane fade" id="profile" role="tabpanel" aria-labelledby="profile-tab">
+            <div id="container2" style="width:50%;height:400px;margin: 0 auto"></div>
+        </div>
+        <div class="tab-pane fade" id="contact" role="tabpanel" aria-labelledby="contact-tab">
+            <div id="container3" style="width:50%;height:400px;margin: 0 auto"></div>
+        </div>
+        <div class="tab-pane fade" id="time" role="tabpanel" aria-labelledby="contact-tab">
+            <div id="container5" style="width:50%;height:400px;margin: 0 auto"></div>
         </div>
     </div>
+</div>
+
+
+<script>
+    var chart = Highcharts.chart('container2', {
+        chart: {
+            type: 'column'
+        },
+        title: {
+            text: '月平均降雨量'
+        },
+        subtitle: {
+            text: '数据来源: WorldClimate.com'
+        },
+        xAxis: {
+            categories: [
+                '一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'
+            ],
+            crosshair: true
+        },
+        yAxis: {
+            min: 0,
+            title: {
+                text: '降雨量 (mm)'
+            }
+        },
+        tooltip: {
+            // head + 每个 point + footer 拼接成完整的 table
+            headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
+            pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
+            '<td style="padding:0"><b>{point.y:.1f} mm</b></td></tr>',
+            footerFormat: '</table>',
+            shared: true,
+            useHTML: true
+        },
+        plotOptions: {
+            column: {
+                borderWidth: 0
+            }
+        },
+        series: [{
+            name: '东京',
+            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]
+        }, {
+            name: '纽约',
+            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]
+        }, {
+            name: '伦敦',
+            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]
+        }, {
+            name: '柏林',
+            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]
+        }]
+    });
+</script>
+<script>
+    var chart = Highcharts.chart('container1', {
+        chart: {
+            type: 'bar'
+        },
+        title: {
+            text: '堆叠条形图'
+        },
+        xAxis: {
+            categories: ['苹果', '橘子', '梨', '葡萄', '香蕉']
+        },
+        yAxis: {
+            min: 0,
+            title: {
+                text: '水果消费总量'
+            }
+        },
+        legend: {
+            /* 图例显示顺序反转
+             * 这是因为堆叠的顺序默认是反转的,可以设置
+             * yAxis.reversedStacks = false 来达到类似的效果
+             */
+            reversed: true
+        },
+        plotOptions: {
+            series: {
+                stacking: 'normal'
+            }
+        },
+        series: [{
+            name: '小张',
+            data: [5, 3, 4, 7, 2]
+        }, {
+            name: '小彭',
+            data: [2, 2, 3, 2, 1]
+        }, {
+            name: '小潘',
+            data: [3, 4, 4, 2, 5]
+        }]
+    });
+</script>
+<script>
+    var chart = Highcharts.chart('container3', {
+        chart: {
+            type: 'column'
+        },
+        title: {
+            text: '全球各大城市人口排行'
+        },
+        subtitle: {
+            text: '数据截止 2017-03,来源: <a href="https://en.wikipedia.org/wiki/List_of_cities_proper_by_population">Wikipedia</a>'
+        },
+        xAxis: {
+            type: 'category',
+            labels: {
+                rotation: -45  // 设置轴标签旋转角度
+            }
+        },
+        yAxis: {
+            min: 0,
+            title: {
+                text: '人口 (百万)'
+            }
+        },
+        legend: {
+            enabled: false
+        },
+        tooltip: {
+            pointFormat: '人口总量: <b>{point.y:.1f} 百万</b>'
+        },
+        series: [{
+            name: '总人口',
+            data: [
+                ['上海', 24.25],
+                ['卡拉奇', 23.50],
+                ['北京', 21.51],
+                ['德里', 16.78],
+                ['拉各斯', 16.06],
+                ['天津', 15.20],
+                ['伊斯坦布尔', 14.16],
+                ['东京', 13.51],
+                ['广州', 13.08],
+                ['孟买', 12.44],
+                ['莫斯科', 12.19],
+                ['圣保罗', 12.03],
+                ['深圳', 10.46],
+                ['雅加达', 10.07],
+                ['拉合尔', 10.05],
+                ['首尔', 9.99],
+                ['武汉', 9.78],
+                ['金沙萨', 9.73],
+                ['开罗', 9.27],
+                ['墨西哥', 8.87]
+            ],
+            dataLabels: {
+                enabled: true,
+                rotation: -90,
+                color: '#FFFFFF',
+                align: 'right',
+                format: '{point.y:.1f}', // :.1f 为保留 1 位小数
+                y: 10
+            }
+        }]
+    });
+</script>
+<script>
+    var chart = Highcharts.chart('container4', {
+        chart: {
+            type: 'line'
+        },
+        title: {
+            text: '月平均气温'
+        },
+        subtitle: {
+            text: '数据来源: WorldClimate.com'
+        },
+        xAxis: {
+            categories: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月']
+        },
+        yAxis: {
+            title: {
+                text: '气温 (°C)'
+            }
+        },
+        plotOptions: {
+            line: {
+                dataLabels: {
+                    // 开启数据标签
+                    enabled: true
+                },
+                // 关闭鼠标跟踪,对应的提示框、点击事件会失效
+                enableMouseTracking: false
+            }
+        },
+        series: [{
+            name: '东京',
+            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]
+        }, {
+            name: '伦敦',
+            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]
+        }]
+    });
+
+</script>
+
+<script src="js/basic.js"></script>
+
+<script>
+    var thisPageFlow = 1;
+    function showChart() {
+
+        var data = [];
+        var ratedata = [];
+        var stackmax = 0;
+        var failmax=0;
 
+        for (i = 0; i < passNumber.length; i++) {
+            if (stackmax < stackeverynum[i]) {
+                stackmax = stackeverynum[i];
+            }
+            if (failmax < failrate[i]) {
+                failmax = failrate[i];
+            }
+            data.push(stackeverynum[i]);
+            ratedata.push(Math.floor(failrate[i]));
+        }
 
+        stackmax = Math.max(stackmax,5);
+        failmax =Math.max(failmax,5);
 
-    <script>
-        var chart = Highcharts.chart('container2',{
+        stackAndFailChart = Highcharts.chart('container', {
             chart: {
-                type: 'column'
+                zoomType: 'xy'
             },
             title: {
-                text: '月平均降雨量'
+                text: null
             },
-            subtitle: {
-                text: '数据来源: WorldClimate.com'
+            credits: {
+                enabled: false // 禁用版权信息
             },
-            xAxis: {
-                categories: [
-                    '一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月'
-                ],
-                crosshair: true
-            },
-            yAxis: {
-                min: 0,
-                title: {
-                    text: '降雨量 (mm)'
-                }
-            },
-            tooltip: {
-                // head + 每个 point + footer 拼接成完整的 table
-                headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
-                pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
-                '<td style="padding:0"><b>{point.y:.1f} mm</b></td></tr>',
-                footerFormat: '</table>',
-                shared: true,
-                useHTML: true
-            },
-            plotOptions: {
-                column: {
-                    borderWidth: 0
-                }
-            },
-            series: [{
-                name: '东京',
-                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]
-            }, {
-                name: '纽约',
-                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]
-            }, {
-                name: '伦敦',
-                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]
-            }, {
-                name: '柏林',
-                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]
-            }]
-        });
-    </script>
-    <script>
-        var chart = Highcharts.chart('container1', {
-            chart: {
-                type: 'bar'
-            },
-            title: {
-                text: '堆叠条形图'
-            },
-            xAxis: {
-                categories: ['苹果', '橘子', '梨', '葡萄', '香蕉']
+            exporting: {
+                enabled: false
             },
-            yAxis: {
-                min: 0,
+            xAxis: [{
+                categories: namedata,
+                crosshair: true,
                 title: {
-                    text: '水果消费总量'
-                }
-            },
-            legend: {
-                /* 图例显示顺序反转
-                 * 这是因为堆叠的顺序默认是反转的,可以设置
-                 * yAxis.reversedStacks = false 来达到类似的效果
-                 */
-                reversed: true
-            },
-            plotOptions: {
-                series: {
-                    stacking: 'normal'
-                }
-            },
-            series: [{
-                name: '小张',
-                data: [5, 3, 4, 7, 2]
-            }, {
-                name: '小彭',
-                data: [2, 2, 3, 2, 1]
-            }, {
-                name: '小潘',
-                data: [3, 4, 4, 2, 5]
-            }]
-        });
-    </script>
-    <script>
-        var chart = Highcharts.chart('container3', {
-            chart: {
-                type: 'column'
-            },
-            title: {
-                text: '全球各大城市人口排行'
-            },
-            subtitle: {
-                text: '数据截止 2017-03,来源: <a href="https://en.wikipedia.org/wiki/List_of_cities_proper_by_population">Wikipedia</a>'
-            },
-            xAxis: {
-                type: 'category',
+                    text: '员工',
+                    style: {
+                        fontSize: '15px'
+                    }
+                },
                 labels: {
-                    rotation: -45  // 设置轴标签旋转角度
+                    style: {
+                        fontSize: '20px'
+                    }
                 }
-            },
-            yAxis: {
+            }],
+            yAxis: [{ // Primary yAxis
+                labels: {
+                    format: '{value}',
+                    style: {
+                        color: Highcharts.getOptions().colors[0],
+                        fontSize: '20px'
+                    }
+                },
                 min: 0,
+                max: 1.5 * stackmax,
                 title: {
-                    text: '人口 (百万)'
+                    text: '堆积数',
+                    style: {
+                        color: Highcharts.getOptions().colors[0],
+                        fontSize: '15px'
+                    }
                 }
+            }, { // Secondary yAxis
+                title: {
+                    text: '不良率',
+                    style: {
+                        color: 'red',
+                        fontSize: '15px'
+                    }
+                },
+                min: 0,
+                max: 1.5 * failmax,
+                labels: {
+                    formatter: function() {
+                        return Math.floor(this.value) + "%";
+                    },
+                    style: {
+                        color: 'red',
+                        fontSize: '20px'
+                    }
+                },
+                opposite: true
+            }],
+            tooltip: {
+                shared: true
             },
             legend: {
-                enabled: false
-            },
-            tooltip: {
-                pointFormat: '人口总量: <b>{point.y:.1f} 百万</b>'
+                layout: 'vertical',
+                align: 'right',
+                x: -120,
+                verticalAlign: 'top',
+                y: 0,
+                floating: true,
+                backgroundColor: (Highcharts.theme && Highcharts.theme.legendBackgroundColor) || '#FFFFFF'
             },
             series: [{
-                name: '总人口',
-                data: [
-                    ['上海', 24.25],
-                    ['卡拉奇', 23.50],
-                    ['北京', 21.51],
-                    ['德里', 16.78],
-                    ['拉各斯', 16.06],
-                    ['天津', 15.20],
-                    ['伊斯坦布尔', 14.16],
-                    ['东京', 13.51],
-                    ['广州', 13.08],
-                    ['孟买', 12.44],
-                    ['莫斯科', 12.19],
-                    ['圣保罗', 12.03],
-                    ['深圳', 10.46],
-                    ['雅加达', 10.07],
-                    ['拉合尔', 10.05],
-                    ['首尔', 9.99],
-                    ['武汉', 9.78],
-                    ['金沙萨', 9.73],
-                    ['开罗', 9.27],
-                    ['墨西哥', 8.87]
-                ],
-                dataLabels: {
-                    enabled: true,
-                    rotation: -90,
-                    color: '#FFFFFF',
-                    align: 'right',
-                    format: '{point.y:.1f}', // :.1f 为保留 1 位小数
-                    y: 10
-                }
-            }]
-        });
-    </script>
-    <script>
-        var chart = Highcharts.chart('container4', {
-            chart: {
-                type: 'line'
-            },
-            title: {
-                text: '月平均气温'
-            },
-            subtitle: {
-                text: '数据来源: WorldClimate.com'
-            },
-            xAxis: {
-                categories: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月']
-            },
-            yAxis: {
-                title: {
-                    text: '气温 (°C)'
-                }
-            },
-            plotOptions: {
-                line: {
-                    dataLabels: {
-                        // 开启数据标签
-                        enabled: true
-                    },
-                    // 关闭鼠标跟踪,对应的提示框、点击事件会失效
-                    enableMouseTracking: false
+                name: '堆积数',
+                type: 'column',
+
+                data: data,
+                tooltip: {
+                    valueSuffix: ' mm'
                 }
-            },
-            series: [{
-                name: '东京',
-                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]
             }, {
-                name: '伦敦',
-                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]
+                name: '不良率',
+                type: 'spline',
+                yAxis: 1,
+                data: ratedata,
+                color: 'red',
+                tooltip: {
+                    valueSuffix: '%'
+                }
             }]
         });
+    }
+    function updateChart(){
+        var data = [];
+        var ratedata = [];
+        var stackmax = 0;
+        var failmax=0;
+
+        for (i = 0; i < passNumber.length; i++) {
+            if (stackmax < stackeverynum[i]) {
+                stackmax = stackeverynum[i];
+            }
+            if (failmax < failrate[i]) {
+                failmax = failrate[i];
+            }
+            data.push(stackeverynum[i]);
+            ratedata.push(Math.floor(failrate[i]));
+        }
+
+        stackmax = Math.max(stackmax,5);
+        failmax =Math.max(failmax,5);
+        // https://api.hcharts.cn/highcharts#Series.addPoint;
+        stackAndFailChart.series[0].setData(data);
+        stackAndFailChart.series[1].setData(ratedata);
+    }
+    var stackAndFailChart = null;
+
+    $(document).ready(on_document_load);
+
+    setInterval(function(){
+        $("#container").width(window.innerWidth);
+        $("#container").height(window.innerHeight);
+    },1000);
 
-    </script>
+</script>
 </body>
 
 </html>

+ 146 - 0
js/basic.js

@@ -0,0 +1,146 @@
+var SVR_URL = "http://172.30.84.3:8803/server/";
+
+function get_data(url, callback) {
+    $.ajax({
+        url: SVR_URL + url,
+        apiName: url,
+        sendTime: new Date()
+    }).done(callback).fail(on_fail);
+}
+
+function on_fail(msg) {
+    alert("很抱歉,网络错误,请查看Console");
+    console.log("-----   网络请求失败 ---------")
+    console.log(JSON.stringify(this));
+    console.log("----------------------------")
+}
+
+function on_data_success(obj, status) {
+
+}
+
+function first_parse(ajax, obj) {
+    if (typeof obj === "string") {
+        obj = JSON.parse(obj);
+    }
+
+    if (typeof obj !== "object") {
+        console.log(ajax);
+        throw "Error ! Parsing JSON failed ." + JSON.stringify(obj);
+    }
+
+    if (obj.ret == "10000" || obj.ret == 10000 || obj.ret == 1000) {
+        return obj.model;
+    } else {
+        console.log(ajax);
+        throw "Error ! Server returned error." + JSON.stringify(obj);
+    }
+}
+
+
+var flowData;
+var sID = [];
+var passNumber = [];
+var failNumber = [];
+var failrate = [];
+var stacknum = 0;
+var stackeverynum = [];
+
+function firsttime_load_spots_data() {
+    get_data("fcWorkRaw/allSpots?flowId=" + thisPageFlow, first_success)
+}
+
+function first_success(obj, sta) {
+    var output = first_parse(this, obj);
+    //在这里排序 spo\
+    console.log(" output : ");
+    console.log(output);
+    var i, j;
+    for (i = 0; i < output.length - 1; i++) {
+        passNumber[i] = output[i].passNum;
+    }
+    for (i = 0; i < output.length - 1; i++) {
+        failNumber[i] = output[i].failNum;
+    }
+    for (i = 0; i < output.length - 1; i++) {
+        if (failNumber[i] + passNumber[i] == 0) {
+            failrate[i] = 0;
+        }
+        else {
+            failrate[i] = failNumber[i] / (failNumber[i] + passNumber[i]) * 100;
+        }
+
+    }
+    stackeverynum[0] = 0;
+    for (i = 1; i < output.length - 1; i++) {
+        stackeverynum[i] = passNumber[i - 1] - passNumber[i] - failNumber[i];
+        stacknum = stackeverynum[i] + stacknum;
+    }
+    showChart();
+
+    setInterval(function(){
+        get_data("fcWorkRaw/allSpots?flowId=" + thisPageFlow, realtime_success);
+    },1000);
+}
+
+function realtime_success(obj, sta) {
+
+    var output = first_parse(this, obj);
+    var i, j;
+    for (i = 0; i < output.length - 1; i++) {
+        passNumber[i] = output[i].passNum;
+    }
+    for (i = 0; i < output.length - 1; i++) {
+        failNumber[i] = output[i].failNum;
+    }
+    for (i = 0; i < output.length - 1; i++) {
+        if (failNumber[i] + passNumber[i] == 0) {
+            failrate[i] = 0;
+        }
+        else {
+            failrate[i] = failNumber[i] / (failNumber[i] + passNumber[i]) * 100;
+        }
+
+    }
+    stackeverynum[0] = 0;
+    for (i = 1; i < output.length - 1; i++) {
+        stackeverynum[i] = passNumber[i - 1] - passNumber[i] - failNumber[i];
+        stacknum = stackeverynum[i] + stacknum;
+    }
+    updateChart();
+}
+
+function on_load_success_spots(obj, status) {
+    var spotsList = first_parse(this, obj);
+    //在这里排序 spo\
+    console.log("spot List : ");
+    console.log(spotsList);
+
+    var i, j, temp;
+    for (i = 0; i < spotsList.list.length - 1; i++) {
+        for (j = 0; j < spotsList.list.length - i - 1; j++) {
+            if (spotsList.list[j].orderNum > spotsList.list[j + 1].orderNum) {
+                temp = spotsList.list[j];
+                spotsList.list[j] = spotsList.list[j + 1];
+                spotsList.list[j + 1] = temp;
+            }
+        }
+    }
+
+    flowData = spotsList.list;
+
+    for (i = 0; i < spotsList.list.length - 1; i++) {
+        sID[i] = spotsList.list[i].spotId;
+        namedata[i] = spotsList.list[i].spotName;
+    }
+
+    firsttime_load_spots_data();
+}
+
+function on_document_load() {
+    // First Step
+    get_data("fcSpot/list?flowId=" + thisPageFlow, on_load_success_spots)
+}
+
+
+var namedata = [];

+ 337 - 0
js/reference.js

@@ -0,0 +1,337 @@
+
+/*function get_data(url, callback){
+    if(url=="la.anyone.alldata"){
+        callback([
+            {name:"张三", id:133, approve:300, decline:400, Accumulate:1000,worktime:1},
+            {name:"李四", id:133, approve:300, decline:400, Accumulate:1000,worktime:2},
+            ]);
+        return;
+    }
+    callback([{x:1527957798468,y:3000},{x:1527957799468,y:3000},{x:1527957800468,y:3000.5},{x:1527957801468,y:3001}]);
+}
+
+get_data('la.acceptedCount.3600',mmm);
+function mmm(shuju) {
+
+    console.log("------ getting la.acceptedCount.3000 -------")
+    console.log(shuju);
+
+    var chart = Highcharts.chart('container1',{
+        chart: {
+            type: 'spline'
+        },
+        title: {
+            text: '月平均降雨量'
+        },
+        subtitle: {
+            text: '数据来源: WorldClimate.com'
+        },
+        xAxis: {
+            tickInterval: 1000, // 坐标轴刻度间隔为一星期
+            tickWidth: 0,
+            gridLineWidth: 1,
+            // 时间格式化字符
+            // 默认会根据当前的刻度间隔取对应的值,即当刻度间隔为一周时,取 week 值
+            dateTimeLabelFormats: {
+                week: '%Y-%m-%d'
+            }
+        },
+        yAxis: {
+            // min: 0,
+            // title: {
+            //     text: '降雨量 (mm)'
+            // }
+        },
+        tooltip: {
+            // head + 每个 point + footer 拼接成完整的 table
+            headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
+            pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
+            '<td style="padding:0"><b>{point.y:.1f} mm</b></td></tr>',
+            footerFormat: '</table>',
+            shared: true,
+            useHTML: true
+        },
+        plotOptions: {
+            column: {
+                borderWidth: 0
+            }
+        },
+        series: [{
+            name: '东京',
+            data: shuju
+        }]
+    });
+}
+
+setInterval(lll,100);
+function lll() {
+
+}
+
+get_data("la.anyone.alldata", showAllData);
+function showAllData(shuju){
+    var htmlbody = "";
+    var i = 0;
+    for(i=0; i < shuju.length; i++){
+        var one_person = shuju[i];
+        htmlbody += "<tr>";
+        htmlbody += "                              <tr>\n" +
+            "                                            <td>"+one_person.name+"("+one_person.id+")</td>\n" +
+            "                                            <td>"+one_person.approve+"</td>\n" +
+            "                                            <td>"+one_person.decline+"</td>\n" +
+            "                                        </tr>";
+        htmlbody += "</tr>";
+    }
+
+    $("#rank-one").html(htmlbody);
+}*/
+
+var chart = Highcharts.chart('container1', {
+    title: {
+        text: '合格数'
+    },
+    /*subtitle: {
+        text: '数据来源:thesolarfoundation.com'
+    },*/
+    xAxis: {
+        title: {
+            text: '员工'
+        }
+    },
+    yAxis: {
+        title: {
+            text: '就业人数'
+        }
+    },
+    legend: {
+        layout: 'vertical',
+        align: 'right',
+        verticalAlign: 'middle'
+    },
+    plotOptions: {
+        series: {
+            label: {
+                connectorAllowed: false
+            },
+            pointStart: 2010
+        }
+    },
+    series: [{
+        name: '安装,实施人员',
+        data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175]
+    }, {
+        name: '工人',
+        data: [24916, 24064, 29742, 29851, 32490, 30282, 38121, 40434]
+    }, {
+        name: '销售',
+        data: [11744, 17722, 16005, 19771, 20185, 24377, 32147, 39387]
+    }, {
+        name: '项目开发',
+        data: [null, null, 7988, 12169, 15112, 22452, 34400, 34227]
+    }, {
+        name: '其他',
+        data: [12908, 5948, 8105, 11248, 8989, 11816, 18274, 18111]
+    }],
+    responsive: {
+        rules: [{
+            condition: {
+                maxWidth: 500
+            },
+            chartOptions: {
+                legend: {
+                    layout: 'horizontal',
+                    align: 'center',
+                    verticalAlign: 'bottom'
+                }
+            }
+        }]
+    }
+});
+
+var chart = Highcharts.chart('container2', {
+    chart: {
+        type: 'bar'
+    },
+    title: {
+        text: '不合格数'
+    },
+    xAxis: {
+        categories: ['苹果', '橘子', '梨', '葡萄', '香蕉']
+    },
+    yAxis: {
+        min: 0,
+        title: {
+            text: '员工'
+        }
+    },
+    legend: {
+        /* 图例显示顺序反转
+         * 这是因为堆叠的顺序默认是反转的,可以设置
+         * yAxis.reversedStacks = false 来达到类似的效果
+         */
+        reversed: true
+    },
+    plotOptions: {
+        series: {
+            stacking: 'normal'
+        }
+    },
+    series: [{
+        name: '小张',
+        data: [5, 3, 4, 7, 2]
+    }, {
+        name: '小彭',
+        data: [2, 2, 3, 2, 1]
+    }, {
+        name: '小潘',
+        data: [3, 4, 4, 2, 5]
+    }]
+});
+
+var chart = Highcharts.chart('container3', {
+    chart: {
+        type: 'column'
+    },
+    title: {
+        text: '堆积数'
+    },
+    /*subtitle: {
+        text: '数据截止 2017-03,来源: <a href="https://en.wikipedia.org/wiki/List_of_cities_proper_by_population">Wikipedia</a>'
+    },*/
+    xAxis: {
+        type: 'category',
+        /* labels: {
+             rotation: -45  // 设置轴标签旋转角度
+         }*/
+        title: {
+            text: '员工'
+        }
+    },
+    yAxis: {
+        min: 0,
+        title: {
+            text: '人口 (百万)'
+        }
+    },
+    legend: {
+        enabled: false
+    },
+    tooltip: {
+        pointFormat: '人口总量: <b>{point.y:.1f} 百万</b>'
+    },
+    series: [{
+        name: '总人口',
+        data: [
+            ['上海', 24.25],
+            ['卡拉奇', 23.50],
+            ['北京', 21.51],
+            ['德里', 16.78],
+            ['拉各斯', 16.06],
+            ['天津', 15.20],
+            ['伊斯坦布尔', 14.16],
+            ['东京', 13.51],
+            ['广州', 13.08],
+            ['孟买', 12.44],
+            ['莫斯科', 12.19],
+            ['圣保罗', 12.03],
+            ['深圳', 10.46],
+            ['雅加达', 10.07],
+            ['拉合尔', 10.05],
+            ['首尔', 9.99],
+            ['武汉', 9.78],
+            ['金沙萨', 9.73],
+            ['开罗', 9.27],
+            ['墨西哥', 8.87]
+        ],
+        dataLabels: {
+            enabled: true,
+            rotation: -90,
+            color: '#FFFFFF',
+            align: 'right',
+            format: '{point.y:.1f}', // :.1f 为保留 1 位小数
+            y: 10
+        }
+    }]
+});
+
+var chart = Highcharts.chart('container4', {
+    chart: {
+        type: 'line'
+    },
+    title: {
+        text: '工作时长'
+    },
+    /*subtitle: {
+        text: '数据来源: WorldClimate.com'
+    },*/
+    xAxis: {
+
+        title: {
+            text: '员工'
+        }
+    },
+    yAxis: {
+        title: {
+            text: '气温 (°C)'
+        }
+    },
+    plotOptions: {
+        line: {
+            dataLabels: {
+                // 开启数据标签
+                enabled: true
+            },
+            // 关闭鼠标跟踪,对应的提示框、点击事件会失效
+            enableMouseTracking: false
+        }
+    },
+    series: [{
+        name: '东京',
+        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]
+    }, {
+        name: '伦敦',
+        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]
+    }]
+});
+
+var chart = Highcharts.chart('container5', {
+    chart: {
+        type: 'column'
+    },
+    title: {
+        text: '不良率'
+    },
+    xAxis: {
+        /*categories: ['苹果', '橘子', '梨', '葡萄', '香蕉']*/
+        title: {
+            text: '员工'
+        }
+    },
+    yAxis: {
+        min: 0,
+        title: {
+            text: '水果消费总量'
+        }
+    },
+    tooltip: {
+        pointFormat: '<span style="color:{series.color}">{series.name}</span>: <b>{point.y}</b>' +
+        '({point.percentage:.0f}%)<br/>',
+        //:.0f 表示保留 0 位小数,详见教程:https://www.hcharts.cn/docs/basic-labels-string-formatting
+        shared: true
+    },
+    plotOptions: {
+        column: {
+            stacking: 'percent'
+        }
+    },
+    series: [{
+        name: '小张',
+        data: [5, 3, 4, 7, 2]
+    }, {
+        name: '小彭',
+        data: [2, 2, 3, 2, 1]
+    }, {
+        name: '小潘',
+        data: [3, 4, 4, 2, 5]
+    }]
+});

+ 307 - 716
lazhang.html

@@ -9,29 +9,36 @@
     <link rel="icon" href="favicon.ico" type="image/x-icon">
 
     <!-- Google Fonts -->
-    <link href="https://fonts.googleapis.com/css?family=Roboto:400,700&subset=latin,cyrillic-ext" rel="stylesheet" type="text/css">
-    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" type="text/css">
+    <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">
+    <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" />
+    <link href="plugins/node-waves/waves.css" rel="stylesheet"/>
 
     <!-- Animation Css -->
-    <link href="plugins/animate-css/animate.css" rel="stylesheet" />
+    <link href="plugins/animate-css/animate.css" rel="stylesheet"/>
 
     <!-- Morris Chart Css-->
-    <link href="plugins/morrisjs/morris.css" rel="stylesheet" />
+    <link href="plugins/morrisjs/morris.css" rel="stylesheet"/>
 
     <!-- Custom Css -->
     <link href="css/style.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" />
+    <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>
+    <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>
@@ -41,66 +48,64 @@
     <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>
-        var timer=null;
-        function displayClock(num){//num是传入的startClock中的动态值
-            if(num<10){
-                return "0"+num;
+        var timer = null;
+
+        function displayClock(num) {//num是传入的startClock中的动态值
+            if (num < 10) {
+                return "0" + num;
             }
-            else{
+            else {
                 return num;
             }
         }
+
         //停止计时
-        function stopClock(){
+        function stopClock() {
             clearTimeout(timer);
         }
+
         //开始计时
-        function startClock(){
-            var time =new Date();
-            var hours=displayClock(time.getHours())+":";
-            var minutes=displayClock(time.getMinutes())+":";
-            var seconds=displayClock(time.getSeconds());
+        function startClock() {
+            var time = new Date();
+            var hours = displayClock(time.getHours()) + ":";
+            var minutes = displayClock(time.getMinutes()) + ":";
+            var seconds = displayClock(time.getSeconds());
             //显示时间
-            show.innerHTML=hours+minutes+seconds;//在id为show的块区域显示
-            timer=setTimeout("startClock()",1000);//延时器
+            show.innerHTML = hours + minutes + seconds;//在id为show的块区域显示
+            timer = setTimeout("startClock()", 1000);//延时器
         }
     </script>
 </head>
 <style>
-    #show{
+    #show1 {
         font-size: 30px;
-        color:#black;
-        text-align:center;
+        color: black;
+        text-align: center;
     }
 </style>
-<body onload="startClock()" onunload="stopClock()">
-    <nav class="navbar navbar-expand-lg navbar-light bg-light" style="margin-bottom: 1em">
-
-
-    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
+<body>
+<nav class="navbar navbar-expand-lg navbar-light bg-light" style-height="10%">
+    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
+            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
         <span class="navbar-toggler-icon"></span>
     </button>
 
     <div class="collapse navbar-collapse" id="navbarSupportedContent">
         <ul class="navbar-nav mr-auto">
-            <li class="nav-item active">
-                <div class="navbar-brand" href="#" style="font-size: 25px">生产线<span>1</span>号
-
+            <li class="nav-item active navbar-brand">
+                <h1 class="navbar-brand" href="#">生产线<span>1</span>号</h1>
             </li>
-            <li class="nav-item">
-                <div class="" id="show"></div>
+            <li class="nav-item btn navbar-nav" id="show">
             </li>
-
-
         </ul>
         <ul style="margin: 0">
-            <button type="button" class="btn btn-danger btn-lg" style="width:100% ;background: red;font-size: 1em">
-
+            <button type="button" class="btn btn-danger btn-lg" style="width:100% ;background: red;font-size: 2em">
                 下班
             </button>
         </ul>
         <div class="dropdown" style="font-size: 2em">
-            <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="font-size: 0.5em">
+            <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown"
+                    aria-haspopup="true" aria-expanded="false" style="font-size: 0.5em">
                 <div class="row">
                     <div class="col-4">
                         拉长
@@ -119,280 +124,277 @@
 
     </div>
 </nav>
-    <script>
-        function addContent(name){
-            console.log( $(name));
-            $(name).tab('show');
-        }
-    </script>
-    <section class="content" style="margin: 0 auto;padding-top: 2em;">
-        <div class="container-fluid " style="padding-bottom: 0.2em">
-            <div class="row text-center" >
-                <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
-                    <div class="info-box bg-green hover-expand-effect" style="margin: 0;height: 70px">
-                        <div class="icon">
-                            <i class="material-icons">equalizer</i>
-                        </div>
-                        <div class="content">
-                            <div class="row text-center" style="margin: 0 auto">
-                                <div class="text" style="font-size: 1.5em;padding-top: 0.2em">合格数:</div>
-                                <div class="number" style="font-size: 3em">555</div>
-                            </div>
+<section class="content" style="margin: 0 auto; margin-top: 4em">
+    <div class="container-fluid " style="margin-bottom: 1em">
+        <div class="row text-center">
+            <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
+                <div class="info-box bg-green hover-expand-effect" style="margin: 0;">
+                    <div class="icon">
+                        <i class="material-icons">equalizer</i>
+                    </div>
+                    <div class="content">
+                        <div class="row text-center" style="margin: 0 auto">
+                            <div class="text" style="font-size: 1.5em;padding-top: 0.2em">合格数:</div>
+                            <div class="number" style="font-size: 3em">555</div>
                         </div>
                     </div>
                 </div>
-                <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
-                    <div class="info-box bg-red hover-expand-effect" style="margin: 0;height: 70px">
-                        <div class="icon">
-                            <i class="material-icons">equalizer</i>
-                        </div>
-                        <div class="content">
-                            <div class="row text-center" style="margin: 0 auto">
-                                <div class="text" style="font-size: 1.5em;padding-top: 0.2em">不合格数:</div>
-                                <div class="number" style="font-size: 3em">5255</div>
-                            </div>
+            </div>
+            <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
+                <div class="info-box bg-red hover-expand-effect" style="margin: 0;">
+                    <div class="icon">
+                        <i class="material-icons">equalizer</i>
+                    </div>
+                    <div class="content">
+                        <div class="row text-center" style="margin: 0 auto">
+                            <div class="text" style="font-size: 1.5em;padding-top: 0.2em">不合格数:</div>
+                            <div class="number" style="font-size: 3em">5255</div>
                         </div>
                     </div>
                 </div>
-                <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
-                    <div class="info-box bg-lime hover-expand-effect" style="margin: 0;height: 70px">
-                        <div class="icon">
-                            <i class="material-icons">brightness_low</i>
-                        </div>
-                        <div class="content">
-                            <div class="row text-center" style="margin: 0 auto">
-                                <div class="text" style="font-size: 1.5em;padding-top: 0.2em">合格率:</div>
-                                <div class="number" style="font-size: 3em">55%</div>
-                            </div>
+            </div>
+            <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
+                <div class="info-box bg-lime hover-expand-effect" style="margin: 0;">
+                    <div class="icon">
+                        <i class="material-icons">brightness_low</i>
+                    </div>
+                    <div class="content">
+                        <div class="row text-center" style="margin: 0 auto">
+                            <div class="text" style="font-size: 1.5em;padding-top: 0.2em">合格率:</div>
+                            <div class="number" style="font-size: 3em">55%</div>
                         </div>
                     </div>
                 </div>
-                <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
-                    <div class="info-box bg-cyan hover-zoom-effect" style="margin: 0;height: 70px ">
-                        <div class="icon">
-                            <i class="material-icons">access_alarm</i>
-                        </div>
-                        <div class="content">
-                            <div class="row text-center" style="margin: 0 auto">
-                                <div class="text" style="font-size: 1.5em;padding-top: 0.2em">堆积数:</div>
-                                <div class="number" style="font-size: 3em">235</div>
-                            </div>
+            </div>
+            <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
+                <div class="info-box bg-cyan hover-zoom-effect" style="margin: 0; ">
+                    <div class="icon">
+                        <i class="material-icons">access_alarm</i>
+                    </div>
+                    <div class="content">
+                        <div class="row text-center" style="margin: 0 auto">
+                            <div class="text" style="font-size: 1.5em;padding-top: 0.2em">堆积数:</div>
+                            <div class="number" style="font-size: 3em">235</div>
                         </div>
                     </div>
                 </div>
-
             </div>
 
         </div>
-        <div class="container-fluid" style="margin-top: 0.5em">
-            <div id="container10" style="min-width:400px;height:400px"></div>
-                <div class="card">
-                    <div>
-                    <div class="" style="">
-                        <div class="table-responsive" style="width: 30%;float: left" >
-                            <table class="table table-hover dashboard-task-infos">
-                                <thead >
-                                <tr  style="border-bottom:3px solid black;">
-                                    <th>姓名(工号)</th>
-                                    <th>合格数</th>
-                                    <th>不合格数</th>
-
-                                </tr>
-                                </thead>
-                                <tbody id="rank-one">
-                                <tr>
-                                    <td>1</td>
-                                    <td>Task A</td>
-                                    <td><span class="label bg-green">Doing</span></td>
-                                </tr>
-                                <tr>
-                                    <td>2</td>
-                                    <td>Task B</td>
-                                    <td><span class="label bg-blue">To Do</span></td>
-                                </tr>
-                                <tr>
-                                    <td>3</td>
-                                    <td>Task C</td>
-                                    <td><span class="label bg-light-blue">On Hold</span></td>
-                                </tr>
-                                <tr>
-                                    <td>4</td>
-                                    <td>Task D</td>
-                                    <td><span class="label bg-orange">Wait Approvel</span></td>
-                                </tr>
-                                </tbody>
-                            </table>
-                        </div>
-                        <div class="table-responsive" style="width: 30%;float: left;padding-left: 5em" >
-                            <table class="table table-hover dashboard-task-infos">
-                                <thead>
-                                <tr style="border-bottom:3px solid black;">
-                                    <th>姓名(工号)</th>
-                                    <th>合格数</th>
-                                    <th>不合格数</th>
-
-                                </tr>
-                                </thead>
-                                <tbody id="rank-two">
-                                <tr>
-                                    <td>1</td>
-                                    <td>Task A</td>
-                                    <td><span class="label bg-green">Doing</span></td>
-                                </tr>
-                                <tr>
-                                    <td>2</td>
-                                    <td>Task B</td>
-                                    <td><span class="label bg-blue">To Do</span></td>
-                                </tr>
-                                <tr>
-                                    <td>3</td>
-                                    <td>Task C</td>
-                                    <td><span class="label bg-light-blue">On Hold</span></td>
-                                </tr>
-                                <tr>
-                                    <td>4</td>
-                                    <td>Task D</td>
-                                    <td><span class="label bg-orange">Wait Approvel</span></td>
-                                </tr>
-                                </tbody>
-                            </table>
-                        </div>
-                        <div class="table-responsive" style="width: 30%;float: right" >
-                            <table class="table table-hover dashboard-task-infos">
-                                <thead>
-                                <tr style="border-bottom:3px solid black;">
-                                    <th>姓名(工号)</th>
-                                    <th>合格数</th>
-                                    <th>不合格数</th>
-
-                                </tr>
-                                </thead>
-                                <tbody id="rank-three">
-                                <tr>
-                                    <td>1</td>
-                                    <td>Task A</td>
-                                    <td><span class="label bg-green">Doing</span></td>
-                                </tr>
-                                <tr>
-                                    <td>2</td>
-                                    <td>Task B</td>
-                                    <td><span class="label bg-blue">To Do</span></td>
-                                </tr>
-                                <tr>
-                                    <td>3</td>
-                                    <td>Task C</td>
-                                    <td><span class="label bg-light-blue">On Hold</span></td>
-                                </tr>
-                                <tr>
-                                    <td>4</td>
-                                    <td>Task D</td>
-                                    <td><span class="label bg-orange">Wait Approvel</span></td>
-                                </tr>
-                                </tbody>
-                            </table>
-                        </div>
+
+    </div>
+    <div class="container-fluid" style="margin-top: 0.5em;height: 100%;padding-top: 1em">
+        <div id="container10" style="height: 60%"></div>
+        <div class="card" style="height: 40%;margin: 0 auto;">
+            <div>
+                <div class="" style="">
+                    <div class="table-responsive" style="width: 30%;float: left">
+                        <table class="table table-hover dashboard-task-infos">
+                            <thead>
+                            <tr style="border-bottom:3px solid black;">
+                                <th>姓名(工号)</th>
+                                <th>合格数</th>
+                                <th>不合格数</th>
+
+                            </tr>
+                            </thead>
+                            <tbody id="rank-one">
+                            <tr>
+                                <td>1</td>
+                                <td>Task A</td>
+                                <td><span class="label bg-green">Doing</span></td>
+                            </tr>
+                            <tr>
+                                <td>2</td>
+                                <td>Task B</td>
+                                <td><span class="label bg-blue">To Do</span></td>
+                            </tr>
+                            <tr>
+                                <td>3</td>
+                                <td>Task C</td>
+                                <td><span class="label bg-light-blue">On Hold</span></td>
+                            </tr>
+                            <tr>
+                                <td>4</td>
+                                <td>Task D</td>
+                                <td><span class="label bg-orange">Wait Approvel</span></td>
+                            </tr>
+                            </tbody>
+                        </table>
+                    </div>
+                    <div class="table-responsive" style="width: 30%;float: left;padding-left: 5em">
+                        <table class="table table-hover dashboard-task-infos">
+                            <thead>
+                            <tr style="border-bottom:3px solid black;">
+                                <th>姓名(工号)</th>
+                                <th>合格数</th>
+                                <th>不合格数</th>
+
+                            </tr>
+                            </thead>
+                            <tbody id="rank-two">
+                            <tr>
+                                <td>1</td>
+                                <td>Task A</td>
+                                <td><span class="label bg-green">Doing</span></td>
+                            </tr>
+                            <tr>
+                                <td>2</td>
+                                <td>Task B</td>
+                                <td><span class="label bg-blue">To Do</span></td>
+                            </tr>
+                            <tr>
+                                <td>3</td>
+                                <td>Task C</td>
+                                <td><span class="label bg-light-blue">On Hold</span></td>
+                            </tr>
+                            <tr>
+                                <td>4</td>
+                                <td>Task D</td>
+                                <td><span class="label bg-orange">Wait Approvel</span></td>
+                            </tr>
+                            </tbody>
+                        </table>
                     </div>
+                    <div class="table-responsive" style="width: 30%;float: right">
+                        <table class="table table-hover dashboard-task-infos">
+                            <thead>
+                            <tr style="border-bottom:3px solid black;">
+                                <th>姓名(工号)</th>
+                                <th>合格数</th>
+                                <th>不合格数</th>
+
+                            </tr>
+                            </thead>
+                            <tbody id="rank-three">
+                            <tr>
+                                <td>1</td>
+                                <td>Task A</td>
+                                <td><span class="label bg-green">Doing</span></td>
+                            </tr>
+                            <tr>
+                                <td>2</td>
+                                <td>Task B</td>
+                                <td><span class="label bg-blue">To Do</span></td>
+                            </tr>
+                            <tr>
+                                <td>3</td>
+                                <td>Task C</td>
+                                <td><span class="label bg-light-blue">On Hold</span></td>
+                            </tr>
+                            <tr>
+                                <td>4</td>
+                                <td>Task D</td>
+                                <td><span class="label bg-orange">Wait Approvel</span></td>
+                            </tr>
+                            </tbody>
+                        </table>
                     </div>
                 </div>
-
-
-                <!-- #END# Answered Tickets -->
             </div>
+        </div>
+
 
+        <!-- #END# Answered Tickets -->
+    </div>
 
 
-    </section>
+</section>
 
-    <!-- Jquery Core Js -->
-    <script src="plugins/jquery/jquery.min.js"></script>
+<!-- Jquery Core Js -->
+<script src="plugins/jquery/jquery.min.js"></script>
 
-    <!-- Bootstrap Core Js -->
-    <script src="plugins/bootstrap/js/bootstrap.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>
+<!-- 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>
+<!-- Slimscroll Plugin Js -->
+<script src="plugins/jquery-slimscroll/jquery.slimscroll.js"></script>
 
-    <!-- Waves Effect Plugin Js -->
-    <script src="plugins/node-waves/waves.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>
+<!-- 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>
+<!-- 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>
+<!-- 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>
+<!-- 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>
+<!-- Sparkline Chart Plugin Js -->
+<script src="plugins/jquery-sparkline/jquery.sparkline.js"></script>
 
-    <!-- Custom Js -->
-    <script src="js/admin.js"></script>
-    <script src="js/pages/index.js"></script>
+<!-- Custom Js -->
+<script src="js/admin.js"></script>
+<script src="js/pages/index.js"></script>
 
-    <!-- Demo Js -->
-    <script src="js/demo.js"></script>
-    <script>
-        function get_data(url, callback){
-            if(url=="la.anyone.alldata"){
-                callback([
-                    {name:"张三", id:133, approve:300, decline:400, Accumulate:1000,worktime:1},
-                    {name:"李四", id:133, approve:300, decline:400, Accumulate:1000,worktime:2},
-                ]);
-                return;
-            }
+<!-- Demo Js -->
+<script src="js/demo.js"></script>
+<script>
+    function get_data(url, callback) {
+        if (url == "la.anyone.alldata") {
+            callback([
+                {name: "张三", id: 133, approve: 300, decline: 400, Accumulate: 1000, worktime: 1},
+                {name: "李四", id: 133, approve: 300, decline: 400, Accumulate: 1000, worktime: 2},
+            ]);
+            return;
         }
-        get_data("la.anyone.alldata", showAllData);
-        function showAllData(shuju){
-            var htmlbody = "";
-            var i = 0;
-            for(i=0; i < shuju.length; i++){
-                var one_person = shuju[i];
-                htmlbody += "<tr>";
-                htmlbody += "                              <tr>\n" +
-                    "                                            <td>"+one_person.name+"("+one_person.id+")</td>\n" +
-                    "                                            <td>"+one_person.approve+"</td>\n" +
-                    "                                            <td>"+one_person.decline+"</td>\n" +
-                    "                                        </tr>";
-                htmlbody += "</tr>";
-            }
+    }
+
+    get_data("la.anyone.alldata", showAllData);
 
-            $("#rank-two").html(htmlbody);
+    function showAllData(shuju) {
+        var htmlbody = "";
+        var i = 0;
+        for (i = 0; i < shuju.length; i++) {
+            var one_person = shuju[i];
+            htmlbody += "<tr>";
+            htmlbody += "                              <tr>\n" +
+                "                                            <td>" + one_person.name + "(" + one_person.id + ")</td>\n" +
+                "                                            <td>" + one_person.approve + "</td>\n" +
+                "                                            <td>" + one_person.decline + "</td>\n" +
+                "                                        </tr>";
+            htmlbody += "</tr>";
         }
-    </script>
-    <script>
-    function get_data(url, callback){
-        if(url=="la.anyone.alldata"){
+
+        $("#rank-two").html(htmlbody);
+    }
+</script>
+<script>
+    function get_data(url, callback) {
+        if (url == "la.anyone.alldata") {
             callback([
-                {name:"张三", id:133, approve:300, decline:400, Accumulate:1000,worktime:1},
-                {name:"李四", id:133, approve:300, decline:400, Accumulate:1000,worktime:2},
+                {name: "张三", id: 133, approve: 300, decline: 400, Accumulate: 1000, worktime: 1},
+                {name: "李四", id: 133, approve: 300, decline: 400, Accumulate: 1000, worktime: 2},
             ]);
             return;
         }
     }
+
     get_data("la.anyone.alldata", showAllData);
-    function showAllData(shuju){
+
+    function showAllData(shuju) {
         var htmlbody = "";
         var i = 0;
-        for(i=0; i < shuju.length; i++){
+        for (i = 0; i < shuju.length; i++) {
             var one_person = shuju[i];
             htmlbody += "<tr>";
             htmlbody += "                              <tr>\n" +
-                "                                            <td>"+one_person.name+"("+one_person.id+")</td>\n" +
-                "                                            <td>"+one_person.approve+"</td>\n" +
-                "                                            <td>"+one_person.decline+"</td>\n" +
+                "                                            <td>" + one_person.name + "(" + one_person.id + ")</td>\n" +
+                "                                            <td>" + one_person.approve + "</td>\n" +
+                "                                            <td>" + one_person.decline + "</td>\n" +
                 "                                        </tr>";
             htmlbody += "</tr>";
         }
@@ -400,466 +402,55 @@
         $("#rank-three").html(htmlbody);
     }
 </script>
-    <script>
-        function get_data(url, callback){
-            if(url=="la.anyone.alldata"){
-                callback([
-                    {name:"张三", id:133, approve:300, decline:400, Accumulate:1000,worktime:1},
-                    {name:"李四", id:133, approve:300, decline:400, Accumulate:1000,worktime:2},
-                ]);
-                return;
-            }
+<script>
+    function get_data(url, callback) {
+        if (url == "la.anyone.alldata") {
+            callback([
+                {name: "张三", id: 133, approve: 300, decline: 400, Accumulate: 1000, worktime: 1},
+                {name: "李四", id: 133, approve: 300, decline: 400, Accumulate: 1000, worktime: 2},
+            ]);
+            return;
         }
-        get_data("la.anyone.alldata", showAllData);
-        function showAllData(shuju){
-            var htmlbody = "";
-            var i = 0;
-            for(i=0; i < shuju.length; i++){
-                var one_person = shuju[i];
-                htmlbody += "<tr>";
-                htmlbody += "                              <tr>\n" +
-                    "                                            <td>"+one_person.name+"("+one_person.id+")</td>\n" +
-                    "                                            <td>"+one_person.approve+"</td>\n" +
-                    "                                            <td>"+one_person.decline+"</td>\n" +
-                    "                                        </tr>";
-                htmlbody += "</tr>";
-            }
+    }
 
-            $("#rank-one").html(htmlbody);
-        }
-    </script>
-    <script>
+    get_data("la.anyone.alldata", showAllData);
 
-        /*function get_data(url, callback){
-            if(url=="la.anyone.alldata"){
-                callback([
-                    {name:"张三", id:133, approve:300, decline:400, Accumulate:1000,worktime:1},
-                    {name:"李四", id:133, approve:300, decline:400, Accumulate:1000,worktime:2},
-                    ]);
-                return;
-            }
-            callback([{x:1527957798468,y:3000},{x:1527957799468,y:3000},{x:1527957800468,y:3000.5},{x:1527957801468,y:3001}]);
+    function showAllData(shuju) {
+        var htmlbody = "";
+        var i = 0;
+        for (i = 0; i < shuju.length; i++) {
+            var one_person = shuju[i];
+            htmlbody += "<tr>";
+            htmlbody += "                              <tr>\n" +
+                "                                            <td>" + one_person.name + "(" + one_person.id + ")</td>\n" +
+                "                                            <td>" + one_person.approve + "</td>\n" +
+                "                                            <td>" + one_person.decline + "</td>\n" +
+                "                                        </tr>";
+            htmlbody += "</tr>";
         }
 
-        get_data('la.acceptedCount.3600',mmm);
-        function mmm(shuju) {
-
-            console.log("------ getting la.acceptedCount.3000 -------")
-            console.log(shuju);
-
-            var chart = Highcharts.chart('container1',{
-                chart: {
-                    type: 'spline'
-                },
-                title: {
-                    text: '月平均降雨量'
-                },
-                subtitle: {
-                    text: '数据来源: WorldClimate.com'
-                },
-                xAxis: {
-                    tickInterval: 1000, // 坐标轴刻度间隔为一星期
-                    tickWidth: 0,
-                    gridLineWidth: 1,
-                    // 时间格式化字符
-                    // 默认会根据当前的刻度间隔取对应的值,即当刻度间隔为一周时,取 week 值
-                    dateTimeLabelFormats: {
-                        week: '%Y-%m-%d'
-                    }
-                },
-                yAxis: {
-                    // min: 0,
-                    // title: {
-                    //     text: '降雨量 (mm)'
-                    // }
-                },
-                tooltip: {
-                    // head + 每个 point + footer 拼接成完整的 table
-                    headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
-                    pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
-                    '<td style="padding:0"><b>{point.y:.1f} mm</b></td></tr>',
-                    footerFormat: '</table>',
-                    shared: true,
-                    useHTML: true
-                },
-                plotOptions: {
-                    column: {
-                        borderWidth: 0
-                    }
-                },
-                series: [{
-                    name: '东京',
-                    data: shuju
-                }]
-            });
-        }
+        $("#rank-one").html(htmlbody);
+    }
+</script>
+</body>
 
-        setInterval(lll,100);
-        function lll() {
+</html>
 
-        }
 
-        get_data("la.anyone.alldata", showAllData);
-        function showAllData(shuju){
-            var htmlbody = "";
-            var i = 0;
-            for(i=0; i < shuju.length; i++){
-                var one_person = shuju[i];
-                htmlbody += "<tr>";
-                htmlbody += "                              <tr>\n" +
-                    "                                            <td>"+one_person.name+"("+one_person.id+")</td>\n" +
-                    "                                            <td>"+one_person.approve+"</td>\n" +
-                    "                                            <td>"+one_person.decline+"</td>\n" +
-                    "                                        </tr>";
-                htmlbody += "</tr>";
-            }
+<!---
+###  SVR_BASE 类似 "http://127.0.0.1:8803"  实际上线之后是确定值,写死在HTML里的JS里面
 
-            $("#rank-one").html(htmlbody);
-        }*/
 
+###  各个拉实时产量数据接口地址
+SVR_BASE + "/server/fcWorkRaw/allFlows"
 
-    </script>
-    <script>
-        var chart = Highcharts.chart('container1', {
-            title: {
-                text: '合格数'
-            },
-            /*subtitle: {
-                text: '数据来源:thesolarfoundation.com'
-            },*/
-            xAxis: {
-                title: {
-                    text: '员工'
-                }
-            },
-            yAxis: {
-                title: {
-                    text: '就业人数'
-                }
-            },
-            legend: {
-                layout: 'vertical',
-                align: 'right',
-                verticalAlign: 'middle'
-            },
-            plotOptions: {
-                series: {
-                    label: {
-                        connectorAllowed: false
-                    },
-                    pointStart: 2010
-                }
-            },
-            series: [{
-                name: '安装,实施人员',
-                data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175]
-            }, {
-                name: '工人',
-                data: [24916, 24064, 29742, 29851, 32490, 30282, 38121, 40434]
-            }, {
-                name: '销售',
-                data: [11744, 17722, 16005, 19771, 20185, 24377, 32147, 39387]
-            }, {
-                name: '项目开发',
-                data: [null, null, 7988, 12169, 15112, 22452, 34400, 34227]
-            }, {
-                name: '其他',
-                data: [12908, 5948, 8105, 11248, 8989, 11816, 18274, 18111]
-            }],
-            responsive: {
-                rules: [{
-                    condition: {
-                        maxWidth: 500
-                    },
-                    chartOptions: {
-                        legend: {
-                            layout: 'horizontal',
-                            align: 'center',
-                            verticalAlign: 'bottom'
-                        }
-                    }
-                }]
-            }
-        });
-    </script>
-    <script>
-        var chart = Highcharts.chart('container2', {
-            chart: {
-                type: 'bar'
-            },
-            title: {
-                text: '不合格数'
-            },
-            xAxis: {
-                categories: ['苹果', '橘子', '梨', '葡萄', '香蕉']
-            },
-            yAxis: {
-                min: 0,
-                title: {
-                    text: '员工'
-                }
-            },
-            legend: {
-                /* 图例显示顺序反转
-                 * 这是因为堆叠的顺序默认是反转的,可以设置
-                 * yAxis.reversedStacks = false 来达到类似的效果
-                 */
-                reversed: true
-            },
-            plotOptions: {
-                series: {
-                    stacking: 'normal'
-                }
-            },
-            series: [{
-                name: '小张',
-                data: [5, 3, 4, 7, 2]
-            }, {
-                name: '小彭',
-                data: [2, 2, 3, 2, 1]
-            }, {
-                name: '小潘',
-                data: [3, 4, 4, 2, 5]
-            }]
-        });
-    </script>
-    <script>
-        var chart = Highcharts.chart('container3', {
-            chart: {
-                type: 'column'
-            },
-            title: {
-                text: '堆积数'
-            },
-            /*subtitle: {
-                text: '数据截止 2017-03,来源: <a href="https://en.wikipedia.org/wiki/List_of_cities_proper_by_population">Wikipedia</a>'
-            },*/
-            xAxis: {
-                type: 'category',
-               /* labels: {
-                    rotation: -45  // 设置轴标签旋转角度
-                }*/
-                title: {
-                    text: '员工'
-                }
-            },
-            yAxis: {
-                min: 0,
-                title: {
-                    text: '人口 (百万)'
-                }
-            },
-            legend: {
-                enabled: false
-            },
-            tooltip: {
-                pointFormat: '人口总量: <b>{point.y:.1f} 百万</b>'
-            },
-            series: [{
-                name: '总人口',
-                data: [
-                    ['上海', 24.25],
-                    ['卡拉奇', 23.50],
-                    ['北京', 21.51],
-                    ['德里', 16.78],
-                    ['拉各斯', 16.06],
-                    ['天津', 15.20],
-                    ['伊斯坦布尔', 14.16],
-                    ['东京', 13.51],
-                    ['广州', 13.08],
-                    ['孟买', 12.44],
-                    ['莫斯科', 12.19],
-                    ['圣保罗', 12.03],
-                    ['深圳', 10.46],
-                    ['雅加达', 10.07],
-                    ['拉合尔', 10.05],
-                    ['首尔', 9.99],
-                    ['武汉', 9.78],
-                    ['金沙萨', 9.73],
-                    ['开罗', 9.27],
-                    ['墨西哥', 8.87]
-                ],
-                dataLabels: {
-                    enabled: true,
-                    rotation: -90,
-                    color: '#FFFFFF',
-                    align: 'right',
-                    format: '{point.y:.1f}', // :.1f 为保留 1 位小数
-                    y: 10
-                }
-            }]
-        });
-    </script>
-    <script>
-        var chart = Highcharts.chart('container4', {
-            chart: {
-                type: 'line'
-            },
-            title: {
-                text: '工作时长'
-            },
-            /*subtitle: {
-                text: '数据来源: WorldClimate.com'
-            },*/
-            xAxis: {
-
-                title: {
-                    text: '员工'
-                }
-            },
-            yAxis: {
-                title: {
-                    text: '气温 (°C)'
-                }
-            },
-            plotOptions: {
-                line: {
-                    dataLabels: {
-                        // 开启数据标签
-                        enabled: true
-                    },
-                    // 关闭鼠标跟踪,对应的提示框、点击事件会失效
-                    enableMouseTracking: false
-                }
-            },
-            series: [{
-                name: '东京',
-                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]
-            }, {
-                name: '伦敦',
-                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]
-            }]
-        });
+###  单个拉内,所有工位实时产量数据接口地址   e.g. 拉线ID = 2
+SVR_BASE + "/server/fcWorkRaw/allSpots" + "?" + "flowId=2"
 
-    </script>
-    <script>
-        var chart = Highcharts.chart('container5', {
-            chart: {
-                type: 'column'
-            },
-            title: {
-                text: '不良率'
-            },
-            xAxis: {
-                /*categories: ['苹果', '橘子', '梨', '葡萄', '香蕉']*/
-                title: {
-                    text: '员工'
-                }
-            },
-            yAxis: {
-                min: 0,
-                title: {
-                    text: '水果消费总量'
-                }
-            },
-            tooltip: {
-                pointFormat: '<span style="color:{series.color}">{series.name}</span>: <b>{point.y}</b>' +
-                '({point.percentage:.0f}%)<br/>',
-                //:.0f 表示保留 0 位小数,详见教程:https://www.hcharts.cn/docs/basic-labels-string-formatting
-                shared: true
-            },
-            plotOptions: {
-                column: {
-                    stacking: 'percent'
-                }
-            },
-            series: [{
-                name: '小张',
-                data: [5, 3, 4, 7, 2]
-            }, {
-                name: '小彭',
-                data: [2, 2, 3, 2, 1]
-            }, {
-                name: '小潘',
-                data: [3, 4, 4, 2, 5]
-            }]
-        });
-    </script>
-    <script>
-        var chart = Highcharts.chart('container10', {
-            chart: {
-                zoomType: 'xy'
-            },
-            title: {
-                text: null
-            },
-            credits:{
-                enabled: false // 禁用版权信息
-            },
-            exporting: {
-                enabled: false
-            },
-            xAxis: [{
-                categories: ['张三', '李四', '王五', 'Apr', 'May', 'Jun',
-                    'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
-                crosshair: true,
-                title: {
-                    text: '员工',
-                }
-            }],
-            yAxis: [{ // Primary yAxis
-                labels: {
-                    format: '{value}',
-                    style: {
-                        color: Highcharts.getOptions().colors[0],
-                        fontSize:'15px'
-                    }
-                },
-                title: {
-                    text: '堆积数',
-                    style: {
-                        color: Highcharts.getOptions().colors[0],
-                        fontSize:'15px'
-                    }
-                }
-            }, { // Secondary yAxis
-                title: {
-                    text: '不良率',
-                    style: {
-                        color: 'red',
-                        fontSize:'15px'
-                    }
-                },
-                labels: {
-                    format: '{value} %',
-                    style: {
-                        color: 'red',
-                        fontSize:'15px'
-                    }
-                },
-                opposite: true
-            }],
-            tooltip: {
-                shared: true
-            },
-            legend: {
-                layout: 'vertical',
-                align: 'left',
-                x: 120,
-                verticalAlign: 'top',
-                y: 100,
-                floating: true,
-                backgroundColor: (Highcharts.theme && Highcharts.theme.legendBackgroundColor) || '#FFFFFF'
-            },
-            series: [{
-                name: '堆积数',
-                type: 'column',
-                yAxis: 1,
-                data: [200, 150, 135, 122, 111, 75, 65, 63.2, 50, 45, 22, 11],
-                tooltip: {
-                    valueSuffix: ' mm'
-                }
-            }, {
-                name: '不良率',
-                type: 'spline',
-                data: [55, 53, 52.5, 41.5, 44.2, 45.5, 35.2, 26.5, 23.3, 18.3, 13.9, 9.6],
-                color:'red',
-                tooltip: {
-                    valueSuffix: '%'
-                }
-            }]
-        });
-    </script>
-</body>
 
-</html>
+###  员工上班记录API     e.g. 拉线ID = 2    工位顺序 = 1    员工ID = 33404
+SVR_BASE + "/server/fcWorkStartend/goOnline" + "?" + "flowId=2&sequence=1&workerId=33404"
+
+### 查询已上班员工    e.g. 拉线ID = 2
+SVR_BASE + "/server/fcWorkRaw/getAll" + "?" + "flowId=2"
+-->