修改显示

yangwl
夜笙歌 2 months ago
parent 571e07df10
commit 5c480c42c2

@ -138,6 +138,7 @@ export default {
getData() { getData() {
dryRoomDataCarousel().then(e => { dryRoomDataCarousel().then(e => {
this.table1Data = e.data.dryingroomList.filter(v => parseFloat(v.expend / v.yield)) || [] this.table1Data = e.data.dryingroomList.filter(v => parseFloat(v.expend / v.yield)) || []
let data = e.data.dryingroomList.filter(v => parseFloat(v.equipment_code.split('H')[1]) < 60)
let option2 = { let option2 = {
grid: { grid: {
@ -162,7 +163,7 @@ export default {
} }
}, },
xAxis: { xAxis: {
data: e.data.dryingroomList.map(v => v.equipment_code), data:data.map(v => v.equipment_code),
axisLine: { axisLine: {
show: true, //X线 show: true, //X线
lineStyle: { lineStyle: {
@ -231,7 +232,32 @@ export default {
// areaStyle: { // areaStyle: {
// color: "rgba(5,140,255, 0.2)", // color: "rgba(5,140,255, 0.2)",
// }, // },
data: e.data.dryingroomList.map(v => parseFloat((parseFloat(v.expend) / parseFloat(v.yield) / 14).toFixed(2))), data: data.map(v => parseFloat((parseFloat(v.expend) / parseFloat(v.yield) / 14).toFixed(2))),
},
{
label: {
show: true,
position: 'top',
formatter: "{c}",
color: "#fff"
},
name: '标准值',
type: 'line',
smooth: true, //线
showAllSymbol: true, //
symbol: "emptyCircle", //
symbolSize: 5, //
// itemStyle: {
// //线
// color: "#058cff",
// },
// lineStyle: {
// color: "#058cff",
// },
// areaStyle: {
// color: "rgba(5,140,255, 0.2)",
// },
data: data.map(v => 5),
}, },
] ]
}; };

Loading…
Cancel
Save