| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396 |
- <!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 rel="stylesheet" href="../DashBoard.css?v3" />
- <script src="/Plugins/jquery-3.4.1/jquery-3.4.1.min.js"></script>
- <script src="/Plugins/xrequest/xrequest.min.js"></script>
- <title>东科软件</title>
- </head>
- <body>
- <div class="m4_box_1920_1080">
- <div class="m4_box_title" onclick="showHelp()" style="cursor:pointer">
- <div class="m4_box_title_arrow"></div><div class="m4_box_title_arrow2"></div> <div>高压注浆(1号线)</div><span class="m4_box_title_loading" id="报表加载"></span>
- </div>
- <div class="m4_box_body">
- <div style="width:1720px;height:276px;display:flex;flex-direction:row;">
- <div style="width: 385px; height: 276px; padding-left:20px;">
- <!--设定参数-->
- <table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
- <tr class="tr_bg_dark_warning">
- <td style="width:230px;">高注时长(外壳)</td>
- <td id="q1"></td>
- </tr>
- <tr class="tr_bg_light_warning">
- <td>低注时长(外壳)</td>
- <td id="w1"></td>
- </tr>
- <tr class="tr_bg_dark_warning">
- <td>排泥时间(外壳)</td>
- <td id="e1"></td>
- </tr>
- <tr class="tr_bg_light_warning">
- <td>巩固时间(外壳)</td>
- <td id="r1"></td>
- </tr>
- </table>
- </div>
- <div style="width: 1335px;height:276px;padding-left:20px;">
- <!--外壳-->
- <canvas id="canvasGrouting1" style="-moz-user-select: none;-webkit-user-select: none;-ms-user-select: none; height:276px;width:100%"></canvas>
- </div>
- </div>
- <div style="width:1720px;height:276px;display:flex;flex-direction:row;">
- <div style="width: 385px; height: 276px; padding-left:20px;">
- <!--设定参数-->
- <table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
- <tr class="tr_bg_dark_warning">
- <td style="width:230px;">高注时长(内胆)</td>
- <td id="q2"></td>
- </tr>
- <tr class="tr_bg_light_warning">
- <td>低注时长(内胆)</td>
- <td id="w2"></td>
- </tr>
- <tr class="tr_bg_dark_warning">
- <td>排泥时间(内胆)</td>
- <td id="e2"></td>
- </tr>
- <tr class="tr_bg_light_warning">
- <td>巩固时间(内胆)</td>
- <td id="r2"></td>
- </tr>
- </table>
- </div>
- <div style="width: 1335px;height:276px;padding-left:20px;">
- <!--内胆-->
- <canvas id="canvasGrouting2" style="-moz-user-select: none;-webkit-user-select: none;-ms-user-select: none; height:276px;width:100%"></canvas>
- </div>
- </div>
- <div style="width:1720px;height:276px;display:flex;flex-direction:row;">
- <div style="width: 385px; height: 276px; padding-left:20px;">
- <!--设定参数-->
- <table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
- <tr class="tr_bg_dark_warning">
- <td style="width:230px;">高注时长(座圈)</td>
- <td id="q3"></td>
- </tr>
- <tr class="tr_bg_light_warning">
- <td>低注时长(座圈)</td>
- <td id="w3"></td>
- </tr>
- <tr class="tr_bg_dark_warning">
- <td>排泥时间(座圈)</td>
- <td id="e3"></td>
- </tr>
- <tr class="tr_bg_light_warning">
- <td>巩固时间(座圈)</td>
- <td id="r3"></td>
- </tr>
- </table>
- </div>
- <div style="width: 1335px;height:276px;padding-left:20px;">
- <!--座圈-->
- <canvas id="canvasGrouting3" style="-moz-user-select: none;-webkit-user-select: none;-ms-user-select: none; height:276px;width:100%"></canvas>
- </div>
- </div>
- </div>
- </div>
- <script>
- //缺陷统计刷新时间
- var refreshTime1 = 60000;
- var currentTime1 = 0;
- var doGetData;
- var doGetTime;
- var frameHeight;
- var tableHeight;
- var offsetHeight = 20;
- $(document).ready(function () {
- initData();
- doGetData = setInterval(function () { timeUpdate(); }, 1000);
- });
- //帮助说明
- function showHelp() {
- var message = "统计说明:" + "\n";
- message += "这是文字说明这是文字说明这是文字说明这是文字说明这是文字说明这是文字说明这是文字说明" + "\n";
- message += "这是文字说明这是文字说明这是文字说明这是文字说明这是文字说明这是文字说明这是文字说明" + "\n";
- message += "这是文字说明这是文字说明这是文字说明这是文字说明这是文字说明这是文字说明这是文字说明" + "\n";
- alert(message);
- }
- function timeUpdate() {
- if (currentTime1 <= 0) {
- //clearData();
- loadData();
- currentTime1 = refreshTime1;
- }
- else {
- if (currentTime1 > 0) {
- $('#报表加载').html('刷新:' + currentTime1 / 1000 + ' 秒');
- currentTime1 = currentTime1 - 1000;
- }
- }
- }
- function clearData() {
- //清除数据
- window.Grouting1.data.datasets[0].data = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
- window.Grouting1.data.datasets[1].data = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
- window.Grouting1.update();
- window.Grouting2.data.datasets[0].data = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
- window.Grouting2.data.datasets[1].data = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
- window.Grouting2.update();
- window.Grouting3.data.datasets[0].data = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
- window.Grouting3.data.datasets[1].data = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
- window.Grouting3.update();
- }
- function loadData() {
- //注浆参数=========================================
- for (var i = 0; i < 4; i++) {
- $("#q"+i).text( 880 + " 秒");
- $("#w" + i).text(100 + " 秒");
- $("#e" + i).text(80 + " 秒");
- $("#r" + i).text(550 + " 秒");
- }
- //注浆数据=========================================
- window.Grouting1.data.datasets[0].data = [40, 40, 42, 40, 40, 40, 40, 42, 42, 43, 41, 40, 41, 41, 42, 40, 42, 41, 41, 43, 41, 42, 40, 41];
- window.Grouting1.data.datasets[1].data = [10, 10, 11, 9, 11, 10, 11, 10, 9, 10, 12, 10, 9, 10, 11, 10, 10, 10, 9, 9, 9, 9, 11, 10];
- window.Grouting2.data.datasets[0].data = [40, 41, 42, 43, 40, 40, 42, 41, 42, 43, 41, 40, 41, 41, 42, 42, 43, 43, 41, 43, 42, 42, 42, 41];
- window.Grouting2.data.datasets[1].data = [9, 9, 9, 9, 10, 11, 11, 10, 9, 10, 10, 10, 9, 9, 10, 10, 10, 11, 11, 11, 9, 9, 10, 10];
- window.Grouting3.data.datasets[0].data = [40, 41, 43, 43, 43, 40, 42, 40, 42, 43, 41, 43, 41, 40, 42, 42, 42, 43, 40, 41, 41, 42, 41, 40];
- window.Grouting3.data.datasets[1].data = [11, 11, 10, 9, 10, 11, 10, 10, 9, 10, 11, 10, 10, 9, 10, 10, 11, 11, 11, 10, 9, 10, 11, 10];
- //清除未发生的数据===================================
- var myDate = new Date();
- for (var j = myDate.getHours(); j < 24; j++) {
- window.Grouting1.data.datasets[0].data[j] = null;
- window.Grouting1.data.datasets[1].data[j] = null;
- window.Grouting2.data.datasets[0].data[j] = null;
- window.Grouting2.data.datasets[1].data[j] = null;
- window.Grouting3.data.datasets[0].data[j] = null;
- window.Grouting3.data.datasets[1].data[j] = null;
- }
- window.Grouting1.update();
- window.Grouting2.update();
- window.Grouting3.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;
- //高压注浆1号线===========================================
- window.configGrouting1 = {
- data: {
- labels: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23'],
- datasets: [{
- label: '温度 ℃(外壳)',
- backgroundColor: color(window.chartColors.blue).alpha(0.6).rgbString(),
- fill: false,
- borderColor: window.chartColors.blue,
- borderWidth: 2,
- pointRadius: 10,
- data: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
- }, {
- label: '压力 Pa(外壳)',
- backgroundColor: color(window.chartColors.red).alpha(0.6).rgbString(),
- fill: false,
- borderColor: window.chartColors.red,
- borderWidth: 2,
- pointRadius: 10,
- data: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
- }]
- },
- type: 'line',
- options: {
- legend: {
- display: true
- },
- title: {
- display: false,
- text: ""
- },
- tooltips: {
- mode: 'point',
- intersect: false
- },
- responsive: true,
- scales: {
- xAxes: [{
- stacked: false
- }],
- yAxes: [{
- display: true,
- stacked: false,
- ticks: {
- min: 0,
- stepSize: 10,
- max: 50
- }
- }]
- }
- }
- };
- var ctxGrouting1 = document.getElementById("canvasGrouting1").getContext("2d");
- window.Grouting1 = new Chart(ctxGrouting1, configGrouting1);
- //===================================================
- //高压注浆2号线===========================================
- window.configGrouting2 = {
- data: {
- labels: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23'],
- datasets: [{
- label: '温度 ℃(内胆)',
- backgroundColor: color(window.chartColors.blue).alpha(0.6).rgbString(),
- fill: false,
- borderColor: window.chartColors.blue,
- borderWidth: 2,
- pointRadius: 10,
- data: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
- }, {
- label: '压力 Pa(内胆)',
- backgroundColor: color(window.chartColors.red).alpha(0.6).rgbString(),
- fill: false,
- borderColor: window.chartColors.red,
- borderWidth: 2,
- pointRadius: 10,
- data: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
- }]
- },
- type: 'line',
- options: {
- legend: {
- display: true
- },
- title: {
- display: false,
- text: ""
- },
- tooltips: {
- mode: 'point',
- intersect: false
- },
- responsive: true,
- scales: {
- xAxes: [{
- stacked: false
- }],
- yAxes: [{
- display: true,
- stacked: false,
- ticks: {
- min: 0,
- stepSize: 10,
- max: 50
- }
- }]
- }
- }
- };
- var ctxGrouting2 = document.getElementById("canvasGrouting2").getContext("2d");
- window.Grouting2 = new Chart(ctxGrouting2, configGrouting2);
- //===================================================
- //高压注浆3号线===========================================
- window.configGrouting3 = {
- data: {
- labels: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23'],
- datasets: [{
- label: '温度 ℃(座圈)',
- backgroundColor: color(window.chartColors.blue).alpha(0.6).rgbString(),
- fill: false,
- borderColor: window.chartColors.blue,
- borderWidth: 2,
- pointRadius: 10,
- data: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
- }, {
- label: '压力 Pa(座圈)',
- backgroundColor: color(window.chartColors.red).alpha(0.6).rgbString(),
- fill: false,
- borderColor: window.chartColors.red,
- borderWidth: 2,
- pointRadius: 10,
- data: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
- }]
- },
- type: 'line',
- options: {
- legend: {
- display: true
- },
- title: {
- display: false,
- text: ""
- },
- tooltips: {
- mode: 'point',
- intersect: false
- },
- responsive: true,
- scales: {
- xAxes: [{
- stacked: false
- }],
- yAxes: [{
- display: true,
- stacked: false,
- ticks: {
- min: 0,
- stepSize: 10,
- max: 50
- }
- }]
- }
- }
- };
- var ctxGrouting3 = document.getElementById("canvasGrouting3").getContext("2d");
- window.Grouting3 = new Chart(ctxGrouting3, configGrouting3);
- //===================================================
- }
- </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>
|