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) => {