| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516 |
- <!doctype html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <link rel="shortcut icon" href="/img/logo.png" />
- <link rel="bookmark" href="/img/logo.png" />
- <link href="/Plugins/animate/animate.min.css" rel="stylesheet" />
- <link rel="stylesheet" href="../DashBoard.css?v3" />
- <script src="/Plugins/jquery-3.4.1/jquery-3.4.1.min.js"></script>
- <script src="/Plugins/animate/xanimate.js"></script>
- <script src="/Plugins/xrequest/xrequest.min.js"></script>
- <title>东科软件</title>
- </head>
- <body style="background-color:black;">
- <div class="box_1920_1080">
- <div class="box_title">
- 生产数据监控 <span class="box_title_arrow">>>></span>
- </div>
- <div class="box_body" style="display: flex; flex-direction: column;">
- <div style="width:1840px;height:480px;display:flex;flex-direction:row;">
- <div style="width:130px;height:250px;">
- <div style="width: 100%;">
- <table cellspacing="0" cellpadding="0" border="0" style="width: 100%; border-left: 1px dashed #38dcff; ">
- <tr class="tr_title">
- <td>成型</td>
- </tr>
- <tr class="tr_bg_light">
- <td><img src="/Img/robot02.png" width="100" /></td>
- </tr>
- <tr class="tr_bg_dark">
- <td>计件</td>
- </tr>
- <tr class="tr_bg_light">
- <td><span id="cxjj">0</span></td>
- </tr>
- <tr class="tr_bg_dark">
- <td><span id="cxyc_title">异常</span></td>
- </tr>
- <tr class="tr_bg_light">
- <td><span id="cxyc">0</span></td>
- </tr>
- </table>
- </div>
- </div>
- <div style="width:130px;height:250px;display:flex;">
- <div style="width:100%; display :flex; align-items:center;">
- <div style="height: 50px; width: 100%; border-top: 1px dashed #38dcff; border-bottom: 1px dashed #38dcff; ">
- <span id="cxss" style="color: white; font-size: 14px; text-align:center;"></span>
- </div>
- </div>
- </div>
- <div style="width:130px;height:250px;">
- <div style="width: 100%;">
- <table cellspacing="0" cellpadding="0" border="0" style="width: 100%; border-left: 1px dashed #38dcff; ">
- <tr class="tr_title">
- <td>一检</td>
- </tr>
- <tr class="tr_bg_light">
- <td><img src="/Img/robot02.png" width="100" /></td>
- </tr>
- <tr class="tr_bg_dark">
- <td>计件</td>
- </tr>
- <tr class="tr_bg_light">
- <td><span id="yjjj">0</span></td>
- </tr>
- <tr class="tr_bg_dark">
- <td><span id="yjyc_title">异常</span></td>
- </tr>
- <tr class="tr_bg_light">
- <td><span id="yjyc">0</span></td>
- </tr>
- </table>
- </div>
- </div>
- <div style="width:130px;height:250px;display:flex;">
- <div style="width: 100%; display: flex; align-items: center; ">
- <div style="height: 50px; width: 100%; border-top: 1px dashed #38dcff; border-bottom: 1px dashed #38dcff; ">
- <span id="yjss" style="color: white; font-size: 14px; text-align:center;"></span>
- </div>
- </div>
- </div>
- <div style="width:130px;height:250px;">
- <div style="width: 100%;">
- <table cellspacing="0" cellpadding="0" border="0" style="width: 100%; border-left: 1px dashed #38dcff; ">
- <tr class="tr_title">
- <td>改洗</td>
- </tr>
- <tr class="tr_bg_light">
- <td><img src="/Img/robot02.png" width="100" /></td>
- </tr>
- <tr class="tr_bg_dark">
- <td>计件</td>
- </tr>
- <tr class="tr_bg_light">
- <td><span id="gxjj">0</span></td>
- </tr>
- <tr class="tr_bg_dark">
- <td><span id="gxyc_title">异常</span></td>
- </tr>
- <tr class="tr_bg_light">
- <td><span id="gxyc">0</span></td>
- </tr>
- </table>
- </div>
- </div>
- <div style="width:130px;height:250px;display:flex;">
- <div style="width: 100%; display: flex; align-items: center; ">
- <div style="height: 50px; width: 100%; border-top: 1px dashed #38dcff; border-bottom: 1px dashed #38dcff; ">
- <span id="gxss" style="color: white; font-size: 14px; text-align:center;"></span>
- </div>
- </div>
- </div>
- <div style="width:130px;height:250px;">
- <div style="width: 100%;">
- <table cellspacing="0" cellpadding="0" border="0" style="width: 100%; border-left: 1px dashed #38dcff; ">
- <tr class="tr_title">
- <td>二检</td>
- </tr>
- <tr class="tr_bg_light">
- <td><img src="/Img/robot02.png" width="100" /></td>
- </tr>
- <tr class="tr_bg_dark">
- <td>计件</td>
- </tr>
- <tr class="tr_bg_light">
- <td><span id="ejjj">0</span></td>
- </tr>
- <tr class="tr_bg_dark">
- <td><span id="ejyc_title">异常</span></td>
- </tr>
- <tr class="tr_bg_light">
- <td><span id="ejyc">0</span></td>
- </tr>
- </table>
- </div>
- </div>
- <div style="width:130px;height:250px;display:flex;">
- <div style="width: 100%; display: flex; align-items: center; ">
- <div style="height: 50px; width: 100%; border-top: 1px dashed #38dcff; border-bottom: 1px dashed #38dcff; ">
- <span id="ejss" style="color: white; font-size: 14px; text-align:center;"></span>
- </div>
- </div>
- </div>
- <div style="width:130px;height:250px;">
- <div style="width: 100%;">
- <table cellspacing="0" cellpadding="0" border="0" style="width: 100%; border-left: 1px dashed #38dcff; ">
- <tr class="tr_title">
- <td>施釉</td>
- </tr>
- <tr class="tr_bg_light">
- <td><img src="/Img/robot02.png" width="100" /></td>
- </tr>
- <tr class="tr_bg_dark">
- <td>计件</td>
- </tr>
- <tr class="tr_bg_light">
- <td><span id="syjj">0</span></td>
- </tr>
- <tr class="tr_bg_dark">
- <td><span id="syyc_title">异常</span></td>
- </tr>
- <tr class="tr_bg_light">
- <td><span id="syyc">0</span></td>
- </tr>
- </table>
- </div>
- </div>
- <div style="width:130px;height:250px;display:flex;">
- <div style="width: 100%; display: flex; align-items: center; ">
- <div style="height: 50px; width: 100%; border-top: 1px dashed #38dcff; border-bottom: 1px dashed #38dcff; ">
- <span id="syss" style="color: white; font-size: 14px; text-align:center;"></span>
- </div>
- </div>
- </div>
- <div style="width:130px;height:250px;">
- <div style="width: 100%;">
- <table cellspacing="0" cellpadding="0" border="0" style="width: 100%; border-left: 1px dashed #38dcff; ">
- <tr class="tr_title">
- <td>烧成</td>
- </tr>
- <tr class="tr_bg_light">
- <td><img src="/Img/robot02.png" width="100" /></td>
- </tr>
- <tr class="tr_bg_dark">
- <td>计件</td>
- </tr>
- <tr class="tr_bg_light">
- <td><span id="scjj">0</span></td>
- </tr>
- <tr class="tr_bg_dark">
- <td><span id="scyc_title">异常</span></td>
- </tr>
- <tr class="tr_bg_light">
- <td><span id="scyc">0</span></td>
- </tr>
- </table>
- </div>
- </div>
- <div style="width:130px;height:250px;display:flex;">
- <div style="width: 100%; display: flex; align-items: center; ">
- <div style="height: 50px; width: 100%; border-top: 1px dashed #38dcff; border-bottom: 1px dashed #38dcff; ">
- <span id="scss" style="color: white; font-size: 14px; text-align:center;"></span>
- </div>
- </div>
- </div>
- <div style="width:130px;height:250px;">
- <div style="width: 100%;">
- <table cellspacing="0" cellpadding="0" border="0" style="width: 100%; border-left: 1px dashed #38dcff; ">
- <tr class="tr_title">
- <td>成检</td>
- </tr>
- <tr class="tr_bg_light">
- <td><img src="/Img/robot02.png" width="100" /></td>
- </tr>
- <tr class="tr_bg_dark">
- <td>计件</td>
- </tr>
- <tr class="tr_bg_light">
- <td><span id="cjjj">0</span></td>
- </tr>
- <tr class="tr_bg_dark">
- <td><span id="cjyc_title">异常</span></td>
- </tr>
- <tr class="tr_bg_light">
- <td><span id="cjyc">0</span></td>
- </tr>
- </table>
- </div>
- </div>
- <div style="width:130px;height:250px;display:flex;">
- <div style="width: 100%; display: flex; align-items: center; ">
- <div style="height: 50px; width: 100%; border-top: 1px dashed #38dcff; border-bottom: 1px dashed #38dcff; ">
- <span id="cjss" style="color: white; font-size: 14px; text-align:center;"></span>
- </div>
- </div>
- </div>
- </div>
- <div style="width:1840px;height:480px;display:flex;flex-direction:row;">
- <div style="width: 50%;height:480px;">
- <canvas id="canvasProcedureCL" style="-moz-user-select: none;-webkit-user-select: none;-ms-user-select: none; height:480px;width:100%"></canvas>
- </div>
- <div style="width: 50%; height: 480px; ">
- <canvas id="canvasProcedureYC" style="-moz-user-select: none;-webkit-user-select: none;-ms-user-select: none; height:480px;width:100%"></canvas>
- </div>
- </div>
- </div>
- </div>
- <script>
- $(document).ready(function () {
- initData();
- doGetData = setInterval(function () { timeUpdate(); }, 500);
- });
- function timeUpdate() {
- loadData();
- if (Math.round(Math.random() * 3) == 1) {
- if (Math.round(Math.random() * 20) == 1) {
- animateAddNum("#cxyc");
- animateInLeftHinge("#cxss", "【H0966M】<br/>12345678901");
- } else {
- animateAddNum("#cxjj");
- animateInLeftOutRight("#cxss", "【H0966M】<br/>12345678901");
- }
- }
- if (Math.round(Math.random() * 5) == 1) {
- if (Math.round(Math.random() * 20) == 1) {
- animateAddNum("#yjyc");
- animateInLeftHinge("#yjss", "【H0966M】<br/>12345678901");
- } else {
- animateAddNum("#yjjj");
- animateInLeftOutRight("#yjss", "【H0966M】<br/>12345678901");
- }
- }
- if (Math.round(Math.random() * 6) == 1) {
- if (Math.round(Math.random() * 20) == 1) {
- animateAddNum("#gxyc");
- animateInLeftHinge("#gxss", "【H0966M】<br/>12345678901");
- } else {
- animateAddNum("#gxjj");
- animateInLeftOutRight("#gxss", "【H0966M】<br/>12345678901");
- }
- }
- if (Math.round(Math.random() * 4) == 1) {
- if (Math.round(Math.random() * 20) == 1) {
- animateAddNum("#ejyc");
- animateInLeftHinge("#ejss", "【H0966M】<br/>12345678901");
- } else {
- animateAddNum("#ejjj");
- animateInLeftOutRight("#ejss", "【H0966M】<br/>12345678901");
- }
- }
- if (Math.round(Math.random() * 5) == 1) {
- if (Math.round(Math.random() * 50) == 1) {
- animateAddNum("#syyc");
- animateInLeftHinge("#syss", "【H0966M】<br/>12345678901");
- } else {
- animateAddNum("#syjj");
- animateInLeftOutRight("#syss", "【H0966M】<br/>12345678901");
- }
- }
- if (Math.round(Math.random() * 5) == 1) {
- if (Math.round(Math.random() * 20) == 1) {
- animateAddNum("#scyc");
- animateInLeftHinge("#scss", "【H0966M】<br/>12345678901");
- } else {
- animateAddNum("#scjj");
- animateInLeftOutRight("#scss", "【H0966M】<br/>12345678901");
- }
- }
- if (Math.round(Math.random() * 5) == 1) {
- if (Math.round(Math.random() * 20) == 1) {
- animateAddNum("#cjyc");
- animateInLeftHinge("#cjss", "【H0966M】<br/>12345678901");
- } else {
- animateAddNum("#cjjj");
- animateInLeftOutRight("#cjss", "【H0966M】<br/>12345678901");
- }
- }
- }
- function loadData() {
- //异常统计===================================
- window.ProcedureYC.data.datasets[0].data = [
- parseInt($("#cxjj").text()),
- parseInt($("#yjjj").text()),
- parseInt($("#gxjj").text()),
- parseInt($("#ejjj").text()),
- parseInt($("#syjj").text()),
- parseInt($("#scjj").text()),
- parseInt($("#cjjj").text())
- ];
- window.ProcedureYC.data.datasets[1].data = [
- parseInt($("#cxyc").text()),
- parseInt($("#yjyc").text()),
- parseInt($("#gxyc").text()),
- parseInt($("#ejyc").text()),
- parseInt($("#syyc").text()),
- parseInt($("#scyc").text()),
- parseInt($("#cjyc").text())
- ];
- window.ProcedureYC.update();
- //===================================================
- //产量统计===================================
- window.ProcedureCL.data.datasets[0].data = [
- parseInt($("#cxjj").text()),
- parseInt($("#yjjj").text()),
- parseInt($("#gxjj").text()),
- parseInt($("#ejjj").text()),
- parseInt($("#syjj").text()),
- parseInt($("#scjj").text()),
- parseInt($("#cjjj").text())
- ];
- window.ProcedureCL.data.datasets[1].data = [
- parseInt($("#cxyc").text()),
- parseInt($("#yjyc").text()),
- parseInt($("#gxyc").text()),
- parseInt($("#ejyc").text()),
- parseInt($("#syyc").text()),
- parseInt($("#scyc").text()),
- parseInt($("#cjyc").text())
- ];
- window.ProcedureCL.update();
- //===================================================
- }
- function initData() {
- window.chartColors = {
- red: 'rgb(255, 99, 132)',
- orange: 'rgb(255, 159, 64)',
- yellow: 'rgb(255, 250, 86)',
- green: 'rgb(75, 192, 192)',
- blue: 'rgb(54, 162, 250)',
- purple: 'rgb(153, 102, 255)',
- grey: 'rgb(231,233,237)'
- };
- var color = Chart.helpers.color;
- window.randomScalingFactor = function (num) {
- return Math.round(Math.random() * num);
- }
- Chart.defaults.global.defaultFontColor = 'white';
- Chart.defaults.global.defaultFontSize = 24;
- Chart.defaults.global.legend.display = false;
- //异常统计=======================================
- window.configProcedureYC = {
- data: {
- labels: ['成型', '一检', '改洗', '二检', '施釉', '烧成', '成检'],
- datasets: [{
- label: '产量',
- backgroundColor: color(window.chartColors.blue).alpha(0.35).rgbString(),
- fill:false,
- borderColor: window.chartColors.blue,
- borderWidth: 1,
- data: [0, 0, 0, 0, 0, 0, 0]
- },
- {
- label: '异常',
- backgroundColor: color(window.chartColors.orange).alpha(0.35).rgbString(),
- fill:false,
- borderColor: window.chartColors.orange,
- borderWidth: 1,
- data: [0, 0, 0, 0, 0, 0, 0]
- }
- ]
- },
- type: 'line',
- options: {
- legend: {
- display: true
- },
- title: {
- display: true,
- text: "生产工序产量统计"
- },
- tooltips: {
- mode: 'point',
- intersect: false
- },
- responsive: true,
- scales: {
- xAxes: [{
- stacked: false
- }],
- yAxes: [{
- display: true,
- stacked: false,
- ticks: {
- //min: 0,
- //stepSize: 500,
- //max: 3500
- }
- }]
- }
- }
- };
- var ctxProcedureYC = document.getElementById("canvasProcedureYC").getContext("2d");
- window.ProcedureYC = new Chart(ctxProcedureYC, configProcedureYC);
- //===================================================
- //产量统计=======================================
- window.configProcedureCL = {
- data: {
- labels: ['成型', '一检', '改洗', '二检', '施釉', '烧成', '成检'],
- datasets: [{
- label: '计件',
- backgroundColor: color(window.chartColors.blue).alpha(0.35).rgbString(),
- borderColor: window.chartColors.blue,
- borderWidth: 1,
- data: [0, 0, 0, 0, 0, 0, 0]
- },
- {
- label: '异常',
- backgroundColor: color(window.chartColors.orange).alpha(0.35).rgbString(),
- borderColor: window.chartColors.orange,
- borderWidth: 1,
- data: [0, 0, 0, 0, 0, 0, 0]
- }
- ]
- },
- type: 'bar',
- options: {
- legend: {
- display: true
- },
- title: {
- display: true,
- text: "生产工序产量统计"
- },
- tooltips: {
- mode: 'point',
- intersect: false
- },
- responsive: true,
- scales: {
- xAxes: [{
- stacked: true
- }],
- yAxes: [{
- display: true,
- stacked: true,
- //ticks: {
- // min: 0,
- // stepSize: 500,
- // max: 3500
- //}
- }]
- }
- }
- };
- var ctxProcedureCL = document.getElementById("canvasProcedureCL").getContext("2d");
- window.ProcedureCL = new Chart(ctxProcedureCL, configProcedureCL);
- //===================================================
- }
- </script>
- <script src="/Plugins/chartjs-2.8.0/chart-2.8.min.js"></script>
- <!--<script src="/Plugins/chartjs-2.8.0/chartjs-plugin-datalabels.js"></script>-->
- <script src="/Plugins/chartjs-2.8.0/utils.js"></script>
- <script src="/Plugins/circleChart/circleChart.min.js"></script>
- </body>
- </html>
|