修改接口

master
夜笙歌 11 months ago
parent 440d476ce7
commit 8859fd7d47

@ -84,23 +84,23 @@
<div :style='"background-color:" + ((index % 2 === 0)? "#053460":"#032d57") '> <div :style='"background-color:" + ((index % 2 === 0)? "#053460":"#032d57") '>
<div <div
class="scrollTableItem" style="width: 20%"> class="scrollTableItem" style="width: 20%">
{{ item.value1 }} {{ item.COLUMN_A }}
</div> </div>
<div <div
class="scrollTableItem" style="width: 20%"> class="scrollTableItem" style="width: 20%">
{{ item.value2 }} {{ item.COLUMN_B }}
</div> </div>
<div <div
class="scrollTableItem" style="width: 20%"> class="scrollTableItem" style="width: 20%">
{{ item.value3 }} {{ item.COLUMN_C }}
</div> </div>
<div <div
class="scrollTableItem" style="width: 20%"> class="scrollTableItem" style="width: 20%">
{{ item.value4 }} {{ item.COLUMN_D }}
</div> </div>
<div <div
class="scrollTableItem" style="width: 20%"> class="scrollTableItem" style="width: 20%">
{{ item.value5 }} {{ item.COLUMN_E }}
</div> </div>
</div> </div>
</div> </div>
@ -604,7 +604,7 @@ export default {
}, },
xAxis: { xAxis: {
type: "category", type: "category",
data: e.x, data: e.map(val=>val.X_VALUE),
axisLine: { axisLine: {
lineStyle: { lineStyle: {
color: "white", color: "white",
@ -634,7 +634,7 @@ export default {
}, },
series: [ series: [
{ {
name: e.y.name, name: '数量',
type: "bar", type: "bar",
barWidth: "40%", barWidth: "40%",
label: { label: {
@ -659,7 +659,7 @@ export default {
borderRadius: 3, borderRadius: 3,
}, },
}, },
data: e.y.data, data: e.map(val=>val.Y_VALUE),
}, },
], ],
}) })
@ -695,7 +695,7 @@ export default {
containLabel: true, containLabel: true,
}, },
legend: { legend: {
data: e.y.map(val => val.name), data: ['POL压力','ISO压力'],
right: 'center', right: 'center',
top: 0, top: 0,
textStyle: { textStyle: {
@ -707,7 +707,7 @@ export default {
}, },
xAxis: { xAxis: {
type: "category", type: "category",
data: e.x, data: e.map(val=>val.X_VALUE),
axisLine: { axisLine: {
lineStyle: { lineStyle: {
color: "white", color: "white",
@ -739,7 +739,7 @@ export default {
}, },
series: [ series: [
{ {
name: e.y[0].name, name: 'POL压力',
type: "bar", type: "bar",
barWidth: "30%", barWidth: "30%",
label: { label: {
@ -764,10 +764,10 @@ export default {
borderRadius: 2, borderRadius: 2,
}, },
}, },
data: e.y[0].data, data: e.map(val=>val.Y_VALUE_ONE),
}, },
{ {
name: e.y[1].name, name: 'ISO压力',
type: "bar", type: "bar",
barWidth: "30%", barWidth: "30%",
barGap: '40%', barGap: '40%',
@ -793,7 +793,7 @@ export default {
borderRadius: 2, borderRadius: 2,
}, },
}, },
data: e.y[1].data, data: e.map(val=>val.Y_VALUE_TWO),
}, },
], ],
}) })
@ -805,7 +805,7 @@ export default {
f: (e) => { f: (e) => {
this.$refs.chart3.setData({ this.$refs.chart3.setData({
legend: { legend: {
data: e.y.map(val => val.name), data: ['POL温度','ISO温度'],
right: 'center', right: 'center',
top: 0, top: 0,
textStyle: { textStyle: {
@ -872,7 +872,7 @@ export default {
show: false, show: false,
}, },
boundaryGap: false, boundaryGap: false,
data: e.x, data: e.map(val=>val.X_VALUE),
}, },
], ],
@ -905,7 +905,7 @@ export default {
], ],
series: [ series: [
{ {
name: e.y[0].name, name: 'POL温度',
type: "line", type: "line",
showAllSymbol: true, showAllSymbol: true,
symbol: "circle", symbol: "circle",
@ -948,10 +948,10 @@ export default {
shadowBlur: 20, shadowBlur: 20,
}, },
}, },
data: e.y[0].data, data: e.map(val=>val.Y_VALUE_ONE),
}, },
{ {
name: e.y[1].name, name: 'ISO温度',
type: "line", type: "line",
// smooth: true, // // smooth: true, //
showAllSymbol: true, showAllSymbol: true,
@ -997,7 +997,7 @@ export default {
shadowBlur: 20, shadowBlur: 20,
}, },
}, },
data: e.y[1].data, data: e.map(val=>val.Y_VALUE_TWO),
}, },
], ],
}) })
@ -1024,7 +1024,7 @@ export default {
}, },
xAxis: { xAxis: {
type: "category", type: "category",
data: e.x, data: e.map(val=>val.X_VALUE),
axisLine: { axisLine: {
lineStyle: { lineStyle: {
color: "white", color: "white",
@ -1054,7 +1054,7 @@ export default {
}, },
series: [ series: [
{ {
name: e.y.name, name: '数量',
type: "bar", type: "bar",
barWidth: "33%", barWidth: "33%",
label: { label: {
@ -1079,7 +1079,7 @@ export default {
borderRadius: 2, borderRadius: 2,
}, },
}, },
data: e.y.data, data: e.map(val=>val.Y_VALUE),
}, },
], ],
}) })
@ -1129,7 +1129,7 @@ export default {
}, },
xAxis: { xAxis: {
type: "category", type: "category",
data: e.x, data: e.map(val=>val.X_VALUE),
axisLine: { axisLine: {
lineStyle: { lineStyle: {
color: "white", color: "white",
@ -1159,7 +1159,7 @@ export default {
}, },
series: [ series: [
{ {
name: e.y.name, name: '数量',
type: "bar", type: "bar",
barWidth: "40%", barWidth: "40%",
label: { label: {
@ -1184,7 +1184,7 @@ export default {
borderRadius: 3, borderRadius: 3,
}, },
}, },
data: e.y.data, data: e.map(val=>val.Y_VALUE),
}, },
], ],
}) })
@ -1218,7 +1218,7 @@ export default {
containLabel: true, containLabel: true,
}, },
legend: { legend: {
data: e.y.map(val => val.name), data: ['POL压力','ISO压力'],
right: 'center', right: 'center',
top: 0, top: 0,
textStyle: { textStyle: {
@ -1230,7 +1230,7 @@ export default {
}, },
xAxis: { xAxis: {
type: "category", type: "category",
data: e.x, data: e.map(val=>val.X_VALUE),
axisLine: { axisLine: {
lineStyle: { lineStyle: {
color: "white", color: "white",
@ -1247,6 +1247,8 @@ export default {
yAxis: { yAxis: {
type: "value", type: "value",
min:10,
max:14,
axisLine: { axisLine: {
show: false, show: false,
lineStyle: { lineStyle: {
@ -1260,7 +1262,7 @@ export default {
}, },
series: [ series: [
{ {
name: e.y[0].name, name: 'POL压力',
type: "bar", type: "bar",
barWidth: "30%", barWidth: "30%",
label: { label: {
@ -1285,10 +1287,10 @@ export default {
borderRadius: 2, borderRadius: 2,
}, },
}, },
data: e.y[0].data, data: e.map(val=>val.Y_VALUE_ONE),
}, },
{ {
name: e.y[1].name, name: 'ISO压力',
type: "bar", type: "bar",
barWidth: "30%", barWidth: "30%",
barGap: '40%', barGap: '40%',
@ -1314,7 +1316,7 @@ export default {
borderRadius: 2, borderRadius: 2,
}, },
}, },
data: e.y[1].data, data: e.map(val=>val.Y_VALUE_TWO),
}, },
], ],
}) })
@ -1326,7 +1328,7 @@ export default {
f: (e) => { f: (e) => {
this.$refs.chart3.setData({ this.$refs.chart3.setData({
legend: { legend: {
data: e.y.map(val => val.name), data: ['POL温度','ISO温度'],
right: 'center', right: 'center',
top: 0, top: 0,
textStyle: { textStyle: {
@ -1393,7 +1395,7 @@ export default {
show: false, show: false,
}, },
boundaryGap: false, boundaryGap: false,
data: e.x, data: e.map(val=>val.X_VALUE),
}, },
], ],
@ -1426,7 +1428,7 @@ export default {
], ],
series: [ series: [
{ {
name: e.y[0].name, name: 'POL温度',
type: "line", type: "line",
showAllSymbol: true, showAllSymbol: true,
symbol: "circle", symbol: "circle",
@ -1469,10 +1471,10 @@ export default {
shadowBlur: 20, shadowBlur: 20,
}, },
}, },
data: e.y[0].data, data: e.map(val=>val.Y_VALUE_ONE),
}, },
{ {
name: e.y[1].name, name: 'ISO温度',
type: "line", type: "line",
// smooth: true, // // smooth: true, //
showAllSymbol: true, showAllSymbol: true,
@ -1518,7 +1520,7 @@ export default {
shadowBlur: 20, shadowBlur: 20,
}, },
}, },
data: e.y[1].data, data: e.map(val=>val.Y_VALUE_TWO),
}, },
], ],
}) })
@ -1545,7 +1547,7 @@ export default {
}, },
xAxis: { xAxis: {
type: "category", type: "category",
data: e.x, data: e.map(val=>val.X_VALUE),
axisLine: { axisLine: {
lineStyle: { lineStyle: {
color: "white", color: "white",
@ -1575,7 +1577,7 @@ export default {
}, },
series: [ series: [
{ {
name: e.y.name, name: '数量',
type: "bar", type: "bar",
barWidth: "33%", barWidth: "33%",
label: { label: {
@ -1600,7 +1602,7 @@ export default {
borderRadius: 2, borderRadius: 2,
}, },
}, },
data: e.y.data, data: e.map(val=>val.Y_VALUE),
}, },
], ],
}) })

Loading…
Cancel
Save