From 1c3f21bffba0a4b0ad1c29aaf0642a9a9527f0b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Fri, 10 Jun 2022 15:13:02 +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 --- .../src/main/resources/static/js/common/echarts.common.js | 1 + productionboard/src/main/resources/static/js/foamBox/index.js | 4 +++- .../target/classes/static/js/common/echarts.common.js | 1 + productionboard/target/classes/static/js/foamBox/index.js | 4 +++- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/productionboard/src/main/resources/static/js/common/echarts.common.js b/productionboard/src/main/resources/static/js/common/echarts.common.js index 42384bc..a91ed74 100644 --- a/productionboard/src/main/resources/static/js/common/echarts.common.js +++ b/productionboard/src/main/resources/static/js/common/echarts.common.js @@ -565,6 +565,7 @@ const threeDimensionalCylindrical = (res, ids) => { //多个折线面积图 const multipleBrokenLineAreaDiagram = (res, ids) => { let mycharts = echarts.init(ids); + console.log(res); let option = { tooltip: { diff --git a/productionboard/src/main/resources/static/js/foamBox/index.js b/productionboard/src/main/resources/static/js/foamBox/index.js index 1bed0f4..de03917 100644 --- a/productionboard/src/main/resources/static/js/foamBox/index.js +++ b/productionboard/src/main/resources/static/js/foamBox/index.js @@ -28,7 +28,9 @@ $(() => { }); //发泡参数 - multipleBrokenLineAreaDiagram(null, document.getElementById("foamingParameters")); + $.getJSON(`/foamBox/getParamTemperature?ids=${ids}`, function (result) { + multipleBrokenLineAreaDiagram(result, document.getElementById("foamingParameters")); + }); // 模具温度1 diff --git a/productionboard/target/classes/static/js/common/echarts.common.js b/productionboard/target/classes/static/js/common/echarts.common.js index 42384bc..a91ed74 100644 --- a/productionboard/target/classes/static/js/common/echarts.common.js +++ b/productionboard/target/classes/static/js/common/echarts.common.js @@ -565,6 +565,7 @@ const threeDimensionalCylindrical = (res, ids) => { //多个折线面积图 const multipleBrokenLineAreaDiagram = (res, ids) => { let mycharts = echarts.init(ids); + console.log(res); let option = { tooltip: { diff --git a/productionboard/target/classes/static/js/foamBox/index.js b/productionboard/target/classes/static/js/foamBox/index.js index 1bed0f4..de03917 100644 --- a/productionboard/target/classes/static/js/foamBox/index.js +++ b/productionboard/target/classes/static/js/foamBox/index.js @@ -28,7 +28,9 @@ $(() => { }); //发泡参数 - multipleBrokenLineAreaDiagram(null, document.getElementById("foamingParameters")); + $.getJSON(`/foamBox/getParamTemperature?ids=${ids}`, function (result) { + multipleBrokenLineAreaDiagram(result, document.getElementById("foamingParameters")); + }); // 模具温度1