diff --git a/deviceboard/target/deviceboard-0.0.1-SNAPSHOT.jar b/deviceboard/target/deviceboard-0.0.1-SNAPSHOT.jar index aafddd0..c16cd1c 100644 Binary files a/deviceboard/target/deviceboard-0.0.1-SNAPSHOT.jar and b/deviceboard/target/deviceboard-0.0.1-SNAPSHOT.jar differ diff --git a/deviceboard/target/deviceboard-0.0.1-SNAPSHOT.jar.original b/deviceboard/target/deviceboard-0.0.1-SNAPSHOT.jar.original index b0e2ef8..84d8082 100644 Binary files a/deviceboard/target/deviceboard-0.0.1-SNAPSHOT.jar.original and b/deviceboard/target/deviceboard-0.0.1-SNAPSHOT.jar.original differ 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 fb6f6c6..42384bc 100644 --- a/productionboard/src/main/resources/static/js/common/echarts.common.js +++ b/productionboard/src/main/resources/static/js/common/echarts.common.js @@ -1191,7 +1191,6 @@ const bluePolygonHistogram = (res, ids) => { //多个立体柱状图 const multipleThreeDimensionalCylindrical = (res, ids) => { let mycharts = echarts.init(ids); - console.log(res); const xValue = res.map(val => val.materialName) const lineStoreAmount = res.map(val => val.lineStoreAmount) const hullStoreAmount = res.map(val => val.hullStoreAmount) @@ -1980,10 +1979,8 @@ const inventory = (res, ids) => { //loss const loss = (res, ids) => { let mycharts = echarts.init(ids); - - let xAxisData = []; - let seriesData1 = []; - let sum = 0; + const xValue = res.map(val => val.name) + const yValue = res.map(val => val.value) let barTopColor = [ "#55F675", @@ -1991,29 +1988,7 @@ const loss = (res, ids) => { let barBottomColor = [ "#55F675", ]; - let Res = - { - datas:res.length > 0 ? res : [ - { - name: '>30分钟', - value: 2 - }, - { - name: '3-10分钟', - value: 6 - }, - { - name: '0-3分钟', - value: 9 - }, - ], - } - Res.datas.forEach((item) => { - xAxisData.push(item.name); - seriesData1.push(item.value); - sum += item.value; - }); let option = { grid: { @@ -2025,7 +2000,7 @@ const loss = (res, ids) => { axisTick: { show: false, }, - data: xAxisData, + data: xValue, axisLine: { show: true, }, @@ -2103,7 +2078,7 @@ const loss = (res, ids) => { }, }, symbolPosition: "end", - data: seriesData1, + data: yValue, }, { @@ -2129,7 +2104,7 @@ const loss = (res, ids) => { silent: true, barWidth: 35, barGap: "-100%", // Make series be overlap - data: seriesData1, + data: yValue, }, ], }; diff --git a/productionboard/src/main/resources/static/js/tankShell/device.js b/productionboard/src/main/resources/static/js/tankShell/device.js index 9986c2a..f526865 100644 --- a/productionboard/src/main/resources/static/js/tankShell/device.js +++ b/productionboard/src/main/resources/static/js/tankShell/device.js @@ -14,7 +14,7 @@ $(() => { }); //loss - $.getJSON('/tankShell/getInventoryStatistics', function (result) { + $.getJSON('/tankShellDevice/getLossStatistics', function (result) { loss(result, document.getElementById("loss")); }); diff --git a/productionboard/src/main/resources/templates/foamBox/index.html b/productionboard/src/main/resources/templates/foamBox/index.html index 505ddb4..402322e 100644 --- a/productionboard/src/main/resources/templates/foamBox/index.html +++ b/productionboard/src/main/resources/templates/foamBox/index.html @@ -33,12 +33,6 @@
- | - | - | - | - |