From 9d5fc901004b891205af6c363b390961877718eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Wed, 8 Jun 2022 16:47:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/static/css/tankShell/device.css | 6 ++--- .../static/js/aluminumLiner/index.js | 15 +++++++------ .../resources/static/js/common/synthetic.js | 22 +++++++++---------- .../resources/static/js/tankShell/device.js | 16 +++++++------- .../resources/templates/tankShell/device.html | 2 +- .../classes/static/css/tankShell/device.css | 6 ++--- .../classes/static/js/aluminumLiner/index.js | 16 ++++++++------ .../classes/static/js/common/synthetic.js | 22 +++++++++---------- .../classes/static/js/tankShell/device.js | 16 +++++++------- .../classes/templates/tankShell/device.html | 2 +- 10 files changed, 63 insertions(+), 60 deletions(-) diff --git a/productionboard/src/main/resources/static/css/tankShell/device.css b/productionboard/src/main/resources/static/css/tankShell/device.css index 17bfe6d..6861cf4 100644 --- a/productionboard/src/main/resources/static/css/tankShell/device.css +++ b/productionboard/src/main/resources/static/css/tankShell/device.css @@ -22,7 +22,7 @@ body { position: absolute; width: 42%; height: 6%; - top: 9%; + top: 8%; left: 29%; font-size: 16px !important; } @@ -61,7 +61,7 @@ body { justify-content: center; align-items: center; color: #8FB7D1; - font-size: 230% !important; + font-size: 175% !important; } .meterParam { @@ -75,7 +75,7 @@ body { justify-content: center; align-items: center; color: #A5E3B1; - font-size: 230% !important; + font-size: 175% !important; } .OEEStatistics { diff --git a/productionboard/src/main/resources/static/js/aluminumLiner/index.js b/productionboard/src/main/resources/static/js/aluminumLiner/index.js index a0cb7d3..7d0297c 100644 --- a/productionboard/src/main/resources/static/js/aluminumLiner/index.js +++ b/productionboard/src/main/resources/static/js/aluminumLiner/index.js @@ -2,23 +2,24 @@ $(() => { //数据信息 $.getJSON('/aluminumLiner/getDataInformation', function (result) { - const statusArray = [1,0,0,0,0]; - if(result.length > 0) { + const statusArray = [1, 0, 0, 0, 0]; + if (result.length > 0) { statusArray[0] = result[0].deviceStatus == "正常" ? 0 : 1; statusArray[1] = result[0].devicePower; statusArray[2] = result[0].deviceEnergy; } dataInformationFunction(statusArray); }); + $.getJSON('/aluminumLiner/getEnergyProductStatistics', function (result) { + synthetic(result) + }); + //loss/aluminumLiner/getLossStatistics $.getJSON('/aluminumLiner/getLossStatistics', function (result) { loss(result, document.getElementById("loss")); }); - const syntheticDate = [0, 0, 0, 0, 0]; - - synthetic(syntheticDate) //设备OEE统计 OEEStatistics(null, document.getElementById("OEEStatistics")); @@ -64,8 +65,8 @@ $(() => { } }); - - + + //设备故障排名 $.getJSON('/tankShell/getStatisticalOutputByModel', function (result) { equipmentFailure(result, document.getElementById("equipmentFailure")); diff --git a/productionboard/src/main/resources/static/js/common/synthetic.js b/productionboard/src/main/resources/static/js/common/synthetic.js index b80bb83..c7a27d4 100644 --- a/productionboard/src/main/resources/static/js/common/synthetic.js +++ b/productionboard/src/main/resources/static/js/common/synthetic.js @@ -16,28 +16,28 @@ const dataInformationFunction = (statusArray) => { const synthetic = (statusArray) => { let info = ` - - - - - + + + + +
123123123123${statusArray.yesterdayEnergy || 0}${statusArray.thisMonthProuction || 0}${statusArray.yesterdayProuction || 0}${statusArray.thisMonthEnergy || 0}
- + - + - + - +
123${statusArray.yesterdayEnergy || 0} 123${statusArray.yesterdayEnergy || 0} 123${statusArray.yesterdayEnergy || 0} 123${statusArray.yesterdayEnergy || 0}
- 123213 - 123213 + ${statusArray.yesterdayEnergy || 0} + ${statusArray.yesterdayEnergy || 0} `; $("#synthetic").append(info); diff --git a/productionboard/src/main/resources/static/js/tankShell/device.js b/productionboard/src/main/resources/static/js/tankShell/device.js index ed92d04..8678d26 100644 --- a/productionboard/src/main/resources/static/js/tankShell/device.js +++ b/productionboard/src/main/resources/static/js/tankShell/device.js @@ -87,10 +87,10 @@ const dataInformationFunction = (statusArray) => { const energyProductionStatisticsFunction = (statusArray) => { let info = ` - - - - + + + +
68675686756867568675
`; @@ -99,10 +99,10 @@ const energyProductionStatisticsFunction = (statusArray) => { const runParamStatisticsFunction = (statusArray) => { let info = ` -
68
-
685
-
685
-
685
+
68
+
685
+
685
+
685
`; $("#runParamStatistics").append(info); diff --git a/productionboard/src/main/resources/templates/tankShell/device.html b/productionboard/src/main/resources/templates/tankShell/device.html index 406e25c..db36b3a 100644 --- a/productionboard/src/main/resources/templates/tankShell/device.html +++ b/productionboard/src/main/resources/templates/tankShell/device.html @@ -20,7 +20,7 @@
-
+
diff --git a/productionboard/target/classes/static/css/tankShell/device.css b/productionboard/target/classes/static/css/tankShell/device.css index 17bfe6d..6861cf4 100644 --- a/productionboard/target/classes/static/css/tankShell/device.css +++ b/productionboard/target/classes/static/css/tankShell/device.css @@ -22,7 +22,7 @@ body { position: absolute; width: 42%; height: 6%; - top: 9%; + top: 8%; left: 29%; font-size: 16px !important; } @@ -61,7 +61,7 @@ body { justify-content: center; align-items: center; color: #8FB7D1; - font-size: 230% !important; + font-size: 175% !important; } .meterParam { @@ -75,7 +75,7 @@ body { justify-content: center; align-items: center; color: #A5E3B1; - font-size: 230% !important; + font-size: 175% !important; } .OEEStatistics { diff --git a/productionboard/target/classes/static/js/aluminumLiner/index.js b/productionboard/target/classes/static/js/aluminumLiner/index.js index a0cb7d3..0446075 100644 --- a/productionboard/target/classes/static/js/aluminumLiner/index.js +++ b/productionboard/target/classes/static/js/aluminumLiner/index.js @@ -2,23 +2,25 @@ $(() => { //数据信息 $.getJSON('/aluminumLiner/getDataInformation', function (result) { - const statusArray = [1,0,0,0,0]; - if(result.length > 0) { + const statusArray = [1, 0, 0, 0, 0]; + if (result.length > 0) { statusArray[0] = result[0].deviceStatus == "正常" ? 0 : 1; statusArray[1] = result[0].devicePower; statusArray[2] = result[0].deviceEnergy; } dataInformationFunction(statusArray); }); + $.getJSON('10.41.9.111:6069/aluminumLiner/getEnergyProductStatistics', function (result) { + debugger + synthetic(result) + }); + //loss/aluminumLiner/getLossStatistics $.getJSON('/aluminumLiner/getLossStatistics', function (result) { loss(result, document.getElementById("loss")); }); - const syntheticDate = [0, 0, 0, 0, 0]; - - synthetic(syntheticDate) //设备OEE统计 OEEStatistics(null, document.getElementById("OEEStatistics")); @@ -64,8 +66,8 @@ $(() => { } }); - - + + //设备故障排名 $.getJSON('/tankShell/getStatisticalOutputByModel', function (result) { equipmentFailure(result, document.getElementById("equipmentFailure")); diff --git a/productionboard/target/classes/static/js/common/synthetic.js b/productionboard/target/classes/static/js/common/synthetic.js index b80bb83..c7a27d4 100644 --- a/productionboard/target/classes/static/js/common/synthetic.js +++ b/productionboard/target/classes/static/js/common/synthetic.js @@ -16,28 +16,28 @@ const dataInformationFunction = (statusArray) => { const synthetic = (statusArray) => { let info = ` - - - - - + + + + +
123123123123${statusArray.yesterdayEnergy || 0}${statusArray.thisMonthProuction || 0}${statusArray.yesterdayProuction || 0}${statusArray.thisMonthEnergy || 0}
- + - + - + - +
123${statusArray.yesterdayEnergy || 0} 123${statusArray.yesterdayEnergy || 0} 123${statusArray.yesterdayEnergy || 0} 123${statusArray.yesterdayEnergy || 0}
- 123213 - 123213 + ${statusArray.yesterdayEnergy || 0} + ${statusArray.yesterdayEnergy || 0} `; $("#synthetic").append(info); diff --git a/productionboard/target/classes/static/js/tankShell/device.js b/productionboard/target/classes/static/js/tankShell/device.js index ed92d04..8678d26 100644 --- a/productionboard/target/classes/static/js/tankShell/device.js +++ b/productionboard/target/classes/static/js/tankShell/device.js @@ -87,10 +87,10 @@ const dataInformationFunction = (statusArray) => { const energyProductionStatisticsFunction = (statusArray) => { let info = ` - - - - + + + +
68675686756867568675
`; @@ -99,10 +99,10 @@ const energyProductionStatisticsFunction = (statusArray) => { const runParamStatisticsFunction = (statusArray) => { let info = ` -
68
-
685
-
685
-
685
+
68
+
685
+
685
+
685
`; $("#runParamStatistics").append(info); diff --git a/productionboard/target/classes/templates/tankShell/device.html b/productionboard/target/classes/templates/tankShell/device.html index 406e25c..db36b3a 100644 --- a/productionboard/target/classes/templates/tankShell/device.html +++ b/productionboard/target/classes/templates/tankShell/device.html @@ -20,7 +20,7 @@
-
+