From 8859fd7d4783171354e7bf750cb8fed577617c46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Sat, 30 Dec 2023 11:14:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/board/foaming/index.vue | 84 ++++++++++++++++--------------- 1 file changed, 43 insertions(+), 41 deletions(-) diff --git a/src/views/board/foaming/index.vue b/src/views/board/foaming/index.vue index 44640fb..36ad598 100644 --- a/src/views/board/foaming/index.vue +++ b/src/views/board/foaming/index.vue @@ -84,23 +84,23 @@
- {{ item.value1 }} + {{ item.COLUMN_A }}
- {{ item.value2 }} + {{ item.COLUMN_B }}
- {{ item.value3 }} + {{ item.COLUMN_C }}
- {{ item.value4 }} + {{ item.COLUMN_D }}
- {{ item.value5 }} + {{ item.COLUMN_E }}
@@ -604,7 +604,7 @@ export default { }, xAxis: { type: "category", - data: e.x, + data: e.map(val=>val.X_VALUE), axisLine: { lineStyle: { color: "white", @@ -634,7 +634,7 @@ export default { }, series: [ { - name: e.y.name, + name: '数量', type: "bar", barWidth: "40%", label: { @@ -659,7 +659,7 @@ export default { borderRadius: 3, }, }, - data: e.y.data, + data: e.map(val=>val.Y_VALUE), }, ], }) @@ -695,7 +695,7 @@ export default { containLabel: true, }, legend: { - data: e.y.map(val => val.name), + data: ['POL压力','ISO压力'], right: 'center', top: 0, textStyle: { @@ -707,7 +707,7 @@ export default { }, xAxis: { type: "category", - data: e.x, + data: e.map(val=>val.X_VALUE), axisLine: { lineStyle: { color: "white", @@ -739,7 +739,7 @@ export default { }, series: [ { - name: e.y[0].name, + name: 'POL压力', type: "bar", barWidth: "30%", label: { @@ -764,10 +764,10 @@ export default { borderRadius: 2, }, }, - data: e.y[0].data, + data: e.map(val=>val.Y_VALUE_ONE), }, { - name: e.y[1].name, + name: 'ISO压力', type: "bar", barWidth: "30%", barGap: '40%', @@ -793,7 +793,7 @@ export default { borderRadius: 2, }, }, - data: e.y[1].data, + data: e.map(val=>val.Y_VALUE_TWO), }, ], }) @@ -805,7 +805,7 @@ export default { f: (e) => { this.$refs.chart3.setData({ legend: { - data: e.y.map(val => val.name), + data: ['POL温度','ISO温度'], right: 'center', top: 0, textStyle: { @@ -872,7 +872,7 @@ export default { show: false, }, boundaryGap: false, - data: e.x, + data: e.map(val=>val.X_VALUE), }, ], @@ -905,7 +905,7 @@ export default { ], series: [ { - name: e.y[0].name, + name: 'POL温度', type: "line", showAllSymbol: true, symbol: "circle", @@ -948,10 +948,10 @@ export default { shadowBlur: 20, }, }, - data: e.y[0].data, + data: e.map(val=>val.Y_VALUE_ONE), }, { - name: e.y[1].name, + name: 'ISO温度', type: "line", // smooth: true, //是否平滑 showAllSymbol: true, @@ -997,7 +997,7 @@ export default { shadowBlur: 20, }, }, - data: e.y[1].data, + data: e.map(val=>val.Y_VALUE_TWO), }, ], }) @@ -1024,7 +1024,7 @@ export default { }, xAxis: { type: "category", - data: e.x, + data: e.map(val=>val.X_VALUE), axisLine: { lineStyle: { color: "white", @@ -1054,7 +1054,7 @@ export default { }, series: [ { - name: e.y.name, + name: '数量', type: "bar", barWidth: "33%", label: { @@ -1079,7 +1079,7 @@ export default { borderRadius: 2, }, }, - data: e.y.data, + data: e.map(val=>val.Y_VALUE), }, ], }) @@ -1129,7 +1129,7 @@ export default { }, xAxis: { type: "category", - data: e.x, + data: e.map(val=>val.X_VALUE), axisLine: { lineStyle: { color: "white", @@ -1159,7 +1159,7 @@ export default { }, series: [ { - name: e.y.name, + name: '数量', type: "bar", barWidth: "40%", label: { @@ -1184,7 +1184,7 @@ export default { borderRadius: 3, }, }, - data: e.y.data, + data: e.map(val=>val.Y_VALUE), }, ], }) @@ -1218,7 +1218,7 @@ export default { containLabel: true, }, legend: { - data: e.y.map(val => val.name), + data: ['POL压力','ISO压力'], right: 'center', top: 0, textStyle: { @@ -1230,7 +1230,7 @@ export default { }, xAxis: { type: "category", - data: e.x, + data: e.map(val=>val.X_VALUE), axisLine: { lineStyle: { color: "white", @@ -1247,6 +1247,8 @@ export default { yAxis: { type: "value", + min:10, + max:14, axisLine: { show: false, lineStyle: { @@ -1260,7 +1262,7 @@ export default { }, series: [ { - name: e.y[0].name, + name: 'POL压力', type: "bar", barWidth: "30%", label: { @@ -1285,10 +1287,10 @@ export default { borderRadius: 2, }, }, - data: e.y[0].data, + data: e.map(val=>val.Y_VALUE_ONE), }, { - name: e.y[1].name, + name: 'ISO压力', type: "bar", barWidth: "30%", barGap: '40%', @@ -1314,7 +1316,7 @@ export default { borderRadius: 2, }, }, - data: e.y[1].data, + data: e.map(val=>val.Y_VALUE_TWO), }, ], }) @@ -1326,7 +1328,7 @@ export default { f: (e) => { this.$refs.chart3.setData({ legend: { - data: e.y.map(val => val.name), + data: ['POL温度','ISO温度'], right: 'center', top: 0, textStyle: { @@ -1393,7 +1395,7 @@ export default { show: false, }, boundaryGap: false, - data: e.x, + data: e.map(val=>val.X_VALUE), }, ], @@ -1426,7 +1428,7 @@ export default { ], series: [ { - name: e.y[0].name, + name: 'POL温度', type: "line", showAllSymbol: true, symbol: "circle", @@ -1469,10 +1471,10 @@ export default { shadowBlur: 20, }, }, - data: e.y[0].data, + data: e.map(val=>val.Y_VALUE_ONE), }, { - name: e.y[1].name, + name: 'ISO温度', type: "line", // smooth: true, //是否平滑 showAllSymbol: true, @@ -1518,7 +1520,7 @@ export default { shadowBlur: 20, }, }, - data: e.y[1].data, + data: e.map(val=>val.Y_VALUE_TWO), }, ], }) @@ -1545,7 +1547,7 @@ export default { }, xAxis: { type: "category", - data: e.x, + data: e.map(val=>val.X_VALUE), axisLine: { lineStyle: { color: "white", @@ -1575,7 +1577,7 @@ export default { }, series: [ { - name: e.y.name, + name: '数量', type: "bar", barWidth: "33%", label: { @@ -1600,7 +1602,7 @@ export default { borderRadius: 2, }, }, - data: e.y.data, + data: e.map(val=>val.Y_VALUE), }, ], })