From a09bdeb0dfff2a1bf2bff8417d84a0cbd9936176 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Thu, 9 Jun 2022 10:38:14 +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/js/tankShell/device.js | 11 ++++++++ .../resources/templates/tankShell/device.html | 25 +++++++++++-------- .../classes/static/js/tankShell/device.js | 11 ++++++++ .../classes/templates/tankShell/device.html | 25 +++++++++++-------- 4 files changed, 50 insertions(+), 22 deletions(-) diff --git a/productionboard/src/main/resources/static/js/tankShell/device.js b/productionboard/src/main/resources/static/js/tankShell/device.js index 675bb57..c1fa3f1 100644 --- a/productionboard/src/main/resources/static/js/tankShell/device.js +++ b/productionboard/src/main/resources/static/js/tankShell/device.js @@ -57,6 +57,17 @@ $(() => { /*数据信息*/ const statusArray = [0, 0, 0, 0, 0]; + $.getJSON('/tankShellDevice/getDataInformation', function (result) { + console.log(result); + dataInformationFunction(result) + }); + $.getJSON('/tankShellDevice/getRunParameters', function (result) { + console.log(result); + energyProductionStatisticsFunction(result) + }); + $.getJSON('/tankShellDevice/getRunParameters', function (result) { + runParamStatisticsFunction(result) + }); dataInformationFunction(statusArray); energyProductionStatisticsFunction(statusArray); diff --git a/productionboard/src/main/resources/templates/tankShell/device.html b/productionboard/src/main/resources/templates/tankShell/device.html index db36b3a..2bf3b3e 100644 --- a/productionboard/src/main/resources/templates/tankShell/device.html +++ b/productionboard/src/main/resources/templates/tankShell/device.html @@ -1,5 +1,6 @@ + 箱壳成型数据监控平台 @@ -13,6 +14,7 @@ +
@@ -20,31 +22,32 @@
-
- - +
+ + + + + +
- - -
-
- +
- +
- +
- +
+ \ No newline at end of file diff --git a/productionboard/target/classes/static/js/tankShell/device.js b/productionboard/target/classes/static/js/tankShell/device.js index 675bb57..c1fa3f1 100644 --- a/productionboard/target/classes/static/js/tankShell/device.js +++ b/productionboard/target/classes/static/js/tankShell/device.js @@ -57,6 +57,17 @@ $(() => { /*数据信息*/ const statusArray = [0, 0, 0, 0, 0]; + $.getJSON('/tankShellDevice/getDataInformation', function (result) { + console.log(result); + dataInformationFunction(result) + }); + $.getJSON('/tankShellDevice/getRunParameters', function (result) { + console.log(result); + energyProductionStatisticsFunction(result) + }); + $.getJSON('/tankShellDevice/getRunParameters', function (result) { + runParamStatisticsFunction(result) + }); dataInformationFunction(statusArray); energyProductionStatisticsFunction(statusArray); diff --git a/productionboard/target/classes/templates/tankShell/device.html b/productionboard/target/classes/templates/tankShell/device.html index db36b3a..2bf3b3e 100644 --- a/productionboard/target/classes/templates/tankShell/device.html +++ b/productionboard/target/classes/templates/tankShell/device.html @@ -1,5 +1,6 @@ + 箱壳成型数据监控平台 @@ -13,6 +14,7 @@ +
@@ -20,31 +22,32 @@
-
- - +
+ + + + + +
- - -
-
- +
- +
- +
- +
+ \ No newline at end of file