From 7aa791f195700400963b60d7fcbf1cfde7f254cc 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, 24 Nov 2022 11:13:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=93=9D=E5=86=85=E8=83=86?= =?UTF-8?q?=E6=88=90=E5=9E=8B=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/static/js/foamBox/index.js | 9 +++------ .../src/main/resources/static/js/tankShell/device.js | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/productionboard/src/main/resources/static/js/foamBox/index.js b/productionboard/src/main/resources/static/js/foamBox/index.js index 04bfb3c..7dee1ad 100644 --- a/productionboard/src/main/resources/static/js/foamBox/index.js +++ b/productionboard/src/main/resources/static/js/foamBox/index.js @@ -3,19 +3,18 @@ $(() => { let fun = () => { //班组计划统计 $.getJSON(`/foamBox/getTeamStatisticsJson?ids=${ids}`, function (result) { - console.log(result) onDutyPlan(result.planAmount, result.actualAmount, result.planAmount - result.actualAmount) }); //设备运行状态 $.getJSON(`/foamBox/getRunStatusJson?ids=${ids}`, function (result) { + console.log(1) if (htmlId === '0' || htmlId === '1') { deviceStatus(result); } else { deviceStatus2(result) } }); - // deviceStatus([1,1,1,1,1,1]); //库存统计 @@ -51,12 +50,10 @@ $(() => { } fun() - }) const temperature = (res, ids) => { let mycharts = echarts.init(ids); - console.log(res); let option = { @@ -137,7 +134,7 @@ const deviceStatus = (statusArray) => { `; - $(".foamingLineRunStatus table tr").append(info); + $(".foamingLineRunStatus table tr").html(info); } @@ -149,6 +146,6 @@ const deviceStatus2 = (statusArray) => { `; - $(".foamingLineRunStatus table tr").append(info); + $(".foamingLineRunStatus table tr").html(info); } diff --git a/productionboard/src/main/resources/static/js/tankShell/device.js b/productionboard/src/main/resources/static/js/tankShell/device.js index ec142ea..f177a17 100644 --- a/productionboard/src/main/resources/static/js/tankShell/device.js +++ b/productionboard/src/main/resources/static/js/tankShell/device.js @@ -91,7 +91,7 @@ const dataInformationFunction = (statusArray) => { ${res.deviceEnergy}kW·h - 2 + 0 `;